Skip to content

Commit a2c6b1c

Browse files
authored
Merge pull request #611 from handrews/meta-default
Fix default usage in meta-schemas
2 parents 7d7efca + ec64727 commit a2c6b1c

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

links.json

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@
2929
"format": "uri-template"
3030
},
3131
"hrefSchema": {
32-
"$ref": "http://json-schema.org/draft-08/hyper-schema#"
32+
"$ref": "http://json-schema.org/draft-08/hyper-schema#",
33+
"default": false
3334
},
3435
"templatePointers": {
3536
"type": "object",
@@ -55,21 +56,24 @@
5556
"type": "string"
5657
},
5758
"targetSchema": {
58-
"$ref": "http://json-schema.org/draft-08/hyper-schema#"
59+
"$ref": "http://json-schema.org/draft-08/hyper-schema#",
60+
"default": true
5961
},
6062
"targetMediaType": {
6163
"type": "string"
6264
},
6365
"targetHints": { },
6466
"headerSchema": {
65-
"$ref": "http://json-schema.org/draft-08/hyper-schema#"
67+
"$ref": "http://json-schema.org/draft-08/hyper-schema#",
68+
"default": true
6669
},
6770
"submissionMediaType": {
6871
"type": "string",
6972
"default": "application/json"
7073
},
7174
"submissionSchema": {
72-
"$ref": "http://json-schema.org/draft-08/hyper-schema#"
75+
"$ref": "http://json-schema.org/draft-08/hyper-schema#",
76+
"default": true
7377
},
7478
"$comment": {
7579
"type": "string"

schema.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,7 @@
106106
"anyOf": [
107107
{ "$ref": "#" },
108108
{ "$ref": "#/$defs/schemaArray" }
109-
],
110-
"default": true
109+
]
111110
},
112111
"maxItems": { "$ref": "#/$defs/nonNegativeInteger" },
113112
"minItems": { "$ref": "#/$defs/nonNegativeIntegerDefault0" },
@@ -169,6 +168,5 @@
169168
"anyOf": { "$ref": "#/$defs/schemaArray" },
170169
"oneOf": { "$ref": "#/$defs/schemaArray" },
171170
"not": { "$ref": "#" }
172-
},
173-
"default": true
171+
}
174172
}

0 commit comments

Comments
 (0)