-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add overview on generating bindings
- Loading branch information
Showing
2 changed files
with
175 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# yaml-language-server: $schema=https://xtp.dylibso.com/assets/wasm/schema.json | ||
# Learn more at https://docs.xtp.dylibso.com/docs/concepts/xtp-schema | ||
version: v1-draft | ||
exports: | ||
CountVowels: | ||
input: | ||
type: string | ||
contentType: text/plain; charset=utf-8 | ||
output: | ||
$ref: "#/components/schemas/VowelReport" | ||
contentType: application/json | ||
components: | ||
schemas: | ||
VowelReport: | ||
description: The result of counting vowels on the Vowels input. | ||
properties: | ||
count: | ||
type: integer | ||
format: int32 | ||
description: The count of vowels for input string. | ||
total: | ||
type: integer | ||
format: int32 | ||
description: The cumulative amount of vowels counted, if this keeps state across multiple function calls. | ||
nullable: true | ||
vowels: | ||
type: string | ||
description: The set of vowels used to get the count, e.g. "aAeEiIoOuU" |