Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing required property '$ref' in components/headers but not in component/parameters #41

Open
Moribund7 opened this issue Dec 14, 2023 · 1 comment

Comments

@Moribund7
Copy link

Missing required property $ref notification is shown when the header is defined in component/headers [1], but not when the same code is put in "parameters [2]. I'm using the 1.69 version of the plugin.

[1]
image

[2]
image

@ak1394
Copy link
Contributor

ak1394 commented Dec 21, 2023

It looks like your headers entry violates OAS schema: https://spec.openapis.org/oas/v3.0.3#header-object

In particular:

1. name MUST NOT be specified, it is given in the corresponding headers map.
2. in MUST NOT be specified, it is implicitly in header.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants