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

[Client Generation] Fix required handling for formdata properties #4994

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

KirkMunroSagent
Copy link

@KirkMunroSagent KirkMunroSagent commented Oct 7, 2024

This is my first pull request for this project.

The goal here is simple: to update nswag such that it respects the required attribute on form-data parameters (currently it does not).

Please let me know if the proposed changes are in an inappropriate location in this project. After stepping through the code multiple times, this seems like the right place for the changes that I included, but if not, I'll update the PR according to the feedback.

The fix I'm ultimately hoping comes out of these changes, is for the nswag CLI to be able to generate a C# client for a REST API containing one or more endpoint that accept form-data input with required parameters. Currently they generate as optional parameters, so I'd like to get that corrected. If additional changes beyond these are required to make that happen, please let me know that as well.

Thank you!

@KirkMunroSagent KirkMunroSagent changed the title Fix required handling for formdata properties [Code Generation] Fix required handling for formdata properties Nov 21, 2024
@KirkMunroSagent KirkMunroSagent changed the title [Code Generation] Fix required handling for formdata properties [Client Generation] Fix required handling for formdata properties Nov 21, 2024
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.

1 participant