How to set strfmt.Date format #2848
Unanswered
KabudoWiseMan
asked this question in
Q&A
Replies: 1 comment
-
We'd have to change our library for that work-around. If you send a pr I can merge it. We have this functionality for DateTime but for Date. https://github.com/go-openapi/strfmt/blob/master/time.go#L81 The proper solution is that the service you are calling should fix either their spec or their code. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello!
In a yml file a have the following definition:
So I generate go-client and get:
The thing is that the returning value is 2020-07-18T00:00:00Z, so I get an error parsing time "2020-07-18T00:00:00Z": extra text: "T00:00:00Z".
So my question is how can I change parsing time format?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions