Skip to content

Commit 6729ac0

Browse files
authored
Merge pull request #619 from handrews/pnames
Fix propertyNames meta-schema (curent master)
2 parents 1790b7b + e206c0a commit 6729ac0

File tree

2 files changed

+14
-9
lines changed

2 files changed

+14
-9
lines changed

hyper-schema.json

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,16 +43,18 @@
4343
"properties": {
4444
"additionalProperties": { "$ref": "#" }
4545
},
46-
"if": {"$ref": "#"},
47-
"then": {"$ref": "#"},
48-
"else": {"$ref": "#"},
46+
"if": { "$ref": "#" },
47+
"then": { "$ref": "#" },
48+
"else": { "$ref": "#" },
4949
"allOf": { "$ref": "#/$defs/schemaArray" },
5050
"anyOf": { "$ref": "#/$defs/schemaArray" },
5151
"oneOf": { "$ref": "#/$defs/schemaArray" },
5252
"not": { "$ref": "#" },
5353
"contains": { "$ref": "#" },
54-
"propertyNames": { "$ref": "#" },
55-
54+
"propertyNames": {
55+
"type": "object",
56+
"additionalProperties": { "$ref": "#" }
57+
},
5658
"base": {
5759
"type": "string",
5860
"format": "uri-template"

schema.json

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,10 @@
140140
]
141141
}
142142
},
143-
"propertyNames": { "$ref": "#" },
143+
"propertyNames": {
144+
"type": "object",
145+
"additionalProperties": { "$ref": "#" }
146+
},
144147
"const": true,
145148
"enum": {
146149
"type": "array",
@@ -162,9 +165,9 @@
162165
"format": { "type": "string" },
163166
"contentMediaType": { "type": "string" },
164167
"contentEncoding": { "type": "string" },
165-
"if": {"$ref": "#"},
166-
"then": {"$ref": "#"},
167-
"else": {"$ref": "#"},
168+
"if": { "$ref": "#" },
169+
"then": { "$ref": "#" },
170+
"else": { "$ref": "#" },
168171
"allOf": { "$ref": "#/$defs/schemaArray" },
169172
"anyOf": { "$ref": "#/$defs/schemaArray" },
170173
"oneOf": { "$ref": "#/$defs/schemaArray" },

0 commit comments

Comments
 (0)