From c06a4c337beb85df6e3a2bb18538ccb8a36c3f35 Mon Sep 17 00:00:00 2001 From: iLLiCiTiT Date: Thu, 20 Feb 2020 18:59:30 +0100 Subject: [PATCH] initial master version schema --- schema/master_version-1.0.json | 41 ++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 schema/master_version-1.0.json diff --git a/schema/master_version-1.0.json b/schema/master_version-1.0.json new file mode 100644 index 0000000000..173a076537 --- /dev/null +++ b/schema/master_version-1.0.json @@ -0,0 +1,41 @@ +{ + "$schema": "http://json-schema.org/draft-04/schema#", + + "title": "pype:master_version-1.0", + "description": "Master version of asset", + + "type": "object", + + "additionalProperties": true, + + "required": [ + "schema", + "type", + "parent" + ], + + "properties": { + "_id": { + "description": "Document's id (database will create it's if not entered)", + "type": "ObjectId", + "example": "592c33475f8c1b064c4d1696" + }, + "schema": { + "description": "The schema associated with this document", + "type": "string", + "enum": ["avalon-core:master_version-3.0", "pype:master_version-3.0"], + "example": "pype:master_version-3.0" + }, + "type": { + "description": "The type of document", + "type": "string", + "enum": ["master_version"], + "example": "master_version" + }, + "parent": { + "description": "Unique identifier to parent document", + "type": "ObjectId", + "example": "592c33475f8c1b064c4d1696" + } + } +}