Skip to content

Generator: Operations without Tags are not included #35

@LukasFritzeDev

Description

@LukasFritzeDev

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:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions