114 lines
2.1 KiB
JSON
114 lines
2.1 KiB
JSON
|
|
{
|
||
|
|
"type": "object",
|
||
|
|
"additionalProperties": false,
|
||
|
|
"properties": {
|
||
|
|
"domains": {
|
||
|
|
"type": "array",
|
||
|
|
"items": {
|
||
|
|
"type": "object",
|
||
|
|
"additionalProperties": false,
|
||
|
|
"properties": {
|
||
|
|
"name": {
|
||
|
|
"type": "string"
|
||
|
|
},
|
||
|
|
"description": {
|
||
|
|
"type": ["null", "string"],
|
||
|
|
"default": null
|
||
|
|
},
|
||
|
|
"key_field": {
|
||
|
|
"type": ["null","object"],
|
||
|
|
"additionalProperties": false,
|
||
|
|
"properties": {
|
||
|
|
"name": {
|
||
|
|
"type": "string"
|
||
|
|
},
|
||
|
|
"description": {
|
||
|
|
"type": ["null", "string"],
|
||
|
|
"default": null
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"required": [
|
||
|
|
"name"
|
||
|
|
],
|
||
|
|
"default": null
|
||
|
|
},
|
||
|
|
"data_fields": {
|
||
|
|
"type": "array",
|
||
|
|
"items": {
|
||
|
|
"type": "object",
|
||
|
|
"additionalProperties": false,
|
||
|
|
"properties": {
|
||
|
|
"name": {
|
||
|
|
"type": "string"
|
||
|
|
},
|
||
|
|
"description": {
|
||
|
|
"type": ["null", "string"],
|
||
|
|
"default": null
|
||
|
|
},
|
||
|
|
"type": {
|
||
|
|
"type": "string",
|
||
|
|
"enum": [
|
||
|
|
"boolean",
|
||
|
|
"integer",
|
||
|
|
"float",
|
||
|
|
"string_short",
|
||
|
|
"string_medium",
|
||
|
|
"string_long"
|
||
|
|
]
|
||
|
|
},
|
||
|
|
"nullable": {
|
||
|
|
"type": "boolean",
|
||
|
|
"default": true
|
||
|
|
},
|
||
|
|
"default": {
|
||
|
|
"type": ["null", "boolean", "integer", "float", "string"],
|
||
|
|
"default": null
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"required": [
|
||
|
|
"name",
|
||
|
|
"type"
|
||
|
|
]
|
||
|
|
},
|
||
|
|
"default": []
|
||
|
|
},
|
||
|
|
"constraints": {
|
||
|
|
"type": "array",
|
||
|
|
"items": {
|
||
|
|
"type": "object",
|
||
|
|
"additionalProperties": false,
|
||
|
|
"properties": {
|
||
|
|
"kind": {
|
||
|
|
"type": "string",
|
||
|
|
"enum": [
|
||
|
|
"unique",
|
||
|
|
"foreign_key"
|
||
|
|
]
|
||
|
|
},
|
||
|
|
"parameters": {
|
||
|
|
"type": "object",
|
||
|
|
"additionalProperties": "string",
|
||
|
|
"properties": {
|
||
|
|
},
|
||
|
|
"required": [
|
||
|
|
]
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"required": [
|
||
|
|
"kind"
|
||
|
|
]
|
||
|
|
},
|
||
|
|
"default": []
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"required": [
|
||
|
|
"name"
|
||
|
|
]
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"required": [
|
||
|
|
"domains"
|
||
|
|
]
|
||
|
|
}
|