Skip to content

Commit 8e2b335

Browse files
refactor: remove type from jsonschema when const defined (#710)
fixes #709 done to remove anti-pattern which could have caused problems if code using schema assumed type with const but it wasn't defined that way
1 parent 6ab1548 commit 8e2b335

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

schemas/manual_schema.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,9 @@
55
"required": ["$schema", "kind", "name"],
66
"properties": {
77
"$schema": {
8-
"type": "string",
98
"const": "manual_schema.json#"
109
},
1110
"kind": {
12-
"type": "string",
1311
"const": "manual"
1412
},
1513
"name": {

schemas/manual_version_schema.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,9 @@
6262
],
6363
"properties": {
6464
"$schema": {
65-
"type": "string",
6665
"const": "manual_version_schema.json#"
6766
},
6867
"kind": {
69-
"type": "string",
7068
"const": "manual version"
7169
},
7270
"name": {

0 commit comments

Comments
 (0)