We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
Order of examples is sometimes not preserved:
import io.swagger.v3.oas.annotations.enums.ParameterIn; import io.swagger.v3.oas.annotations.media.ExampleObject; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RestController; @SpringBootApplication @RestController public class SpringdocExampleOrderApplication { public static void main(String[] args) { SpringApplication.run(SpringdocExampleOrderApplication.class, args); } @GetMapping @io.swagger.v3.oas.annotations.Parameter( in = ParameterIn.HEADER, name = "x-header", examples = { @ExampleObject(value = "AAA", name = "First"), @ExampleObject(value = "BBB", name = "Second") }) void nope() {} }
{ "openapi": "3.1.0", "info": { "title": "OpenAPI definition", "version": "v0" }, "servers": [ { "url": "http://localhost:8080", "description": "Generated server url" } ], "paths": { "/": { "get": { "tags": [ "springdoc-example-order-application" ], "operationId": "nope", "parameters": [ { "name": "x-header", "in": "header", "examples": { "Second": { "description": "Second", "value": "BBB" }, "First": { "description": "First", "value": "AAA" } } } ], "responses": { "200": { "description": "OK" } } } } }, "components": { } }
If 'First' -> '1', 'Second' -> '1' order is preserved Springdoc 2.8.8, Spring Boot 3.4.5
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Order of examples is sometimes not preserved:
If 'First' -> '1', 'Second' -> '1' order is preserved
Springdoc 2.8.8, Spring Boot 3.4.5
The text was updated successfully, but these errors were encountered: