Skip to content

OpenAPI 3.x.y - all the required fields validation needs to take account of $ref field #2264

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

Closed
char0n opened this issue Nov 9, 2022 · 1 comment
Assignees
Labels

Comments

@char0n
Copy link
Member

char0n commented Nov 9, 2022

If we have spec object, that can be referenced with Reference Object and it contains fixed fields that are required, we need to make sure, that --required lint rules only triggeres where $ref field is missing.

NOTE: please also check AsyncAPI rules if they are OK as part of this issue, if not, please create separate issue for AsyncAPI

@char0n
Copy link
Member Author

char0n commented Nov 11, 2022

Problem already manifested and reported in swagger-api/swagger-editor#3652

char0n added a commit that referenced this issue Nov 11, 2022
Required lints are now performed only when
 field is missing.

Refs #2264
Refs swagger-api/swagger-editor#3652
char0n added a commit that referenced this issue Nov 11, 2022
Required lints are now performed only when
 field is missing.

Refs #2264
Refs swagger-api/swagger-editor#3652
@char0n char0n closed this as completed Nov 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant