-
-
Notifications
You must be signed in to change notification settings - Fork 42
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
Percent symbol '%' can be inserted as a property name #453
Comments
@XeClutch Thanks for taking the time to report this. I'm surprised but the OpenAPI spec example provided is valid. I'm not sure how to handle such a property name but I'll see what I can do |
@all-contributors please add @XeClutch for bugs |
I've put up a pull request to add @XeClutch! 🎉 |
This is a tough one as I rely completely on NSwag for generating the contracts/models and this needs to be addressed in NSwag instead of Refitter. |
Scratch that... we can fix this from Refitter as we use a custom property name generator that addresses this kind of problem. @XeClutch I have a fix on the way where the property |
Describe the bug
When using the Refitter Source Generator, if a percent symbol is used as a property name in the OpenAPI spec, that same percent symbol will be inserted into the name of the property in the generated C#, violating C# property naming rules.
Screenshots
OpenAPI Specifications
https://api.percipio.com/reporting/swagger.json
The text was updated successfully, but these errors were encountered: