Skip to content

Commit 5668d39

Browse files
authored
Merge pull request #620 from handrews/pnames-draft-07
DRAFT-07: Fix propertyNames meta-schema
2 parents 1afc34b + e84885a commit 5668d39

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
@@ -39,16 +39,18 @@
3939
"properties": {
4040
"additionalProperties": { "$ref": "#" }
4141
},
42-
"if": {"$ref": "#"},
43-
"then": {"$ref": "#"},
44-
"else": {"$ref": "#"},
42+
"if": { "$ref": "#" },
43+
"then": { "$ref": "#" },
44+
"else": { "$ref": "#" },
4545
"allOf": { "$ref": "#/definitions/schemaArray" },
4646
"anyOf": { "$ref": "#/definitions/schemaArray" },
4747
"oneOf": { "$ref": "#/definitions/schemaArray" },
4848
"not": { "$ref": "#" },
4949
"contains": { "$ref": "#" },
50-
"propertyNames": { "$ref": "#" },
51-
50+
"propertyNames": {
51+
"type": "object",
52+
"additionalProperties": { "$ref": "#" }
53+
},
5254
"base": {
5355
"type": "string",
5456
"format": "uri-template"

schema.json

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,10 @@
134134
]
135135
}
136136
},
137-
"propertyNames": { "$ref": "#" },
137+
"propertyNames": {
138+
"type": "object",
139+
"additionalProperties": { "$ref": "#" }
140+
},
138141
"const": true,
139142
"enum": {
140143
"type": "array",
@@ -156,9 +159,9 @@
156159
"format": { "type": "string" },
157160
"contentMediaType": { "type": "string" },
158161
"contentEncoding": { "type": "string" },
159-
"if": {"$ref": "#"},
160-
"then": {"$ref": "#"},
161-
"else": {"$ref": "#"},
162+
"if": { "$ref": "#" },
163+
"then": { "$ref": "#" },
164+
"else": { "$ref": "#" },
162165
"allOf": { "$ref": "#/definitions/schemaArray" },
163166
"anyOf": { "$ref": "#/definitions/schemaArray" },
164167
"oneOf": { "$ref": "#/definitions/schemaArray" },

0 commit comments

Comments
 (0)