From e84885a81202d961338ef26f8b2b197fbe4c8510 Mon Sep 17 00:00:00 2001 From: Henry Andrews Date: Wed, 20 Jun 2018 22:13:51 -0700 Subject: [PATCH 1/5] Fix propertyNames meta-schema Which has apparently been wrong the whole time. Also fix minor formatting inconsistencies. --- hyper-schema.json | 12 +++++++----- schema.json | 11 +++++++---- 2 files changed, 14 insertions(+), 9 deletions(-) diff --git a/hyper-schema.json b/hyper-schema.json index c0b3d248..f4f86621 100644 --- a/hyper-schema.json +++ b/hyper-schema.json @@ -39,16 +39,18 @@ "properties": { "additionalProperties": { "$ref": "#" } }, - "if": {"$ref": "#"}, - "then": {"$ref": "#"}, - "else": {"$ref": "#"}, + "if": { "$ref": "#" }, + "then": { "$ref": "#" }, + "else": { "$ref": "#" }, "allOf": { "$ref": "#/definitions/schemaArray" }, "anyOf": { "$ref": "#/definitions/schemaArray" }, "oneOf": { "$ref": "#/definitions/schemaArray" }, "not": { "$ref": "#" }, "contains": { "$ref": "#" }, - "propertyNames": { "$ref": "#" }, - + "propertyNames": { + "type": "object", + "additionalProperties": { "$ref": "#" } + }, "base": { "type": "string", "format": "uri-template" diff --git a/schema.json b/schema.json index 5bee90ec..0eea0ea5 100644 --- a/schema.json +++ b/schema.json @@ -134,7 +134,10 @@ ] } }, - "propertyNames": { "$ref": "#" }, + "propertyNames": { + "type": "object", + "additionalProperties": { "$ref": "#" } + }, "const": true, "enum": { "type": "array", @@ -156,9 +159,9 @@ "format": { "type": "string" }, "contentMediaType": { "type": "string" }, "contentEncoding": { "type": "string" }, - "if": {"$ref": "#"}, - "then": {"$ref": "#"}, - "else": {"$ref": "#"}, + "if": { "$ref": "#" }, + "then": { "$ref": "#" }, + "else": { "$ref": "#" }, "allOf": { "$ref": "#/definitions/schemaArray" }, "anyOf": { "$ref": "#/definitions/schemaArray" }, "oneOf": { "$ref": "#/definitions/schemaArray" }, From da318f9cb3320073740722665cdc67fdfbf2b01d Mon Sep 17 00:00:00 2001 From: Henry Andrews Date: Tue, 26 Jun 2018 21:58:07 -0700 Subject: [PATCH 2/5] Undo incorrect "propertyNames" change But leave the other minor formatting improvements --- hyper-schema.json | 5 +---- schema.json | 5 +---- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/hyper-schema.json b/hyper-schema.json index f4f86621..7ed18bc5 100644 --- a/hyper-schema.json +++ b/hyper-schema.json @@ -47,10 +47,7 @@ "oneOf": { "$ref": "#/definitions/schemaArray" }, "not": { "$ref": "#" }, "contains": { "$ref": "#" }, - "propertyNames": { - "type": "object", - "additionalProperties": { "$ref": "#" } - }, + "propertyNames": { "$ref": "#" }, "base": { "type": "string", "format": "uri-template" diff --git a/schema.json b/schema.json index 0eea0ea5..85079d89 100644 --- a/schema.json +++ b/schema.json @@ -134,10 +134,7 @@ ] } }, - "propertyNames": { - "type": "object", - "additionalProperties": { "$ref": "#" } - }, + "propertyNames": { "$ref": "#" }, "const": true, "enum": { "type": "array", From 6e2b42516dc7e8845c980d284c61bd44c9f95cd2 Mon Sep 17 00:00:00 2001 From: Ben Hutton Date: Thu, 15 Aug 2019 17:20:10 +0100 Subject: [PATCH 3/5] Added writeOnly to draft-7 meta schema Fixes #770 --- schema.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/schema.json b/schema.json index 85079d89..fb92c7f7 100644 --- a/schema.json +++ b/schema.json @@ -64,6 +64,10 @@ "type": "boolean", "default": false }, + "writeOnly": { + "type": "boolean", + "default": false + }, "examples": { "type": "array", "items": true From 567f768506aaa33a38e552c85bf0586029ef1b32 Mon Sep 17 00:00:00 2001 From: Jason Desrosiers Date: Tue, 21 Feb 2023 10:38:41 -0800 Subject: [PATCH 4/5] Fix hyper-schema output schema id --- hyper-schema-output.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hyper-schema-output.json b/hyper-schema-output.json index 81d32854..91d49d5d 100644 --- a/hyper-schema-output.json +++ b/hyper-schema-output.json @@ -1,5 +1,5 @@ { - "$id": "http://json-schema.org/draft-7/hyper-schema-output", + "$id": "http://json-schema.org/draft-07/hyper-schema-output", "$schema": "http://json-schema.org/draft-07/schema#", "type": "array", "items": { From 257954d310a09e310425fc4250e3c07781a60e5e Mon Sep 17 00:00:00 2001 From: Julian Berman Date: Thu, 2 Nov 2023 22:55:16 -0400 Subject: [PATCH 5/5] Update the link to the JSON Schema website. Refs: json-schema-org/website#201 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 1bafd11d..8d20b02f 100644 --- a/README.md +++ b/README.md @@ -52,7 +52,7 @@ Conformance tests for JSON Schema and its vocabularies may be found The JSON Schema web site is at http://json-schema.org/ -The source for the website is [maintained in a separate repository](https://github.com/json-schema-org/json-schema-org.github.io). +The source for the website is [maintained in a separate repository](https://github.com/json-schema-org/website). ## License