Skip to content

Instantly share code, notes, and snippets.

@potatoqualitee
Last active August 20, 2024 08:45
Show Gist options
  • Save potatoqualitee/8ef91bc3095f6df7619515f9e15ea039 to your computer and use it in GitHub Desktop.
Save potatoqualitee/8ef91bc3095f6df7619515f9e15ea039 to your computer and use it in GitHub Desktop.
structured objects
{
"name": "pet",
"strict": true,
"schema": {
"type": "object",
"properties": {
"pet_name": {
"type": "string",
"description": "What is the name of the pet?"
},
"owner_name": {
"type": "string",
"description": "What is the name of the pet's owner?"
},
"pet_breed": {
"type": "string",
"description": "What is the breed of the pet?"
},
"vaccinations": {
"type": "array",
"items": {
"type": "object",
"properties": {
"vaccine_name": {
"type": "string",
"description": "What is the name of the vaccine administered?"
},
"date_administered_1": {
"type": "string",
"description": "When was the first dose of the vaccine administered?"
},
"veterinarian_1": {
"type": "string",
"description": "Who is the veterinarian that administered the first dose?"
},
"date_administered_2": {
"type": "string",
"description": "When was the second dose of the vaccine administered?"
},
"veterinarian_2": {
"type": "string",
"description": "Who is the veterinarian that administered the second dose?"
},
"date_administered_3": {
"type": "string",
"description": "When was the third dose of the vaccine administered?"
},
"veterinarian_3": {
"type": "string",
"description": "Who is the veterinarian that administered the third dose?"
}
},
"required": [
"vaccine_name",
"date_administered_1",
"veterinarian_1",
"date_administered_2",
"veterinarian_2",
"date_administered_3",
"veterinarian_3"
],
"additionalProperties": false
},
"description": "What vaccinations were given to the pet, including the vaccine names, administration dates, and veterinarian names?"
}
},
"required": [
"pet_name",
"owner_name",
"pet_breed",
"vaccinations"
],
"additionalProperties": false
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment