Skip to content

Swagger ui syntax highlighting configuration properties do not autocomplete #948

Closed
@AlexFalappa

Description

@AlexFalappa

While editing an application.properties file in an IDE I noticed that springdoc.swagger-ui.syntax gets completed into springdoc.swagger-ui.syntax-highlight but this is not enough it should propose springdoc.swagger-ui.syntax-highlight.theme and springdoc.swagger-ui.syntax-highlight.activate.

Infact the configuration properties metadata extracted by Spring Boot configuration processor is incomplete. I checked META-INF/spring-configuration-metadata.json in springdoc-openapi-common-1.5.0.jar and it contains only:

...
    {
      "name": "springdoc.swagger-ui.syntax-highlight",
      "type": "org.springdoc.core.AbstractSwaggerUiConfigProperties$SyntaxHighlight",
      "description": "The Syntax highlight.",
      "sourceType": "org.springdoc.core.SwaggerUiConfigProperties"
    },
...

The configuration properties class org.springdoc.core.AbstractSwaggerUiConfigProperties seems correct and the configuration processor should extract the metadata from org.springdoc.core.AbstractSwaggerUiConfigProperties$SyntaxHighlight inner class.

It would be useful to see why configuration metadata for the inner SyntaxHighlight class is not extracted.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions