Skip to content

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
@KirkMunroSagent KirkMunroSagent mentioned this pull request 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