formidable/schema.json

39 lines
827 B
JSON

{
"$id": "https://example.com/custom.schema.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"description": "Test",
"type": "object",
"required": [
"foo"
],
"properties": {
"foo": {
"description": "Ça fait des trucs",
"type": "object",
"properties": {
"bar": {
"type": "string",
"minLength": 5
},
"enabled": {
"type": "boolean"
},
"myItems": {
"type": "array",
"items": {
"type": "object",
"properties": {
"stringProp": {
"type": "string",
"minLength": 10
},
"numericProp": {
"type": "integer"
}
}
}
}
}
}
}
}