Skip to content

OAS3: Style/Explode parameter serialization#1140

Merged
shockey merged 12 commits intoswagger-api:masterfrom
shockey:ft/oas3-style-explode
Sep 29, 2017
Merged

OAS3: Style/Explode parameter serialization#1140
shockey merged 12 commits intoswagger-api:masterfrom
shockey:ft/oas3-style-explode

Conversation

@shockey
Copy link
Copy Markdown
Contributor

@shockey shockey commented Sep 28, 2017

This PR:

Limitations:

  • deepObject does not handle nested objects. The specification and swagger.io documentation does not provide an example for serializing deep objects. Flat objects will be serialized into the deepObject style just fine.

@shockey shockey requested a review from webron September 29, 2017 01:53
@shockey
Copy link
Copy Markdown
Contributor Author

shockey commented Sep 29, 2017

@webron, mostly looking for you to either sign off on this PR with the limitation mentioned above, or give guidance on how to go about implementing nested object support 😄 thanks!

@webron
Copy link
Copy Markdown
Contributor

webron commented Sep 29, 2017

Why do you hate me, @shockey.

@webron
Copy link
Copy Markdown
Contributor

webron commented Sep 29, 2017

Okay. If you followed the documentation in https://swagger.io/docs/specification/serialization, and made sure the default values mentioned there are taken into account when no value is explicitly provided, it should be fine.

As for deepObject and nested objects - that was explicitly left out of the spec, and it's ok to just Not Support It™.

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