Skip to content

Add Info to OpenAPI and GroupedOpenAPI properties #2318

Closed
@simomonster

Description

@simomonster

Is your feature request related to a problem? Please describe.

When declaring groups with properties it's not possible to add info customizations dynamically, for each group.

Programmatically I can add info (Title, Description) to openAPIs, but when I want to generate groups dynamically I can't customize (adding Info) each grouped openAPI identifying it by group.

Describe the solution you'd like

  • adding properties: springdoc.info and springdoc.group-configs[].info where info will be mapped to io.swagger.v3.oas.models.info.Info or at least title, description, version fields. ie:
    springdoc.info.title
    springdoc.info.description
    springdoc.info.version
  • Document is generated automatically (without adding customization) with info included

Describe alternatives you've considered

  • In alternative, simpler, but with more effort for clients. Add OpenApiGroupedCustomizer. This way we can add info dynamically for each group.
    The alternative could be added even in parallel with the main solution, as it could be useful for other purposes as well.

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