Skip to content

Missing configuration metadata in Gateway MVC #3267

Open
@ThomasVitale

Description

@ThomasVitale

Describe the bug

The configuration properties in the spring.cloud.gateway.mvc.routes-map group are missing metadata, resulting in IDEs not being able to validate values or suggest completions. It looks like something related to the fact that it's defined as a Map and includes an object which is defined in another class, not nested. The latter scenario would be typically solved with the @NestedConfigurationProperty annotation, but it doesn't support Maps. On the other hand, the spring.cloud.gateway.mvc.routes group (defined as a List) comes with the right metadata.

A possible solution would be to add the metadata explicitly in a additional-spring-configuration-metadata.json file. I'm not sure if there's some way in Spring Boot to support this scenario automatically via the Configuration Processor.

Screenshot 2024-02-15 at 18 59 16

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions