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

Tags validation #725

Open
acabarbaye opened this issue Apr 11, 2024 · 1 comment
Open

Tags validation #725

acabarbaye opened this issue Apr 11, 2024 · 1 comment

Comments

@acabarbaye
Copy link

Describe the bug
If tags are not defined for a particular endpoint, the following error is raised:

> Task :runValidation FAILED
*ERROR* in Operation GET /.../ 'tags' -> The collection should be present and there should be at least one item in it

It is good to encourage tags to be set. However, it would be better if the validation could also ensure that the tags section was also filled and the tag ID set at the endpoint level was defined there. Would also be good to encourage the presence of a description.

Additional context
using openapi-style-validator-cli-1.11-all.jar

@JFCote
Copy link
Member

JFCote commented May 2, 2024

Hi @acabarbaye, this is a great suggestion!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants