Replies: 2 comments 2 replies
-
How does |
Beta Was this translation helpful? Give feedback.
2 replies
-
Ok, I created a simple example in project A: @GET
@Path("/foo")
@Produces({ MediaType.APPLICATION_JSON })
@Operation(summary = "...")
public Response foo(
@Parameter(required = false)
@QueryParam("environment") @DefaultValue("DATABASE") final RegisterHistoryEnvironment environment) {
return Response.ok().build();
} This results in the following in "/api/foo" : {
"get" : {
"summary" : "...",
"parameters" : [ {
"name" : "environment",
"in" : "query",
"required" : false,
"schema" : {
"allOf" : [ {
"$ref" : "#/components/schemas/RegisterHistoryEnvironment"
}, {
"default" : "DATABASE"
}, {
"$ref" : "#/components/schemas/RegisterHistoryEnvironment"
}, {
"default" : "DATABASE"
} ]
}
} ],
"responses" : {
"200" : {
"description" : "OK"
}
}
}
} By the way, I'll be away on holidays for the next two weeks, so please be patient with answers after today :-) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have an enum which looks like this:
This is rendered with every value twice:
In the code, that's how it's defined:
And this is how it's generated:
With our old toolchain it was generated like this:
And that showed the correct drop-down values in SwaggerUI.
If I omit the default value, it's generated in a different way and then shows the correct drop-down values in SwaggerUI:
Am I doing something wrong or is SmallRye generated something it shouldn't?
Beta Was this translation helpful? Give feedback.
All reactions