-
Notifications
You must be signed in to change notification settings - Fork 9.1k
date/date-time model properties rendered as string in model/schema (v2.1.0-M2) #1183
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
hi @zyro23, It seems there was a bug, but it's working in with our latest source, so you should see the expected behavior in the next release or so. Note: latest source being ... |
hmm... no luck :( this is supposed to be fixed/working with 6f1b9b6 right? i used the dist/swagger-ui.js from that revision (which is still the current develop_2.0 HEAD as of writing this..). looking at the code, maybe the issue is that https://github.com/swagger-api/swagger-js/blob/master/lib/types/model.js#L347 checks for thanks, zyro |
@zyro23, perhaps I wasn't clear enough... PS: I checked again, and the fix is there :) |
fix confirmed working. just made first contact with node/npm/gulp ;) went smooth with the provided pr comment. thx guys! |
Thanks for the update, closing for now. Please reopen if needed. |
This seems to be happening in the current version - is this tested for the in the current tests? |
+1 |
hi,
after updating 2.1.8-M1 to 2.1.0-M2, date/date-time properties are rendered as type "string" in the model schema view with a default value of "string".
previously, with 2.1.8-M1, they were rendered as type "date-time" with a default value of the current timestamp in iso format.
my model property definition did not change (
{"type":"string","format":"date-time"}
).was the behavior changed intentionally? presetting the value with a valid iso date(-time) string was the better approach imho. or am i maybe missing something else that has changed and i need to adapt to?
thanks, zyro
The text was updated successfully, but these errors were encountered: