Questions tagged [micronaut-openapi]

14 questions
5
votes
0 answers

Gradle built of Micronaut-based app breaks with NoSuchMethodError from 3rd-party snakeyaml lib, caused by incompat. with OpenAPI Generator plugin

since last week (first occurence on 9th of May 2023) our Gradle build of a Micronaut-based application fails with [...] > Task :openApiGenerate FAILED Error snake-parsing yaml content java.lang.NoSuchMethodError:…
Christian
  • 293
  • 2
  • 14
2
votes
2 answers

How to generate endpoints for micronaut via OpenApi Generator?

Is there a way in micronaut to generate endpoints in a way like we do it in spring-boot via spec.yaml file? our code represented an endpoint @Override public ResponseEntity createUser(UserDto userDto) { User user =…
2
votes
3 answers

Opening swagger UI gives 404 with Micronaut

Following the documentation over here - https://micronaut-projects.github.io/micronaut-openapi/1.3.4/guide/index.html I configured my build.gradle to include compile time tasks for swagger yaml generation as follows- tasks.withType(JavaCompile){ …
Abhishek
  • 681
  • 1
  • 6
  • 25
1
vote
1 answer

Micronaut queryConfigEnabled

I would like to activate the queryConfigEnabled swagger-ui property. Is there a way to do that? Maybe in the openapi.properties or somewhere else?
Heog
  • 36
  • 5
1
vote
1 answer

Issues generating an OpenAPI spec using Micronaut-openapi for sealed Kotlin classes

I'm having trouble with sealed classes. I get a specification from Micronaut-openapi, but the code generator I am using (orval) experiences a cyclic reference and fails. Given this data class: @JsonTypeInfo( use = JsonTypeInfo.Id.NAME, …
DanneJ
  • 358
  • 1
  • 9
1
vote
0 answers

Reusing @Parameter docs in Swagger/Micronaut APIs in Java/Kotlin

Having a hard time trying to figure out the "right" way of doing this. I'm using Micronaut to create a REST service that uses OpenAPI/Swagger by transforming my API annotations into open API specs. I'm trying to eliminate annotation duplication…
Anthony Naddeo
  • 2,497
  • 25
  • 28
1
vote
3 answers

swagger ui not accessible with micronaut multi-module project gradle build

I have a below project structure Project product and API gateway share the common project as common. Since in the parent project settings.Gradle I have included the project as below rootProject.name = 'src' include 'common', 'fetebird-apigateway',…
San Jaisy
  • 15,327
  • 34
  • 171
  • 290
1
vote
0 answers

Open api 3 + Spring cloud gateway + Micronaut Rest api

I am trying to use the spring cloud API gateway with micronaut microservice, for routes routing as we can see in the below diagram, both the application are register to Consul discovery service. I use Micronaut for rest API because it is fast and…
San Jaisy
  • 15,327
  • 34
  • 171
  • 290
1
vote
3 answers

Micronaut (Gradle & Java) - Swagger Integration Views not accessible with security enabled

Following the documentation over here - https://micronaut-projects.github.io/micronaut-openapi/latest/guide/index.html I configured my build.gradle to include compile time tasks for swagger yaml generation as…
Buddha
  • 185
  • 1
  • 15
0
votes
1 answer

Mapped the Yaml configuration to Micronaut swagger open API security configuration

I have the below YAML configuration for OAuth OAuth: authorizationUrl: https://localhost:5001/connect/authorize tokenUrl: https://localhost:5001/connect/token scopes: - name: openid description: open id scope - name: profile …
San Jaisy
  • 15,327
  • 34
  • 171
  • 290
0
votes
1 answer

Swagger UI - OAuth 2.0 configuration with Micronaut 2.5.1 client ID and client secret in seperate configuration

Trying to do the swagger OAuth configuration in the latest version of Micronaut, as per the micronuat…
San Jaisy
  • 15,327
  • 34
  • 171
  • 290
0
votes
1 answer

IntelliJ IDEA micronaut-openapi javac annotation processor searching in IntelliJ directory for openapi.properties

I'm using the Micronaut OpenAPI module and facing an issue that the default openapi.properties is not correctly processed in IntelliJ. Doing the compilation on the command line works. When analyzing the annotation module I found that it is looking…
k_o_
  • 5,143
  • 1
  • 34
  • 43
0
votes
0 answers

How to get micronaut generate OpenAPI schema properties for Value.Immutable classes?

I am using Value.Immutable classes as the rest api request/response. The generated OpenAPI doc does not show the properties of the immutable class. It looks like the OpenAPI generator does not understand these beans as there are no getters and…
M Perpe
  • 39
  • 1
  • 4
0
votes
0 answers

Does micronaut support loading Enum Fields as Bean Definitions?

In my micronaut application I have various Enum fields that contain an annotation (AnnotationA). When this annotation is placed on a Bean class (not an enum), I can use the following statement to retrieve all of the Bean definitions containing this…