formidable/misc/schema/json/my-schema.json

40 lines
851 B
JSON
Raw Normal View History

2022-03-22 09:21:55 +01:00
{
"$id": "https://example.com/custom.schema.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
2022-05-05 16:22:52 +02:00
"title": "My Schema",
2022-03-22 09:21:55 +01:00
"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"
}
}
}
}
}
}
}
}