Skip to content
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

DateTime & TimeSpan handling incorrect #182

Open
marcobudde opened this issue Oct 9, 2018 · 0 comments
Open

DateTime & TimeSpan handling incorrect #182

marcobudde opened this issue Oct 9, 2018 · 0 comments

Comments

@marcobudde
Copy link

My interface uses System.DateTime and System.TimeSpan. Both types are handled incorrectly in the Swagger description:

System.DateTime is exported as type = "string" and format = "date-time". But the format used by WCF is not compliant to RFC3339. So I think "format" should be removed.

System.TimeSpan is exported as complex type "#/definitions/System.TimeSpan". WCF used a format like this "P1D". So I think this type should also be exported simply an "type = string".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant