Skip to content

Instantly share code, notes, and snippets.

@briandominick
Created November 7, 2023 02:03
Show Gist options
  • Save briandominick/bab9b282dc830207938a22756c2561d0 to your computer and use it in GitHub Desktop.
Save briandominick/bab9b282dc830207938a22756c2561d0 to your computer and use it in GitHub Desktop.
{
"Pet": {
"type": "object",
"required": [
"name",
"photoUrls"
],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"name": {
"type": "string",
"example": "doggie"
},
"photoUrls": {
"type": "array",
"items": {
"type": "string"
}
},
"tags": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"name": {
"type": "string"
}
},
"xml": {
"name": "tag"
}
}
},
"status": {
"type": "string",
"description": "pet status in the store",
"enum": [
"available",
"pending",
"sold"
]
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment