Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
edielson-assis opened this issue Jan 5, 2025 · 0 comments

Comments

@edielson-assis
Copy link

edielson-assis commented Jan 5, 2025

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant