@rapharacing/schemas
Version:
OpenAPI to JSON Schema to be used with middy for CC response validation
30 lines • 735 B
JSON
{
"type": "object",
"properties": {
"code": {
"type": "string",
"description": "Code of the category"
},
"image": {
"description": "Category image",
"$ref": "_definitions.json#/definitions/Image",
"originalRef": "Image"
},
"name": {
"type": "string",
"description": "Name of the category"
},
"parent": {
"description": "Breadcrumb parent category",
"$ref": "_definitions.json#/definitions/Category",
"originalRef": "Category"
},
"url": {
"type": "string",
"description": "URL of the category"
}
},
"title": "Category",
"description": "Representation of a Category",
"$schema": "http://json-schema.org/schema#"
}