Last active
April 19, 2018 01:58
-
-
Save AlexSkrypnyk/fac0f494370a86cd5e6e0e4a062491f8 to your computer and use it in GitHub Desktop.
page schemata
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "http:\/\/json-schema.org\/draft-04\/schema#", | |
"id": "https:\/\/nginx-php-content-vic-develop.lagoon.vicsdp.amazee.io\/schemata\/node\/page?_format=schema_json&_describes=api_json", | |
"type": "object", | |
"title": "node:page Schema", | |
"description": "Use <em>Page<\/em> content type for basic pages.", | |
"properties": { | |
"attributes": { | |
"type": "object", | |
"properties": { | |
"nid": { | |
"type": "integer", | |
"title": "ID" | |
}, | |
"uuid": { | |
"type": "string", | |
"title": "UUID", | |
"maxLength": 128 | |
}, | |
"vid": { | |
"type": "integer", | |
"title": "Revision ID" | |
}, | |
"langcode": { | |
"type": "object", | |
"properties": { | |
"value": { | |
"type": "string", | |
"title": "Language code" | |
}, | |
"language": { | |
"type": "language_reference", | |
"title": "Language object", | |
"description": "The referenced language" | |
} | |
}, | |
"required": [ | |
"value" | |
], | |
"title": "Language" | |
}, | |
"revision_timestamp": { | |
"type": "number", | |
"title": "Revision create time", | |
"format": "utc-millisec", | |
"description": "The time that the current revision was created." | |
}, | |
"revision_log": { | |
"type": "string", | |
"title": "Revision log message", | |
"description": "Briefly describe the changes you have made.", | |
"default": "" | |
}, | |
"status": { | |
"type": "boolean", | |
"title": "Published", | |
"default": true | |
}, | |
"title": { | |
"type": "string", | |
"title": "Title", | |
"maxLength": 255 | |
}, | |
"created": { | |
"type": "number", | |
"title": "Authored on", | |
"format": "utc-millisec", | |
"description": "The time that the node was created." | |
}, | |
"changed": { | |
"type": "number", | |
"title": "Changed", | |
"format": "utc-millisec", | |
"description": "The time that the node was last edited." | |
}, | |
"promote": { | |
"type": "boolean", | |
"title": "Promoted to front page", | |
"default": true | |
}, | |
"sticky": { | |
"type": "boolean", | |
"title": "Sticky at top of lists", | |
"default": false | |
}, | |
"default_langcode": { | |
"type": "boolean", | |
"title": "Default translation", | |
"description": "A flag indicating whether this is the default translation.", | |
"default": true | |
}, | |
"revision_default": { | |
"type": "boolean", | |
"title": "Default revision", | |
"description": "A flag indicating whether this was a default revision when it was saved." | |
}, | |
"revision_translation_affected": { | |
"type": "boolean", | |
"title": "Revision translation affected", | |
"description": "Indicates if the last edit of a translation belongs to current revision." | |
}, | |
"moderation_state": { | |
"type": "string", | |
"title": "Moderation state", | |
"maxLength": 255, | |
"description": "The moderation state of this piece of content." | |
}, | |
"path": { | |
"type": "object", | |
"properties": { | |
"alias": { | |
"type": "string", | |
"title": "Path alias" | |
}, | |
"pid": { | |
"type": "integer", | |
"title": "Path id" | |
}, | |
"langcode": { | |
"type": "string", | |
"title": "Language Code" | |
} | |
}, | |
"title": "URL alias" | |
}, | |
"body": { | |
"type": "object", | |
"properties": { | |
"value": { | |
"type": "string", | |
"title": "Text" | |
}, | |
"format": { | |
"type": "string", | |
"title": "Text format" | |
}, | |
"summary": { | |
"type": "string", | |
"title": "Summary" | |
} | |
}, | |
"required": [ | |
"value" | |
], | |
"title": "Body" | |
}, | |
"field_page_intro_text": { | |
"type": "string", | |
"title": "Introduction Text", | |
"description": "Add Introduction text for this page." | |
}, | |
"field_page_show_rating": { | |
"type": "boolean", | |
"title": "Show Content Rating?", | |
"description": "Check this box if you want to show content ratings on this page.", | |
"default": 1 | |
}, | |
"field_page_show_related": { | |
"type": "boolean", | |
"title": "Show Related Content?", | |
"description": "Check this box if you want to show Related Content for this page.", | |
"default": 1 | |
}, | |
"field_page_show_social": { | |
"type": "boolean", | |
"title": "Show Social Sharing?", | |
"description": "Check this box if you want to show Social Sharing block on this page.", | |
"default": 1 | |
} | |
}, | |
"required": [ | |
"nid", | |
"uuid", | |
"vid", | |
"title", | |
"revision_translation_affected", | |
"path", | |
"body" | |
] | |
}, | |
"relationships": { | |
"properties": { | |
"type": { | |
"type": "object", | |
"properties": { | |
"data": { | |
"type": "object", | |
"required": [ | |
"type", | |
"id" | |
], | |
"properties": { | |
"type": { | |
"type": "string", | |
"title": "Referenced resource", | |
"enum": [ | |
"node_type--node_type" | |
] | |
}, | |
"id": { | |
"type": "string", | |
"title": "Resource ID", | |
"format": "uuid", | |
"maxLength": 128 | |
} | |
} | |
} | |
}, | |
"title": "Resource Identifier" | |
}, | |
"revision_uid": { | |
"type": "object", | |
"properties": { | |
"data": { | |
"type": "object", | |
"required": [ | |
"type", | |
"id" | |
], | |
"properties": { | |
"type": { | |
"type": "string", | |
"title": "Referenced resource", | |
"enum": [ | |
"user--user" | |
] | |
}, | |
"id": { | |
"type": "string", | |
"title": "Resource ID", | |
"format": "uuid", | |
"maxLength": 128 | |
} | |
} | |
} | |
}, | |
"title": "Resource Identifier" | |
}, | |
"uid": { | |
"type": "object", | |
"properties": { | |
"data": { | |
"type": "object", | |
"required": [ | |
"type", | |
"id" | |
], | |
"properties": { | |
"type": { | |
"type": "string", | |
"title": "Referenced resource", | |
"enum": [ | |
"user--user" | |
] | |
}, | |
"id": { | |
"type": "string", | |
"title": "Resource ID", | |
"format": "uuid", | |
"maxLength": 128 | |
} | |
} | |
} | |
}, | |
"title": "Resource Identifier" | |
}, | |
"menu_link": { | |
"type": "object", | |
"properties": { | |
"data": { | |
"type": "object", | |
"required": [ | |
"type", | |
"id" | |
], | |
"properties": { | |
"type": { | |
"type": "string", | |
"title": "Referenced resource", | |
"enum": [ | |
"menu_link_content--menu_link_content" | |
] | |
}, | |
"id": { | |
"type": "string", | |
"title": "Resource ID", | |
"format": "uuid", | |
"maxLength": 128 | |
} | |
} | |
} | |
}, | |
"title": "Resource Identifier" | |
}, | |
"field_node_primary_site": { | |
"type": "object", | |
"properties": { | |
"data": { | |
"type": "object", | |
"required": [ | |
"type", | |
"id" | |
], | |
"properties": { | |
"type": { | |
"type": "string", | |
"title": "Referenced resource", | |
"enum": [ | |
"taxonomy_term--sites" | |
] | |
}, | |
"id": { | |
"type": "string", | |
"title": "Resource ID", | |
"format": "uuid", | |
"maxLength": 128 | |
} | |
} | |
} | |
}, | |
"title": "Resource Identifier" | |
}, | |
"field_node_site": { | |
"type": "object", | |
"properties": { | |
"data": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"required": [ | |
"type", | |
"id" | |
], | |
"properties": { | |
"type": { | |
"type": "string", | |
"title": "Referenced resource", | |
"enum": [ | |
"taxonomy_term--sites" | |
] | |
}, | |
"id": { | |
"type": "string", | |
"title": "Resource ID", | |
"format": "uuid", | |
"maxLength": 128 | |
} | |
} | |
} | |
} | |
}, | |
"title": "Resource Identifier" | |
}, | |
"field_page_feature_image": { | |
"type": "object", | |
"properties": { | |
"data": { | |
"type": "object", | |
"required": [ | |
"type", | |
"id" | |
], | |
"properties": { | |
"type": { | |
"type": "string", | |
"title": "Referenced resource", | |
"enum": [ | |
"media--image" | |
] | |
}, | |
"id": { | |
"type": "string", | |
"title": "Resource ID", | |
"format": "uuid", | |
"maxLength": 128 | |
} | |
} | |
} | |
}, | |
"title": "Resource Identifier" | |
}, | |
"field_topic": { | |
"type": "object", | |
"properties": { | |
"data": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"required": [ | |
"type", | |
"id" | |
], | |
"properties": { | |
"type": { | |
"type": "string", | |
"title": "Referenced resource", | |
"enum": [ | |
"taxonomy_term--topic" | |
] | |
}, | |
"id": { | |
"type": "string", | |
"title": "Resource ID", | |
"format": "uuid", | |
"maxLength": 128 | |
} | |
} | |
} | |
} | |
}, | |
"title": "Resource Identifier" | |
} | |
}, | |
"type": "object" | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment