Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Comments

Close side panel

Fix parameter serialization - Style doesn't respect the default value#989

Merged
MaggieKimani1 merged 5 commits intovnextmicrosoft/OpenAPI.NET:vnextfrom
mk/fix-parameter-serializationmicrosoft/OpenAPI.NET:mk/fix-parameter-serializationCopy head branch name to clipboard
Sep 2, 2022
Merged

Fix parameter serialization - Style doesn't respect the default value#989
MaggieKimani1 merged 5 commits intovnextmicrosoft/OpenAPI.NET:vnextfrom
mk/fix-parameter-serializationmicrosoft/OpenAPI.NET:mk/fix-parameter-serializationCopy head branch name to clipboard

Conversation

@MaggieKimani1
Copy link
Contributor

Fixes #858

  • Creates a backing _style property to track what the user explicitly sets.
  • If _style is null, default the value of Style based on the value of the In property.
  • If the value of In is null, default to Simple as if In was set to Path

Reference: #858 (comment)

@MaggieKimani1 MaggieKimani1 changed the title Fix parameter serialization Fix parameter serialization - Style doesn't respect the default value Aug 30, 2022
@MaggieKimani1 MaggieKimani1 merged commit 3d15d2e into vnext Sep 2, 2022
@MaggieKimani1 MaggieKimani1 deleted the mk/fix-parameter-serialization branch September 2, 2022 12:47
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.

Parameters Serialization - Style doesn't respect the default value

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.