Closed JaredAAT closed 1 year ago
OK.. so worked out that
parameters: [
{
name: 'Access-Control-Allow-Origin',
in: 'header',
'$ref': '#/components/headers/Access-Control-Allow-Origin'
}
]
needs to reference parameters
in components
rather than headers
.
Checklist
Detailed Description
I believe this to be a valid OpenAPI 3 definition:
but when i run it through validate on https://mermade.org.uk/openapi-converter I receive the error:
Looking through the spec https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#headerObject it suggests that
name
should not be in the header within components. I get similar and more detailed errors when running it through: https://github.com/Mermade/oas-kit/blob/main/packages/oas-validator/README.md using: "oas-validator": "^5.0.8",Other stuff
node 14 oas-validator 5.0.8