feat(oas31): add support for Schema Object xml keyword (#8657)

Refs #8513
This commit is contained in:
Vladimír Gorej
2023-05-11 16:28:02 +02:00
committed by GitHub
parent f74ff82897
commit 9bb5a210c0
6 changed files with 131 additions and 10 deletions

View File

@@ -8,5 +8,6 @@ export const makeIsExpandable = (original, { fn }) => {
const { hasKeyword } = fn.jsonSchema202012
return (schema) => original(schema) || hasKeyword(schema, "example")
return (schema) =>
original(schema) || hasKeyword(schema, "example") || schema?.xml
}