Skip to content

Conversation

char0n
Copy link
Contributor

@char0n char0n commented Dec 8, 2022

OpenAPI 3.0.x - enum SHOULD NOT be empty
OpenAPI 3.1.0 - enum MUST NOT be empty


For OpenAPI 3.0.x, empty enum field produces Warning. For OpenAPI 3.1.0, empty enum field produces Error.

Diference between Warning and Error:

Error - Something not allowed by the rules of a language or other means.
Warning - Something suspicious but allowed.

OpenAPI 3.0.x - enum SHOULD NOT be empty
OpenAPI 3.1.0 - enum MUST NOT be empty
@char0n char0n self-assigned this Dec 8, 2022
@char0n char0n merged commit 42ce28c into main Dec 8, 2022
@char0n char0n deleted the char0n/ls-server-variable-enum-lint-openapi-3 branch December 8, 2022 09:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant