swagger-api / swagger-api/swagger-codegen
[SWIFT 3] parseError("Could not decode date")
Nobody has claimed this yet.
- Dominant language
- Mustache
- Stars
- 17.8k
- Forks
- 6k
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
I contact you because I have an other problem with Swagger 2.3.0. When Swagger try to parse a field Date with nil value, we have this error.
But the field isn't required. so it can be nil ?
Thanks.
Julien
Swagger-codegen version
2.3.0
Swagger declaration file content or url
lastCo:
type: string
format: date-time
Command line used for generation
java -jar modules/swagger-codegen-cli/target/swagger-codegen-cli.jar generate -i file:///myfile.yaml -l swift3 -o /myoutput --additional-properties responseAs=RxSwift
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 report with the supplied Swagger declaration and the swagger-codegen CLI command using the swift3 generator. Inspect the generated Swift handling of the optional date-time field and verify that a nil value decodes without the reported error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, swift
- Domain
- api
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100