Skip to content

Commit

Permalink
remove $schema from JSON data/instance
Browse files Browse the repository at this point in the history
	follow argumentation here json-schema/json-schema#220

	The reference to which JSON schema the JSON data belongs shall
be handled by the user, NOT from inside the data.

	Also the validation against a JSON schema, or the mapping from
data to schema shall be handled by the user.

	A convention (not determined by the json-schema) is that the
JSON schema has `$schema`, the JSON data not.
  • Loading branch information
albertmink committed Sep 14, 2021
1 parent bdc0c35 commit ffae07f
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 13 deletions.
1 change: 0 additions & 1 deletion file-formats/intf/examples/z_aff_example_intf.intf.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"$schema": "://github.com/SAP/abap-file-formats/blob/main/file-formats/intf/intf.json",
"version": "1",
"header": {
"description": "Example interface for ABAP file formats",
Expand Down
6 changes: 0 additions & 6 deletions file-formats/intf/intf-v.1.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,6 @@
"description": "Interface properties",
"type": "object",
"properties": {
"$schema": {
"title": "Schema",
"description": "Format version",
"type": "string"
},
"version": {
"description": "The ABAP file format version for INTF.",
"enum": [ "1" ]
Expand Down Expand Up @@ -304,7 +299,6 @@
},
"additionalProperties": false,
"required": [
"$schema",
"version",
"header"
]
Expand Down
6 changes: 0 additions & 6 deletions file-formats/intf/intf-v.2.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,6 @@
"description": "Interface properties",
"type": "object",
"properties": {
"$schema": {
"title": "Schema",
"description": "Format version",
"type": "string"
},
"version": {
"description": "The ABAP file format version for INTF.",
"enum": [ "2" ]
Expand Down Expand Up @@ -304,7 +299,6 @@
},
"additionalProperties": false,
"required": [
"$schema",
"version",
"header"
]
Expand Down

0 comments on commit ffae07f

Please sign in to comment.