You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I get ' 38:18 error oas3-schema Property schema is not expected to be here. components.headers.Cache-Control.schema'
Expected behavior
According to https://swagger.io/specification/#header-object the property 'schema' is allowed in a header declaration. There should be no error regarding rule oas3-schema.
It's easy to mix up, as schema often has an attribute $ref in other use cases. If the component has schema in it, then the object referencing it should not refer to it from a schema attribute. I think... if anyone posts additional info here, that'd help me out.
NOTE: only happens for version 3.0.1, it works fine in 3.1.0.
To Reproduce
schema
is not expected to be here. components.headers.Cache-Control.schema'Expected behavior
According to https://swagger.io/specification/#header-object the property 'schema' is allowed in a header declaration. There should be no error regarding rule oas3-schema.
openapi.zip
The text was updated successfully, but these errors were encountered: