-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add OpenAPI/YAML Representation (#200)
* add openapi/yaml representation * add new file * Update example/yaml-json-schema.yaml Co-authored-by: Orie Steele <[email protected]> * pr comment * update authors of v2dm * update refs * update to yaml schema * Update index.html Co-authored-by: Andres Uribe <[email protected]> * Update index.html Co-authored-by: Ted Thibodeau Jr <[email protected]> --------- Co-authored-by: Orie Steele <[email protected]> Co-authored-by: Andres Uribe <[email protected]> Co-authored-by: Ted Thibodeau Jr <[email protected]>
- Loading branch information
1 parent
2eda973
commit f8f798d
Showing
3 changed files
with
63 additions
and
9 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,35 @@ | ||
--- | ||
"$id": https://example.com/schemas/email.json | ||
"$schema": https://json-schema.org/draft/2020-12/schema | ||
name: Email Credential Schema | ||
description: Email Credential JSON Schema using YAML | ||
type: object | ||
properties: | ||
credentialSubject: | ||
type: object | ||
properties: | ||
emailAddress: | ||
type: string | ||
format: email | ||
required: | ||
- emailAddress | ||
example: |- | ||
{ | ||
"$id": "https://example.com/schemas/email.json", | ||
"$schema": "https://json-schema.org/draft/2019-09/schema", | ||
"name": "EmailCredential", | ||
"description": "Email Credential JSON Schema", | ||
"type": "object", | ||
"properties": { | ||
"credentialSubject": { | ||
"type": "object", | ||
"properties": { | ||
"emailAddress": { | ||
"type": "string", | ||
"format": "email" | ||
} | ||
}, | ||
"required": ["emailAddress"] | ||
} | ||
} | ||
} |
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