Skip to content

Conversation

kammerjaeger
Copy link
Contributor

@kammerjaeger kammerjaeger commented Sep 19, 2025

Fix: Explode serialization is wrong when style is "form"

This fixes the same problem as #544 but for OpenApiEncoding.
The spec describes different behavior depending on if it is set or not (see: https://spec.openapis.org/oas/v3.1.0.html#fixed-fields-12) and also different defaults depending on the style value.

Cherry pick for #2508 to the main branch

I don't have dotnet 10 installed yet so I hope this works without it.

@kammerjaeger kammerjaeger requested a review from a team as a code owner September 19, 2025 20:36
@kammerjaeger kammerjaeger changed the title Fix OpenApiEncoding explode property serialization Fix OpenApiEncoding explode property serialization (to main) Sep 19, 2025
Copy link
Member

@baywet baywet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for porting the fix!

@baywet baywet enabled auto-merge (squash) September 19, 2025 23:33
@baywet baywet merged commit ae03eab into microsoft:main Sep 19, 2025
9 checks passed
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.

2 participants