DateTime formatted as round-trip#170
Conversation
43c7664 to
012a47f
Compare
|
Comments fixed but look like my changes have not fixed the URL creation |
|
How do you know that it does not fix the url creation? I think that we can add one more endpoint here - https://github.com/fsprojects/SwaggerProvider/blob/master/tests/Swashbuckle.WebApi.Server/Controllers/ReturnControllers.fs#L37 that received date as url parameter and deserialize of from url and then add test somewhere here https://github.com/fsprojects/SwaggerProvider/blob/master/tests/SwaggerProvider.ProviderTests/v3/Swashbuckle.ReturnControllers.Tests.fs#L95 to call this endpoint. with the test your change will be protected from future changes |
I look at decompile |
012a47f to
825d3b2
Compare
825d3b2 to
e2ced3e
Compare
|
Thank you @xperiandri |
|
Cool! Thank you very much! |
@sergey-tihon could you have a look?
I guess I have not fixed all the stuff.
Here is a decompile of the code generated for my Swagger document:
Here
ToString()must be called asToString("O")Regex.Replace("/availableSlotsFrom/{date}/{daysSinceSpecified}", "{date}", !Operators.IsNull(value) ? value.ToString() : null)