swagger-api / swagger-api/swagger-codegen
Date format in the description
Nobody has claimed this yet.
- Dominant language
- Mustache
- Stars
- 17.8k
- Forks
- 6k
- PR merge metrics
- No merged PRs in 30d
Description
Hello.
I need to change the date format in the UI description from "yyyy-MM-dd" to "dd/MM/yyyy".
Could anyone help me?
UI Example:
"finalDate": "01/02/2025",
Not work:
@DateTimeFormat(pattern = "dd/MM/yyyy")
Java property:
@Parameter private LocalDate finalDate;
Swagger v3:
<dependency> <groupId>io.swagger.core.v3</groupId> <artifactId>swagger-annotations</artifactId> <version>2.2.21</version> </dependency>
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the generated UI description using the shown Java LocalDate finalDate property and Swagger v3 dependency, then trace where its date format is selected. Done means the generated description shows dd/MM/yyyy instead of yyyy-MM-dd for this property; add or update regression coverage if the project provides it.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, openapi
- Domain
- api, documentation
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100