Skip to content

Instantly share code, notes, and snippets.

@aldidoanta
Created July 17, 2023 16:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aldidoanta/792d3a55c1897e6bdd80b0bd5aa9f6ef to your computer and use it in GitHub Desktop.
Save aldidoanta/792d3a55c1897e6bdd80b0bd5aa9f6ef to your computer and use it in GitHub Desktop.
{
"$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