Skip to content

Instantly share code, notes, and snippets.

@tsangpo
Created November 10, 2019 07:41
Show Gist options
  • Save tsangpo/a950530e180c5cdb68ec57956af18d25 to your computer and use it in GitHub Desktop.
Save tsangpo/a950530e180c5cdb68ec57956af18d25 to your computer and use it in GitHub Desktop.
webcent
{
"$ref": "#/definitions/Root",
"$schema": "http://json-schema.org/draft-07/schema#",
"definitions": {
"Root": {
"additionalProperties": false,
"properties": {
"models": {
"additionalProperties": {
"additionalProperties": false,
"properties": {
"description": {
"type": "string"
},
"fields": {
"items": {
"additionalProperties": false,
"properties": {
"image": {
"additionalProperties": false,
"properties": {
"height": {
"type": "number"
},
"transform": {
"enum": [
"thumb",
"cover"
],
"type": "string"
},
"width": {
"type": "number"
}
},
"required": [
"transform",
"width",
"height"
],
"type": "object"
},
"model": {
"additionalProperties": false,
"properties": {
"query": {
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
},
"name": {
"type": "string"
},
"select": {
"items": {
"type": "string"
},
"type": "array"
},
"title": {
"type": "string"
},
"type": {
"enum": [
"text",
"number",
"textarea",
"content",
"select",
"image",
"images",
"file",
"files",
"model",
"multiple"
],
"type": "string"
}
},
"required": [
"name",
"title",
"type"
],
"type": "object"
},
"type": "array"
},
"id": {
"type": "string"
},
"name": {
"type": "string"
}
},
"required": [
"id",
"name",
"fields"
],
"type": "object"
},
"type": "object"
},
"pages": {
"additionalProperties": {
"additionalProperties": false,
"properties": {
"id": {
"type": "string"
},
"models": {
"additionalProperties": {
"additionalProperties": false,
"properties": {
"multiple": {
"additionalProperties": false,
"properties": {
"pagination": {
"type": "number"
}
},
"required": [
"pagination"
],
"type": "object"
},
"options": {
"additionalProperties": {
"items": {
},
"type": "array"
},
"type": "object"
},
"query": {
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type",
"options"
],
"type": "object"
},
"type": "object"
},
"name": {
"type": "string"
},
"template": {
"type": "string"
}
},
"required": [
"id",
"name",
"template",
"models"
],
"type": "object"
},
"type": "object"
},
"routes": {
"items": {
"additionalProperties": false,
"properties": {
"items": {
"items": {
"$ref": "#/definitions/interface-share/schema.ts-0-125-share/schema.ts-0-1288"
},
"type": "array"
},
"title": {
"type": "string"
},
"uri": {
"type": "string"
}
},
"required": [
"uri",
"title",
"items"
],
"type": "object"
},
"type": "array"
}
},
"required": [
"models",
"routes",
"pages"
],
"type": "object"
},
"interface-share/schema.ts-0-125-share/schema.ts-0-1288": {
"additionalProperties": false,
"properties": {
"items": {
"items": {
"$ref": "#/definitions/interface-share/schema.ts-0-125-share/schema.ts-0-1288"
},
"type": "array"
},
"title": {
"type": "string"
},
"uri": {
"type": "string"
}
},
"required": [
"uri",
"title",
"items"
],
"type": "object"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment