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

false positive for license object in OpenAPI 3.1.0 descriptions #2748

Open
jschaefer77 opened this issue Nov 28, 2024 · 0 comments
Open

false positive for license object in OpenAPI 3.1.0 descriptions #2748

jschaefer77 opened this issue Nov 28, 2024 · 0 comments

Comments

@jschaefer77
Copy link

jschaefer77 commented Nov 28, 2024

Describe the bug
For OpenAPI 3.1.0 spectral expects in license object an identifier or url if name it set.
It's not possible to set license name only!

To Reproduce
Set only a license name without identifier and url in OpenAPI 3.1.0 spec file.

license: name: some text

Expected behavior
license identifier and url is not required for OpenAPI 3.1.0, even if license name was set.
https://spec.openapis.org/oas/v3.1.0.html#license-object

Environment (remove any that are not applicable):

  • Library version: Spectral CLI 6.14.2
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

1 participant