Open mattbishop opened 4 years ago
@mattbishop yes, OAS 3.1 will support full compatibility with JSON Schema draft 2019-09, assuming nothing happens to derail https://github.com/OAI/OpenAPI-Specification/pull/1977
We worked through the wording of the thorniest problem this week, so I think it's a pretty safe bet at this point.
However, I feel compelled to format that schema with indentation 😃
{
"type": "array",
"minItems": 2,
"uniqueItems": true,
"items": [
{
"type": "string",
"pattern": "^<.*>$",
}
],
"additionalItems": {
"type": "object",
"minProperties": 1,
"maxProperties": 1,
"properties": {
"rel": {...},
"title": {...},
"anchor": {...},
...
}
},
"contains": {
"type": "object",
"required": ["rel"]
}
}
That's just a copy-paste from Slack! I need to fill in the rel/title/anchor bits as well.
@handrews contributed a JSON-schema version that cannot be expressed in OAS 3; perhaps 3.1 will?
{ "type": "array", "minItems": 2, "uniqueItems": true, "items": [ { "type": "string", "pattern": "^<.*>$", } ], "additionalItems": { "type": "object", "minProperties": 1, "maxProperties": 1, "properties": { "rel": {...}, "title": {...}, "anchor": {...}, ... } }, "contains": { "type": "object", "required": ["rel"] } }