Skip to content

Complex lint rule: apilintValuesIncluded #2194

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

Open
tim-lai opened this issue Oct 26, 2022 · 0 comments
Open

Complex lint rule: apilintValuesIncluded #2194

tim-lai opened this issue Oct 26, 2022 · 0 comments
Labels
ApiDOM enhancement New feature or request

Comments

@tim-lai
Copy link
Contributor

tim-lai commented Oct 26, 2022

Is your feature request related to a problem?

from #2193 (comment)

@char0n on the lint side of things, do we have a way to lint/validate that a default value is present within the enum list? e.g. per: If the [enum](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#serverVariableEnum) is defined, the value MUST exist in the enum's values.

We don't. We'll have to create one. The closer we have is apilintKeysIncluded function. This new one is going to be apilintValuesIncluded.

Describe the solution you'd like

Describe alternatives you've considered

Additional context

@tim-lai tim-lai added enhancement New feature or request ApiDOM labels Oct 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ApiDOM enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant