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

BP-603: Use custom nswag templates to fix dateonly parsing and formatting in generated API. #1

Merged
merged 3 commits into from
Dec 6, 2023

Conversation

msljivic
Copy link
Contributor

@msljivic msljivic commented Dec 6, 2023

Use custom nswag templates to fix dateonly parsing and formatting in generated api.

  • DateOnly parameter in URL/querystring is serialized with time.
    NSwag/issues/3958
    Template: Client.RequestUrl.liquid

  • Date only format is interpreted as UTC when passed to the Date constructor
    NJsonSchema/issues/1480
    Template: ConvertToClass.liquid

@msljivic msljivic changed the title BP-603: Use custom nswag templates to handle dateonly parsing and formatting in generated api. BP-603: Use custom nswag templates to fix dateonly parsing and formatting in generated api. Dec 6, 2023
@msljivic msljivic changed the title BP-603: Use custom nswag templates to fix dateonly parsing and formatting in generated api. BP-603: Use custom nswag templates to fix dateonly parsing and formatting in generated API. Dec 6, 2023
@msljivic msljivic merged commit 75d9cab into master Dec 6, 2023
2 of 6 checks passed
@msljivic msljivic deleted the features/BP-603-nswag-templates branch December 6, 2023 12:55
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

Successfully merging this pull request may close these issues.

2 participants