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

Set correct parameter position #4499

Merged
merged 5 commits into from
Sep 27, 2023

Conversation

trejjam
Copy link
Sponsor Contributor

@trejjam trejjam commented Aug 29, 2023

If you implement a custom IOperationProcessor which adds parameter(s), and it runs before the OperationParameterProcessor the x-position property is not generated correctly

@RicoSuter RicoSuter merged commit 40875b4 into RicoSuter:master Sep 27, 2023
1 check passed
lahma pushed a commit to lahma/NSwag that referenced this pull request Jan 20, 2024
* Set correct parameter position

* Improve if readability

* Use Array.Empty instead of allocating

* Set position to to-be-added element

* do not count body parameters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants