From b9cb5027aa911f64ee634aba4eaae243350a657d Mon Sep 17 00:00:00 2001 From: Lin Clark Date: Thu, 27 Jan 2022 14:27:50 -0500 Subject: [PATCH] Update GH action from wai to wit (#3) --- .github/workflows/main.yml | 4 ++-- proposal-template.abi.md | 10 +++++----- proposal-template.wit.md | 8 ++++---- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 0e62633..f27c0a2 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -11,6 +11,6 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - uses: WebAssembly/wai-abi-up-to-date@v1 + - uses: WebAssembly/wit-abi-up-to-date@v2 with: - wai-abi-tag: wai-abi-0.1.0 + wit-abi-tag: wit-abi-0.1.0 diff --git a/proposal-template.abi.md b/proposal-template.abi.md index 34daa27..9f935ee 100644 --- a/proposal-template.abi.md +++ b/proposal-template.abi.md @@ -1,6 +1,6 @@ # Types -## `api_type_one`: record +## `api-type-one`: record Short description @@ -10,22 +10,22 @@ Size: 16, Alignment: 8 ### Record Fields -- [`property_1`](#api_type_one.property_1): `u64` +- [`property1`](#api_type_one.property1): `u64` -- [`property_2`](#api_type_one.property_2): `string` +- [`property2`](#api_type_one.property2): `string` # Functions ---- -#### `api_function_one` +#### `api-function-one` Short description Explanation for developers using the API. ##### Results -- ``: [`api_type_one`](#api_type_one) +- ``: [`api-type-one`](#api_type_one) diff --git a/proposal-template.wit.md b/proposal-template.wit.md index 900b74e..efa5364 100644 --- a/proposal-template.wit.md +++ b/proposal-template.wit.md @@ -12,9 +12,9 @@ /// Short description /// /// Explanation for developers using the API. -record api_type_one { - property_1: u64, - property_2: string, +record api-type-one { + property1: u64, + property2: string, } ``` @@ -26,7 +26,7 @@ More rigorous specification details for the implementer go here, if needed. /// Short description /// /// Explanation for developers using the API. -api_function_one: function() -> api_type_one +api-function-one: function() -> api-type-one ``` If needed, this would explain what a compliant implementation MUST do, such as never returning an earlier result from a later call.