Files
varsity/test/schemas/product-schema.json
2025-10-01 20:01:42 +00:00

35 lines
600 B
JSON

{
"type": "object",
"required": ["id", "name", "price"],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"name": {
"type": "string",
"minLength": 1,
"maxLength": 200
},
"description": {
"type": "string",
"maxLength": 1000
},
"price": {
"$ref": "./price-schema.json"
},
"category": {
"$ref": "./category-schema.json"
},
"inventory": {
"$ref": "./inventory-schema.json"
},
"tags": {
"type": "array",
"items": {
"type": "string"
}
}
}
}