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

chore(must-define-example-schema): Weaken strictness of rule #37

Merged
merged 2 commits into from
Jul 25, 2023

Conversation

markbrockhoff
Copy link
Member

Weaken strictness of rule to only require examples for DTOs

Before a example was required for every key "content" which was quiet strict as examples can also be placed at attribute level. Now the rule only enforces a top-level example for every global DTO, thereby also matching the error message. It would be possible to enforce the usage of only DTOs for request bodys and responses in the future to further improve this rule.

…require examples for DTOs

Before a example was required for every key "content" which was quiet strict as examples can also be placed at attribute level. Now the rule only enforces a top-level example for every global DTO, thereby also matching the error message. It would be possible to enforce the usage of only DTOs for request bodys and responses in the future to further improve this rule.
@markbrockhoff markbrockhoff merged commit 2778a5b into main Jul 25, 2023
2 checks passed
@markbrockhoff markbrockhoff deleted the weaken-example-strictness branch July 25, 2023 13:01
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

Successfully merging this pull request may close these issues.

None yet

1 participant