@jsstudio/development-api-interceptor
Version:
development-api-interceptor
671 lines (670 loc) • 44.6 kB
JSON
{
"title": "development api interceptor schema",
"description": "development api interceptor schema",
"type": "object",
"required": [
"database",
"tables"
],
"properties": {
"database": {
"type": "string",
"title": "The database key",
"description": "An explanation about the purpose of this instance.",
"not": {
"enum": [
""
]
}
},
"tables": {
"type": "array",
"title": "The tables schema",
"description": "An explanation about the purpose of this instance.",
"items": {
"oneOf": [
{
"type": "object",
"title": "Tables Schema",
"description": "An explanation about the purpose of this instance.",
"required": [
"table_name",
"columns"
],
"additionalItems": false,
"properties": {
"table_name": {
"type": "string",
"title": "The table_name schema",
"description": "An explanation about the purpose of this instance.",
"not": {
"enum": [
""
]
}
},
"columns": {
"type": "array",
"title": "The columns schema",
"description": "An explanation about the purpose of this instance.",
"additionalItems": false,
"items": {
"oneOf": [
{
"type": "object",
"title": "string schema",
"description": "string type schema",
"required": [
"entity_name",
"type",
"constraints"
],
"additionalProperties": false,
"properties": {
"entity_name": {
"type": "string",
"title": "The entity_name schema",
"description": "An explanation about the purpose of this instance.",
"not": {
"enum": [
""
]
}
},
"type": {
"type": "string",
"title": "The type schema",
"description": "An explanation about the purpose of this instance.",
"enum": [
"string"
]
},
"constraints": {
"type": "object",
"title": "The constraints schema",
"description": "An explanation about the purpose of this instance.",
"required": [
"MAX_LENGTH",
"NOT_NULL"
],
"additionalProperties": false,
"properties": {
"MAX_LENGTH": {
"type": "integer",
"title": "The MAX_LENGTH schema",
"description": "An explanation about the purpose of this instance.",
"not": {
"enum": [
0
]
}
},
"NOT_NULL": {
"type": "boolean",
"title": "The NOT_NULL schema",
"description": "An explanation about the purpose of this instance.",
"enum": [
true,
false
]
}
}
}
}
},
{
"type": "object",
"title": "number schema",
"description": "number type schema",
"required": [
"entity_name",
"type",
"constraints"
],
"additionalProperties": false,
"properties": {
"entity_name": {
"type": "string",
"title": "The entity_name schema",
"description": "An explanation about the purpose of this instance.",
"not": {
"enum": [
""
]
}
},
"type": {
"type": "string",
"title": "The type schema",
"description": "An explanation about the purpose of this instance.",
"enum": [
"integer",
"string"
]
},
"constraints": {
"type": "object",
"title": "The constraints schema",
"description": "An explanation about the purpose of this instance.",
"required": [
"NOT_NULL"
],
"additionalProperties": false,
"properties": {
"NOT_NULL": {
"type": "boolean",
"title": "The NOT_NULL schema",
"description": "An explanation about the purpose of this instance.",
"enum": [
true,
false
]
},
"AUTO_INCREMENT": {
"type": "boolean",
"title": "The AUTO_INCREMENT schema",
"description": "An explanation about the purpose of this instance.",
"enum": [
true,
false
]
},
"PRIMARY_KEY": {
"type": "boolean",
"title": "The PRIMARY_KEY schema",
"description": "An explanation about the purpose of this instance.",
"enum": [
true,
false
]
},
"FOREIGN_KEY": {
"type": "boolean",
"title": "The FOREIGN_KEY schema",
"description": "An explanation about the purpose of this instance.",
"enum": [
true,
false
]
}
}
}
}
},
{
"type": "object",
"title": "boolean schema",
"description": "boolean type schema",
"required": [
"entity_name",
"type",
"constraints"
],
"additionalProperties": false,
"properties": {
"entity_name": {
"type": "string",
"title": "The entity_name schema",
"description": "An explanation about the purpose of this instance.",
"not": {
"enum": [
""
]
}
},
"type": {
"type": "string",
"title": "The type schema",
"description": "An explanation about the purpose of this instance.",
"enum": [
"boolean"
]
},
"constraints": {
"type": "object",
"title": "The constraints schema",
"description": "An explanation about the purpose of this instance.",
"required": [
"NOT_NULL"
],
"additionalProperties": false,
"properties": {
"NOT_NULL": {
"type": "boolean",
"title": "The NOT_NULL schema",
"description": "An explanation about the purpose of this instance.",
"enum": [
true,
false
]
}
}
}
}
},
{
"type": "object",
"title": "json schema",
"description": "json type schema",
"required": [
"entity_name",
"type"
],
"additionalProperties": false,
"properties": {
"entity_name": {
"type": "string",
"title": "The entity_name schema",
"description": "An explanation about the purpose of this instance.",
"not": {
"enum": [
""
]
}
},
"type": {
"type": "string",
"title": "The type schema",
"description": "An explanation about the purpose of this instance.",
"enum": [
"json"
]
}
}
},
{
"type": "object",
"title": "float schema",
"description": "float type schema",
"required": [
"entity_name",
"type"
],
"additionalProperties": false,
"properties": {
"entity_name": {
"type": "string",
"title": "The entity_name schema",
"description": "An explanation about the purpose of this instance.",
"not": {
"enum": [
""
]
}
},
"type": {
"type": "string",
"title": "The type schema",
"description": "An explanation about the purpose of this instance.",
"enum": [
"float"
]
},
"constraints": {
"type": "object",
"title": "The constraints schema",
"description": "An explanation about the purpose of this instance.",
"required": [
"NOT_NULL"
],
"additionalProperties": false,
"properties": {
"NOT_NULL": {
"type": "boolean",
"title": "The NOT_NULL schema",
"description": "An explanation about the purpose of this instance.",
"enum": [
true,
false
]
}
}
}
}
},
{
"type": "object",
"title": "decimal schema",
"description": "decimal type schema",
"required": [
"entity_name",
"type"
],
"additionalProperties": false,
"properties": {
"entity_name": {
"type": "string",
"title": "The entity_name schema",
"description": "An explanation about the purpose of this instance.",
"not": {
"enum": [
""
]
}
},
"type": {
"type": "string",
"title": "The type schema",
"description": "An explanation about the purpose of this instance.",
"enum": [
"decimal"
]
},
"constraints": {
"type": "object",
"title": "The constraints schema",
"description": "An explanation about the purpose of this instance.",
"required": [
"NOT_NULL"
],
"additionalProperties": false,
"properties": {
"NOT_NULL": {
"type": "boolean",
"title": "The NOT_NULL schema",
"description": "An explanation about the purpose of this instance.",
"enum": [
true,
false
]
}
}
}
}
},
{
"type": "object",
"title": "date schema",
"description": "date type schema",
"required": [
"entity_name",
"type"
],
"additionalProperties": false,
"properties": {
"entity_name": {
"type": "string",
"title": "The entity_name schema",
"description": "An explanation about the purpose of this instance.",
"not": {
"enum": [
""
]
}
},
"type": {
"type": "string",
"title": "The type schema",
"description": "An explanation about the purpose of this instance.",
"enum": [
"date"
]
},
"constraints": {
"type": "object",
"title": "The constraints schema",
"description": "An explanation about the purpose of this instance.",
"required": [
"NOT_NULL"
],
"additionalProperties": false,
"properties": {
"NOT_NULL": {
"type": "boolean",
"title": "The NOT_NULL schema",
"description": "An explanation about the purpose of this instance.",
"enum": [
true,
false
]
},
"DEFAULT": {
"type": "string",
"title": "The DEFAULT schema",
"description": "An explanation about the purpose of this instance.",
"enum": [
"CURRENT_TIMESTAMP",
"NULL"
]
}
}
}
}
},
{
"type": "object",
"title": "date_time schema",
"description": "date_time type schema",
"required": [
"entity_name",
"type"
],
"additionalProperties": false,
"properties": {
"entity_name": {
"type": "string",
"title": "The entity_name schema",
"description": "An explanation about the purpose of this instance.",
"not": {
"enum": [
""
]
}
},
"type": {
"type": "string",
"title": "The type schema",
"description": "An explanation about the purpose of this instance.",
"enum": [
"date_time"
]
},
"constraints": {
"type": "object",
"title": "The constraints schema",
"description": "An explanation about the purpose of this instance.",
"required": [
"NOT_NULL"
],
"additionalProperties": false,
"properties": {
"NOT_NULL": {
"type": "boolean",
"title": "The NOT_NULL schema",
"description": "An explanation about the purpose of this instance.",
"enum": [
true, false
]
},
"DEFAULT": {
"type": "string",
"title": "The DEFAULT schema",
"description": "An explanation about the purpose of this instance.",
"enum": [
"CURRENT_TIMESTAMP",
"NULL"
]
}
}
}
}
},
{
"type": "object",
"title": "time schema",
"description": "time type schema",
"required": [
"entity_name",
"type"
],
"additionalProperties": false,
"properties": {
"entity_name": {
"type": "string",
"title": "The entity_name schema",
"description": "An explanation about the purpose of this instance.",
"not": {
"enum": [
""
]
}
},
"type": {
"type": "string",
"title": "The type schema",
"description": "An explanation about the purpose of this instance.",
"enum": [
"time"
]
},
"constraints": {
"type": "object",
"title": "The constraints schema",
"description": "An explanation about the purpose of this instance.",
"required": [
"NOT_NULL"
],
"additionalProperties": false,
"properties": {
"NOT_NULL": {
"type": "boolean",
"title": "The NOT_NULL schema",
"description": "An explanation about the purpose of this instance.",
"enum": [
true, false
]
},
"DEFAULT": {
"type": "string",
"title": "The DEFAULT schema",
"description": "An explanation about the purpose of this instance.",
"enum": [
"CURRENT_TIMESTAMP",
"NULL"
]
}
}
}
}
},
{
"type": "object",
"title": "time_stamp schema",
"description": "time_stamp type schema",
"required": [
"entity_name",
"type"
],
"additionalProperties": false,
"properties": {
"entity_name": {
"type": "string",
"title": "The entity_name schema",
"description": "An explanation about the purpose of this instance.",
"not": {
"enum": [
""
]
}
},
"type": {
"type": "string",
"title": "The type schema",
"description": "An explanation about the purpose of this instance.",
"enum": [
"time_stamp"
]
},
"constraints": {
"type": "object",
"title": "The constraints schema",
"description": "An explanation about the purpose of this instance.",
"required": [
"NOT_NULL"
],
"additionalProperties": false,
"properties": {
"NOT_NULL": {
"type": "boolean",
"title": "The NOT_NULL schema",
"description": "An explanation about the purpose of this instance.",
"enum": [
true, false
]
},
"DEFAULT": {
"type": "string",
"title": "The DEFAULT schema",
"description": "An explanation about the purpose of this instance.",
"enum": [
"CURRENT_TIMESTAMP",
"NULL"
]
}
}
}
}
}
]
}
},
"relationships": {
"type": "array",
"title": "The relationships schema",
"description": "An explanation about the purpose of this instance.",
"additionalItems": false,
"items": {
"oneOf": [
{
"type": "object",
"title": "Each table relationships schema",
"description": "Each table relationships schema",
"required": [
"associated_table",
"associated_column",
"foreign_key_column"
],
"additionalProperties": false,
"properties": {
"associated_table": {
"type": "string",
"title": "The associated_table schema",
"description": "An explanation about the purpose of this instance.",
"not": {
"enum": [
""
]
}
},
"associated_column": {
"type": "string",
"title": "The associated_column schema",
"description": "An explanation about the purpose of this instance.",
"not": {
"enum": [
""
]
}
},
"foreign_key_column": {
"type": "string",
"title": "The foreign_key_column schema",
"description": "An explanation about the purpose of this instance.",
"not": {
"enum": [
""
]
}
}
}
}
]
}
}
}
}
]
}
}
}
}