Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit f1a7b77

Browse files
committed
Validation: Add "propertyNames" keyword
1 parent f36d132 commit f1a7b77

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

‎jsonschema-validation.xml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -550,6 +550,20 @@
550550
</t>
551551
</section>
552552

553+
<section title="propertyNames">
554+
<t>
555+
The value of "propertyNames" MUST be a valid JSON Schema.
556+
</t>
557+
<t>
558+
If the instance is an object, this keyword validates if every property name in the instance
559+
validates against the provided schema.
560+
Note the property name that the schema is testing will always be a string.
561+
</t>
562+
<t>
563+
A missing keyword is the same as an empty schema, or a schema testing that the type is "string".
564+
</t>
565+
</section>
566+
553567
<section title="enum">
554568
<t>
555569
The value of this keyword MUST be an array. This array SHOULD have at

‎schema.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@
124124
]
125125
}
126126
},
127+
"propertyNames": { "$ref": "#" },
127128
"const": {},
128129
"enum": {
129130
"type": "array",

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /