-
-
Notifications
You must be signed in to change notification settings - Fork 537
Description
Describe the bug
- If you are reporting a bug, please help to speed up problem diagnosis by providing as
much information as possible: - A clear and concise description of what the bug is: the title of an issue is not enough
@Schema(description = "transaction subject", requiredMode = REQUIRED, example = "Hello", examples = { "Hello", "World" })
public String subject;
The examples field is not working in swagger 3.1
To Reproduce
Steps to reproduce the behavior:
-
What version of spring-boot you are using? 3.1.2
-
What modules and versions of springdoc-openapi are you using? springdoc-openapi-starter-webmvc-ui 2.2.0
-
What is the actual and the expected result using OpenAPI Description (yml or json)?
https://github.com/xiaoxiangmoe/swagger-core-refs-description-is-ignored/blob/bug/oas-v31/src/main/resources/static/current-api-docs.json
https://github.com/xiaoxiangmoe/swagger-core-refs-description-is-ignored/blob/bug/oas-v31/src/main/resources/static/expected-api-docs.json -
Provide with a sample code (HelloController) or Test that reproduces the problem
https://github.com/xiaoxiangmoe/swagger-core-refs-description-is-ignored/tree/bug/oas-v31
Screenshots
Here need examples:
Additional context
none