Invalid Date format
- Dominant language
- Java
- Stars
- 6.1k
- Forks
- 1.5k
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 195
Description
**Hi, i'm trying to create a schema in swaggerAPI /schema and i'm getting this error:**
{
"code": 400,
"error": "Invalid schema: "schemaName" Reason: invalid datetime format: SIMPLE_DATE_FORMAT|yyyy-MM-dd HH:mm:ss"
}
**that's my input:**
"dateTimeFieldSpecs": [
{
"name": "Data_da_Medição",
"dataType":"STRING", "format":"SIMPLE_DATE_FORMAT|yyyy-MM-dd HH:mm:ss",
"granularity":"1:SECONDS"
}
**and this is my data:**
{"Data da Medição":"2022-01-08 00:43:00"}
Contributor guide
Research direction
Start at the Swagger API /schema endpoint and the dateTimeFieldSpecs format shown in the report; reproduce the 400 response with the supplied schema and data. Trace validation of SIMPLE_DATE_FORMAT and establish whether the reported format is accepted; done means the behavior is fixed or the expected format is clearly documented and covered by a regression test.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, openapi
- Domain
- api, databases
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100