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

Generator: Operations without Tags are not included #35

Open
LukasFritzeDev opened this issue Mar 8, 2024 · 0 comments
Open

Generator: Operations without Tags are not included #35

LukasFritzeDev opened this issue Mar 8, 2024 · 0 comments

Comments

@LukasFritzeDev
Copy link
Member

LukasFritzeDev commented Mar 8, 2024

The behavior of the generator concerning the tags is very unusual.

Operations are only included in the output if both of these criteria are fulfilled:

  • The operation itself must have a tag. (A tag for the path is not sufficient.)
  • The tag must be listet on root level of the document.
    openApiDoc.tags = [{ name: "MyTag" }]; 
    

Expected behaviour:

  • Operations or paths without a tag should be included in a default namespace. The default namespace might be overwritten by an option.
  • Operations with a tag that is not listed in the document should be included. At least there should be an option to do this. I’d say the default should be to include such operations and by setting a flag strictTagValidation such operations can be excluded.

Here are some references to the code:

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

No branches or pull requests

1 participant