User: dan@sartography.com clicked save for examples/2-in-depth/data-stores/key-value-data-store/foods-schema.json

This commit is contained in:
sartography-automated-committer 2024-02-21 01:13:13 +00:00
parent e829141423
commit c852de09ac

View File

@ -1,30 +1,30 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the favorite food",
"minLength": 1
},
"cuisine": {
"type": "string",
"description": "Cuisine type of the food (optional)",
"nullable": true
},
"description": {
"type": "string",
"description": "Optional description of the food",
"nullable": true
},
"rating": {
"type": "number",
"description": "Rating of the food on a scale from 1 to 5 (optional)",
"minimum": 1,
"maximum": 5,
"nullable": true
}
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the favorite food",
"minLength": 1
},
"cuisine": {
"type": "string",
"description": "Cuisine type of the food (optional)",
"nullable": true
},
"description": {
"type": "string",
"description": "Optional description of the food",
"nullable": true
},
"rating": {
"type": "number",
"description": "Rating of the food on a scale from 1 to 5 (optional)",
"minimum": 1,
"maximum": 5,
"nullable": true
}
},
"required": ["name"]
}
}