mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 08:24:53 +01:00
added schema validation and fixed master version schema
This commit is contained in:
parent
4ced37437b
commit
666041c9c9
2 changed files with 9 additions and 8 deletions
|
|
@ -17,14 +17,13 @@
|
|||
"properties": {
|
||||
"_id": {
|
||||
"description": "Document's id (database will create it's if not entered)",
|
||||
"type": "ObjectId",
|
||||
"example": "592c33475f8c1b064c4d1696"
|
||||
"example": "ObjectId(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"
|
||||
"enum": ["avalon-core:master_version-1.0", "pype:master_version-1.0"],
|
||||
"example": "pype:master_version-1.0"
|
||||
},
|
||||
"type": {
|
||||
"description": "The type of document",
|
||||
|
|
@ -34,8 +33,7 @@
|
|||
},
|
||||
"parent": {
|
||||
"description": "Unique identifier to parent document",
|
||||
"type": "ObjectId",
|
||||
"example": "592c33475f8c1b064c4d1696"
|
||||
"example": "ObjectId(592c33475f8c1b064c4d1697)"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue