Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #350, specify JSON schema draft version #431

Merged
merged 2 commits into from
Aug 24, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion avalon/schema/application-1.0.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "http://json-schema.org/schema#",
"$schema": "http://json-schema.org/draft-04/schema#",

"title": "avalon-core:application-1.0",
"description": "An application definition.",
Expand Down
2 changes: 1 addition & 1 deletion avalon/schema/asset-1.0.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "http://json-schema.org/schema#",
"$schema": "http://json-schema.org/draft-04/schema#",

"title": "avalon-core:asset-1.0",
"description": "A unit of data",
Expand Down
6 changes: 3 additions & 3 deletions avalon/schema/asset-2.0.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "http://json-schema.org/schema#",
"$schema": "http://json-schema.org/draft-04/schema#",

"title": "avalon-core:asset-2.0",
"description": "A unit of data",
Expand All @@ -20,13 +20,13 @@
"schema": {
"description": "Schema identifier for payload",
"type": "string",
"const": "avalon-core:asset-2.0",
"enum": ["avalon-core:asset-2.0"],
"example": "avalon-core:asset-2.0"
},
"type": {
"description": "The type of document",
"type": "string",
"const": "asset",
"enum": ["asset"],
"example": "asset"
},
"parent": {
Expand Down
2 changes: 1 addition & 1 deletion avalon/schema/config-1.0.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "http://json-schema.org/schema#",
"$schema": "http://json-schema.org/draft-04/schema#",

"title": "avalon-core:config-1.0",
"description": "A project configuration.",
Expand Down
4 changes: 2 additions & 2 deletions avalon/schema/container-1.0.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "http://json-schema.org/schema#",
"$schema": "http://json-schema.org/draft-04/schema#",

"title": "avalon-core:container-1.0",
"description": "A loaded asset",
Expand Down Expand Up @@ -28,7 +28,7 @@
"id": {
"description": "Identifier for finding object in host",
"type": "string",
"const": "pyblish.mindbender.container",
"enum": ["pyblish.mindbender.container"],
"example": "pyblish.mindbender.container"
},
"objectName": {
Expand Down
6 changes: 3 additions & 3 deletions avalon/schema/container-2.0.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "http://json-schema.org/schema#",
"$schema": "http://json-schema.org/draft-04/schema#",

"title": "avalon-core:container-2.0",
"description": "A loaded asset",
Expand All @@ -21,13 +21,13 @@
"schema": {
"description": "Schema identifier for payload",
"type": "string",
"const": "avalon-core:container-2.0",
"enum": ["avalon-core:container-2.0"],
"example": "avalon-core:container-2.0"
},
"id": {
"description": "Identifier for finding object in host",
"type": "string",
"const": "pyblish.avalon.container",
"enum": ["pyblish.avalon.container"],
"example": "pyblish.avalon.container"
},
"objectName": {
Expand Down
2 changes: 1 addition & 1 deletion avalon/schema/inventory-1.0.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "http://json-schema.org/schema#",
"$schema": "http://json-schema.org/draft-04/schema#",

"title": "avalon-core:config-1.0",
"description": "A project configuration.",
Expand Down
6 changes: 3 additions & 3 deletions avalon/schema/project-2.0.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "http://json-schema.org/schema#",
"$schema": "http://json-schema.org/draft-04/schema#",

"title": "avalon-core:project-2.0",
"description": "A unit of data",
Expand All @@ -20,13 +20,13 @@
"schema": {
"description": "Schema identifier for payload",
"type": "string",
"const": "avalon-core:project-2.0",
"enum": ["avalon-core:project-2.0"],
"example": "avalon-core:project-2.0"
},
"type": {
"description": "The type of document",
"type": "string",
"const": "project",
"enum": ["project"],
"example": "project"
},
"parent": {
Expand Down
2 changes: 1 addition & 1 deletion avalon/schema/representation-1.0.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "http://json-schema.org/schema#",
"$schema": "http://json-schema.org/draft-04/schema#",

"title": "avalon-core:representation-1.0",
"description": "The inverse of an instance",
Expand Down
6 changes: 3 additions & 3 deletions avalon/schema/representation-2.0.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "http://json-schema.org/schema#",
"$schema": "http://json-schema.org/draft-04/schema#",

"title": "avalon-core:representation-2.0",
"description": "The inverse of an instance",
Expand All @@ -20,13 +20,13 @@
"schema": {
"description": "Schema identifier for payload",
"type": "string",
"const": "avalon-core:representation-2.0",
"enum": ["avalon-core:representation-2.0"],
"example": "avalon-core:representation-2.0"
},
"type": {
"description": "The type of document",
"type": "string",
"const": "representation",
"enum": ["representation"],
"example": "representation"
},
"parent": {
Expand Down
2 changes: 1 addition & 1 deletion avalon/schema/session-1.0.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "http://json-schema.org/schema#",
"$schema": "http://json-schema.org/draft-04/schema#",

"title": "avalon-core:session-1.0",
"description": "The Avalon environment",
Expand Down
2 changes: 1 addition & 1 deletion avalon/schema/shaders-1.0.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "http://json-schema.org/schema#",
"$schema": "http://json-schema.org/draft-04/schema#",

"title": "avalon-core:shaders-1.0",
"description": "Relationships between shaders and Avalon IDs",
Expand Down
2 changes: 1 addition & 1 deletion avalon/schema/subset-1.0.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "http://json-schema.org/schema#",
"$schema": "http://json-schema.org/draft-04/schema#",

"title": "avalon-core:subset-1.0",
"description": "A container of instances",
Expand Down
6 changes: 3 additions & 3 deletions avalon/schema/subset-2.0.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "http://json-schema.org/schema#",
"$schema": "http://json-schema.org/draft-04/schema#",

"title": "avalon-core:subset-2.0",
"description": "A container of instances",
Expand All @@ -20,13 +20,13 @@
"schema": {
"description": "The schema associated with this document",
"type": "string",
"const": "avalon-core:subset-2.0",
"enum": ["avalon-core:subset-2.0"],
"example": "avalon-core:subset-2.0"
},
"type": {
"description": "The type of document",
"type": "string",
"const": "subset",
"enum": ["subset"],
"example": "subset"
},
"parent": {
Expand Down
2 changes: 1 addition & 1 deletion avalon/schema/version-1.0.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "http://json-schema.org/schema#",
"$schema": "http://json-schema.org/draft-04/schema#",

"title": "avalon-core:version-1.0",
"description": "An individual version",
Expand Down
6 changes: 3 additions & 3 deletions avalon/schema/version-2.0.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "http://json-schema.org/schema#",
"$schema": "http://json-schema.org/draft-04/schema#",

"title": "avalon-core:version-2.0",
"description": "An individual version",
Expand All @@ -20,13 +20,13 @@
"schema": {
"description": "The schema associated with this document",
"type": "string",
"const": "avalon-core:version-2.0",
"enum": ["avalon-core:version-2.0"],
"example": "avalon-core:version-2.0"
},
"type": {
"description": "The type of document",
"type": "string",
"const": "version",
"enum": ["version"],
"example": "version"
},
"parent": {
Expand Down