Skip to content

Swagger Interface Not Rendering with specification-arg-resolver in Spring Boot 3.x #263

@edielson-assis

Description

@edielson-assis

I followed the documentation instructions to use the specification-arg-resolver with Swagger in Spring Boot 3.x, but I couldn't get it to work. The Swagger interface doesn't render.

I am using the following versions:

Spring Boot

<version>3.3.7</version>

specification-arg-resolver

<dependency>
	<groupId>net.kaczmarzyk</groupId>
	<artifactId>specification-arg-resolver</artifactId>
	<version>3.0.0</version>
</dependency>

Springdoc Openapi

<dependency>
	<groupId>org.springdoc</groupId>
	<artifactId>springdoc-openapi-starter-common</artifactId>
	<version>2.0.2</version>
</dependency>

I created the following bean:

@Configuration
public class SpecificationConfig {

    @Bean
    public SpecificationArgResolverSpringdocOperationCustomizer specificationArgResolverSpringdocOperationCustomizer() {
        return new SpecificationArgResolverSpringdocOperationCustomizer();
    }
}

In the image below, you can see what is being displayed when accessing the application via Swagger.

Screenshot 2025-01-05 202931

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions