We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
no-unnecessary-combinator
A combinator like allOf, anyOf or oneOf with only a single member is useless and could trigger a warning:
allOf
anyOf
oneOf
openapi: 3.0.3 components: schemas: foo: type: string bar: allOf: - "$ref": "/components/schemas/foo"
Corrected, the schema for bar would be:
bar
bar: "$ref": "/components/schemas/foo"
The text was updated successfully, but these errors were encountered:
Nice idea! will add it to the list
Sorry, something went wrong.
No branches or pull requests
A combinator like
allOf
,anyOf
oroneOf
with only a single member is useless and could trigger a warning:Corrected, the schema for
bar
would be:The text was updated successfully, but these errors were encountered: