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 headers uri escaped #3208

Open
prrrtpieptoet opened this issue Dec 8, 2020 · 2 comments
Open

DateTime headers uri escaped #3208

prrrtpieptoet opened this issue Dec 8, 2020 · 2 comments

Comments

@prrrtpieptoet
Copy link

Recently formatting of DateTime headers was fixed. ConvertToString used to be applied and the only way to apply a custom format was to override ConvertToString in a custom partial client, next to the generated client.

In addition to applying the format specified by configuration setting parameterDateTimeFormat (which is a great fix), the resulting string is now uri escaped.

My question: why is the string uri escaped? I cannot find any rfc specifying header values should be uri escaped. The api I communicate with doesn't expect that either, resulting in all requests from the client generated with NSwagStudio being rejected by the api.

@ScottKaye
Copy link
Contributor

This is my fault - #3174. I have submitted another PR #3220 to fix this. Sorry about this!

In the meantime, you can use the TemplateDirectory to specify your own overridden template with the fixed value.

@prrrtpieptoet
Copy link
Author

No worries Scott, many thanks for the reply and the fix!

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

2 participants