Created
April 15, 2022 06:36
-
-
Save madhikarma/4c0ad0918e2a144d6b9426f56b2f1515 to your computer and use it in GitHub Desktop.
example json schema person
This file contains hidden or 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
{ | |
"$id": "https://example.com/person.schema.json", | |
"$schema": "https://json-schema.org/draft/2020-12/schema", | |
"title": "Person", | |
"type": "object", | |
"properties": { | |
"firstName": { | |
"type": "string", | |
"description": "The person's first name." | |
}, | |
"lastName": { | |
"type": "string", | |
"description": "The person's last name." | |
}, | |
"age": { | |
"description": "Age in years which must be equal to or greater than zero.", | |
"type": "integer", | |
"minimum": 0 | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment