feat: add support for OpenAPI 3.0.4 (#10247)
Signed-off-by: Vincent Biret <vincentbiret@hotmail.com> Co-authored-by: Vladimír Gorej <vladimir.gorej@gmail.com>
This commit is contained in:
@@ -7,8 +7,7 @@ export function isOAS30(jsSpec) {
|
||||
const oasVersion = jsSpec.get("openapi")
|
||||
|
||||
return (
|
||||
typeof oasVersion === "string" &&
|
||||
/^3\.0\.([0123])(?:-rc[012])?$/.test(oasVersion)
|
||||
typeof oasVersion === "string" && /^3\.0\.(?:[1-9]\d*|0)$/.test(oasVersion)
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user