File tree Expand file tree Collapse file tree 3 files changed +24
-11
lines changed Expand file tree Collapse file tree 3 files changed +24
-11
lines changed Original file line number Diff line number Diff line change 540
540
541
541
<t >
542
542
The current URI for this vocabulary, known as the Format-Annotation vocabulary, is:
543
- < https://json-schema.org/draft/2020-11/vocab/format-annotation> . This vocabulary
544
- is required by this specification.
543
+ < https://json-schema.org/draft/2020-11/vocab/format-annotation> . The current
544
+ URI for the corresponding meta-schema is:
545
+ <eref target =" https://json-schema.org/draft/2020-11/meta/format-annotation" />.
546
+ Implementing support for this vocabulary is REQUIRED.
545
547
</t >
546
548
<t >
547
549
In addition to the Format-Annotation vocabulary, a secondary vocabulary is available
548
550
for custom meta-schemas that defines "format" as an assertion. The URI for the
549
551
Format-Assertion vocabulary, is:
550
- < https://json-schema.org/draft/2020-11/vocab/format-assertion> .
551
- </t >
552
- <t >
553
- The current URI for the corresponding meta-schema is:
554
- <eref target =" https://json-schema.org/draft/2020-11/meta/format" />. Because the
555
- syntactic requirements of "format" do not change between the annotation and assertion
556
- vocabularies, the meta-schema is shared between them.
552
+ < https://json-schema.org/draft/2020-11/vocab/format-assertion> . The current
553
+ URI for the corresponding meta-schema is:
554
+ <eref target =" https://json-schema.org/draft/2020-11/meta/format-assertion" />.
555
+ Implementing support for the Format-Assertion vocabulary is OPTIONAL.
557
556
</t >
558
557
<t >
559
558
Specifying both the Format-Annotation and the Format-Assertion vocabularies is functionally
Original file line number Diff line number Diff line change
1
+ {
2
+ "$schema" : " https://json-schema.org/draft/2019-09/schema" ,
3
+ "$id" : " https://json-schema.org/draft/2019-09/meta/format-annotation" ,
4
+ "$vocabulary" : {
5
+ "https://json-schema.org/draft/2019-09/vocab/format-annotation" : true
6
+ },
7
+ "$dynamicAnchor" : " meta" ,
8
+
9
+ "title" : " Format vocabulary meta-schema" ,
10
+ "type" : [" object" , " boolean" ],
11
+ "properties" : {
12
+ "format" : { "type" : " string" }
13
+ }
14
+ }
Original file line number Diff line number Diff line change 1
1
{
2
2
"$schema" : " https://json-schema.org/draft/2019-09/schema" ,
3
- "$id" : " https://json-schema.org/draft/2019-09/meta/format" ,
3
+ "$id" : " https://json-schema.org/draft/2019-09/meta/format-assertion " ,
4
4
"$vocabulary" : {
5
- "https://json-schema.org/draft/2019-09/vocab/format" : true
5
+ "https://json-schema.org/draft/2019-09/vocab/format-assertion " : true
6
6
},
7
7
"$dynamicAnchor" : " meta" ,
8
8
You can’t perform that action at this time.
0 commit comments