Skip to content

Commit

Permalink
Merge pull request #431 from davidlatwe/jsonschema
Browse files Browse the repository at this point in the history
Fix #350, specify JSON schema draft version
  • Loading branch information
mottosso authored Aug 24, 2019
2 parents a01db0f + e97d4fb commit 60da0a0
Show file tree
Hide file tree
Showing 16 changed files with 29 additions and 29 deletions.
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

0 comments on commit 60da0a0

Please sign in to comment.