@cotype/core
Version:
<h2 align="center"> <img src="https://cotype.dev/logo.svg" alt="cotype" /> </h2>
1,373 lines (1,372 loc) • 154 kB
JSON
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"definitions": {
"Field": {
"anyOf": [
{
"additionalProperties": false,
"properties": {
"get": {
"additionalProperties": false,
"type": "object"
},
"label": {
"type": "string"
},
"outputType": {
"enum": [
"string"
],
"type": "string"
},
"type": {
"enum": [
"virtual"
],
"type": "string"
}
},
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"get": {
"additionalProperties": false,
"type": "object"
},
"label": {
"type": "string"
},
"outputType": {
"enum": [
"number"
],
"type": "string"
},
"type": {
"enum": [
"virtual"
],
"type": "string"
}
},
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"get": {
"additionalProperties": false,
"type": "object"
},
"label": {
"type": "string"
},
"outputType": {
"enum": [
"boolean"
],
"type": "string"
},
"type": {
"enum": [
"virtual"
],
"type": "string"
}
},
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"defaultValue": {
"type": "boolean"
},
"hidden": {
"type": "boolean"
},
"index": {
"type": "boolean"
},
"input": {
"enum": [
"checkbox",
"toggle"
],
"type": "string"
},
"label": {
"type": "string"
},
"required": {
"type": "boolean"
},
"type": {
"enum": [
"boolean"
],
"type": "string"
}
},
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"hidden": {
"type": "boolean"
},
"index": {
"type": "boolean"
},
"label": {
"type": "string"
},
"max": {
"type": "number"
},
"min": {
"type": "number"
},
"placeholder": {
"type": "string"
},
"precision": {
"type": "number"
},
"required": {
"type": "boolean"
},
"search": {
"type": "boolean"
},
"step": {
"type": "number"
},
"type": {
"enum": [
"number"
],
"type": "string"
}
},
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"formats": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"items": {
"items": {
},
"type": "array"
},
"type": "array"
}
]
},
"hidden": {
"type": "boolean"
},
"index": {
"type": "boolean"
},
"label": {
"type": "string"
},
"linkFormats": {
"items": {
"enum": [
"link",
"mail",
"media",
"tel"
],
"type": "string"
},
"type": "array"
},
"modules": {
"additionalProperties": {
},
"type": "object"
},
"required": {
"type": "boolean"
},
"search": {
"type": "boolean"
},
"type": {
"enum": [
"richtext"
],
"type": "string"
}
},
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"hidden": {
"type": "boolean"
},
"index": {
"type": "boolean"
},
"label": {
"type": "string"
},
"maxLength": {
"type": "number"
},
"placeholder": {
"type": "string"
},
"readOnly": {
"type": "boolean"
},
"regexError": {
"type": "string"
},
"required": {
"type": "boolean"
},
"search": {
"type": "boolean"
},
"store": {
"type": "boolean"
},
"type": {
"enum": [
"string"
],
"type": "string"
},
"validationRegex": {
"type": "string"
}
},
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"hidden": {
"type": "boolean"
},
"index": {
"type": "boolean"
},
"input": {
"enum": [
"textarea"
],
"type": "string"
},
"label": {
"type": "string"
},
"maxLength": {
"type": "number"
},
"maxRows": {
"type": "number"
},
"minRows": {
"type": "number"
},
"placeholder": {
"type": "string"
},
"readOnly": {
"type": "boolean"
},
"required": {
"type": "boolean"
},
"search": {
"type": "boolean"
},
"store": {
"type": "boolean"
},
"type": {
"enum": [
"string"
],
"type": "string"
}
},
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"alwaysEditable": {
"type": "boolean"
},
"hidden": {
"type": "boolean"
},
"index": {
"type": "boolean"
},
"input": {
"enum": [
"slug"
],
"type": "string"
},
"label": {
"type": "string"
},
"required": {
"type": "boolean"
},
"search": {
"type": "boolean"
},
"type": {
"enum": [
"string"
],
"type": "string"
}
},
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"defaultValue": {
"type": "string"
},
"hidden": {
"type": "boolean"
},
"index": {
"type": "boolean"
},
"input": {
"enum": [
"date"
],
"type": "string"
},
"label": {
"type": "string"
},
"placeholder": {
"type": "string"
},
"required": {
"type": "boolean"
},
"search": {
"type": "boolean"
},
"type": {
"enum": [
"string"
],
"type": "string"
}
},
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"fetch": {
"type": "string"
},
"hidden": {
"type": "boolean"
},
"index": {
"type": "boolean"
},
"input": {
"enum": [
"select"
],
"type": "string"
},
"label": {
"type": "string"
},
"nullLabel": {
"type": "string"
},
"required": {
"type": "boolean"
},
"search": {
"type": "boolean"
},
"type": {
"enum": [
"string"
],
"type": "string"
},
"values": {
"items": {
"anyOf": [
{
"additionalProperties": false,
"properties": {
"label": {
"type": "string"
},
"value": {
"type": [
"string",
"number"
]
}
},
"type": "object"
},
{
"type": "string"
}
]
},
"type": "array"
}
},
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"index": {
"type": "boolean"
},
"label": {
"type": "string"
},
"type": {
"enum": [
"position"
],
"type": "string"
}
},
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"fieldName": {
"type": "string"
},
"label": {
"type": "string"
},
"model": {
"type": "string"
},
"type": {
"enum": [
"references"
],
"type": "string"
}
},
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"hidden": {
"type": "boolean"
},
"label": {
"type": "string"
},
"maxSize": {
"type": "number"
},
"mediaType": {
"enum": [
"all"
],
"type": "string"
},
"mimeType": {
"type": "string"
},
"required": {
"type": "boolean"
},
"type": {
"enum": [
"media"
],
"type": "string"
},
"withExternal": {
"type": "boolean"
}
},
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"hidden": {
"type": "boolean"
},
"label": {
"type": "string"
},
"maxHeight": {
"type": "number"
},
"maxSize": {
"type": "number"
},
"maxWidth": {
"type": "number"
},
"mediaType": {
"enum": [
"image"
],
"type": "string"
},
"minHeight": {
"type": "number"
},
"minWidth": {
"type": "number"
},
"required": {
"type": "boolean"
},
"type": {
"enum": [
"media"
],
"type": "string"
},
"withExternal": {
"type": "boolean"
}
},
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"hidden": {
"type": "boolean"
},
"label": {
"type": "string"
},
"maxSize": {
"type": "number"
},
"mediaType": {
"enum": [
"video"
],
"type": "string"
},
"required": {
"type": "boolean"
},
"type": {
"enum": [
"media"
],
"type": "string"
},
"withExternal": {
"type": "boolean"
}
},
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"hidden": {
"type": "boolean"
},
"label": {
"type": "string"
},
"maxSize": {
"type": "number"
},
"mediaType": {
"enum": [
"pdf"
],
"type": "string"
},
"required": {
"type": "boolean"
},
"type": {
"enum": [
"media"
],
"type": "string"
},
"withExternal": {
"type": "boolean"
}
},
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"label": {
"type": "string"
},
"model": {
"type": "string"
},
"required": {
"type": "boolean"
},
"type": {
"enum": [
"settings"
],
"type": "string"
}
},
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"fields": {
"$ref": "#/definitions/Fields"
},
"label": {
"type": "string"
},
"layout": {
"enum": [
"horizontal",
"inline",
"vertical"
],
"type": "string"
},
"modalView": {
"type": "boolean"
},
"type": {
"enum": [
"object"
],
"type": "string"
},
"typeName": {
"type": "string"
}
},
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"keys": {
"additionalProperties": false,
"properties": {
"fetch": {
"type": "string"
},
"values": {
"items": {
"anyOf": [
{
"additionalProperties": false,
"properties": {
"label": {
"type": "string"
},
"value": {
"type": "string"
}
},
"type": "object"
},
{
"type": "string"
}
]
},
"type": "array"
}
},
"type": "object"
},
"label": {
"type": "string"
},
"type": {
"enum": [
"map"
],
"type": "string"
},
"values": {
"$ref": "#/definitions/Type"
}
},
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"addLabel": {
"type": "string"
},
"hidden": {
"type": "boolean"
},
"item": {
"$ref": "#/definitions/Field"
},
"label": {
"type": "string"
},
"layout": {
"enum": [
"block",
"inline"
],
"type": "string"
},
"maxLength": {
"type": "number"
},
"minLength": {
"type": "number"
},
"required": {
"type": "boolean"
},
"schedule": {
"type": "boolean"
},
"sortable": {
"type": "boolean"
},
"type": {
"enum": [
"list"
],
"type": "string"
},
"typeName": {
"type": "string"
}
},
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"label": {
"type": "string"
},
"required": {
"type": "boolean"
},
"type": {
"enum": [
"union"
],
"type": "string"
},
"types": {
"$ref": "#/definitions/UnionTypeTypes"
}
},
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"allowAbsoluteRefs": {
"type": "boolean"
},
"hidden": {
"type": "boolean"
},
"index": {
"type": "boolean"
},
"label": {
"type": "string"
},
"model": {
"type": "string"
},
"models": {
"items": {
"type": "string"
},
"type": "array"
},
"required": {
"type": "boolean"
},
"type": {
"enum": [
"content",
"external",
"settings"
],
"type": "string"
}
},
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"externalDataSource": {
"enum": [
true
],
"type": "boolean"
},
"index": {
"type": "boolean"
},
"label": {
"type": "string"
},
"model": {
"type": "string"
},
"type": {
"enum": [
"content"
],
"type": "string"
}
},
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"child": {
"$ref": "#/definitions/Field"
},
"label": {
"type": "string"
},
"type": {
"enum": [
"immutable"
],
"type": "string"
}
},
"type": "object"
}
]
},
"Fields": {
"$ref": "#/definitions/__type"
},
"Type": {
"anyOf": [
{
"additionalProperties": false,
"properties": {
"get": {
"additionalProperties": false,
"type": "object"
},
"outputType": {
"enum": [
"string"
],
"type": "string"
},
"type": {
"enum": [
"virtual"
],
"type": "string"
}
},
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"get": {
"additionalProperties": false,
"type": "object"
},
"outputType": {
"enum": [
"number"
],
"type": "string"
},
"type": {
"enum": [
"virtual"
],
"type": "string"
}
},
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"get": {
"additionalProperties": false,
"type": "object"
},
"outputType": {
"enum": [
"boolean"
],
"type": "string"
},
"type": {
"enum": [
"virtual"
],
"type": "string"
}
},
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"defaultValue": {
"type": "boolean"
},
"hidden": {
"type": "boolean"
},
"index": {
"type": "boolean"
},
"input": {
"enum": [
"checkbox",
"toggle"
],
"type": "string"
},
"required": {
"type": "boolean"
},
"type": {
"enum": [
"boolean"
],
"type": "string"
}
},
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"hidden": {
"type": "boolean"
},
"index": {
"type": "boolean"
},
"max": {
"type": "number"
},
"min": {
"type": "number"
},
"placeholder": {
"type": "string"
},
"precision": {
"type": "number"
},
"required": {
"type": "boolean"
},
"search": {
"type": "boolean"
},
"step": {
"type": "number"
},
"type": {
"enum": [
"number"
],
"type": "string"
}
},
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"formats": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"items": {
"items": {
},
"type": "array"
},
"type": "array"
}
]
},
"hidden": {
"type": "boolean"
},
"index": {
"type": "boolean"
},
"linkFormats": {
"items": {
"enum": [
"link",
"mail",
"media",
"tel"
],
"type": "string"
},
"type": "array"
},
"modules": {
"additionalProperties": {
},
"type": "object"
},
"required": {
"type": "boolean"
},
"search": {
"type": "boolean"
},
"type": {
"enum": [
"richtext"
],
"type": "string"
}
},
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"hidden": {
"type": "boolean"
},
"index": {
"type": "boolean"
},
"maxLength": {
"type": "number"
},
"placeholder": {
"type": "string"
},
"readOnly": {
"type": "boolean"
},
"regexError": {
"type": "string"
},
"required": {
"type": "boolean"
},
"search": {
"type": "boolean"
},
"store": {
"type": "boolean"
},
"type": {
"enum": [
"string"
],
"type": "string"
},
"validationRegex": {
"type": "string"
}
},
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"hidden": {
"type": "boolean"
},
"index": {
"type": "boolean"
},
"input": {
"enum": [
"textarea"
],
"type": "string"
},
"maxLength": {
"type": "number"
},
"maxRows": {
"type": "number"
},
"minRows": {
"type": "number"
},
"placeholder": {
"type": "string"
},
"readOnly": {
"type": "boolean"
},
"required": {
"type": "boolean"
},
"search": {
"type": "boolean"
},
"store": {
"type": "boolean"
},
"type": {
"enum": [
"string"
],
"type": "string"
}
},
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"alwaysEditable": {
"type": "boolean"
},
"hidden": {
"type": "boolean"
},
"index": {
"type": "boolean"
},
"input": {
"enum": [
"slug"
],
"type": "string"
},
"required": {
"type": "boolean"
},
"search": {
"type": "boolean"
},
"type": {
"enum": [
"string"
],
"type": "string"
}
},
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"defaultValue": {
"type": "string"
},
"hidden": {
"type": "boolean"
},
"index": {
"type": "boolean"
},
"input": {
"enum": [
"date"
],
"type": "string"
},
"placeholder": {
"type": "string"
},
"required": {
"type": "boolean"
},
"search": {
"type": "boolean"
},
"type": {
"enum": [
"string"
],
"type": "string"
}
},
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"fetch": {
"type": "string"
},
"hidden": {
"type": "boolean"
},
"index": {
"type": "boolean"
},
"input": {
"enum": [
"select"
],
"type": "string"
},
"nullLabel": {
"type": "string"
},
"required": {
"type": "boolean"
},
"search": {
"type": "boolean"
},
"type": {
"enum": [
"string"
],
"type": "string"
},
"values": {
"items": {
"anyOf": [
{
"additionalProperties": false,
"properties": {
"label": {
"type": "string"
},
"value": {
"type": [
"string",
"number"
]
}
},
"type": "object"
},
{
"type": "string"
}
]
},
"type": "array"
}
},
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"index": {
"type": "boolean"
},
"type": {
"enum": [
"position"
],
"type": "string"
}
},
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"fieldName": {
"type": "string"
},
"model": {
"type": "string"
},
"type": {
"enum": [
"references"
],
"type": "string"
}
},
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"hidden": {
"type": "boolean"
},
"maxSize": {
"type": "number"
},
"mediaType": {
"enum": [
"all"
],
"type": "string"
},
"mimeType": {
"type": "string"
},
"required": {
"type": "boolean"
},
"type": {