stoplightio / elements

Build beautiful, interactive API Docs with embeddable React or Web Components, powered by OpenAPI and Markdown.
https://stoplight.io/open-source/elements/
Apache License 2.0
1.81k stars 205 forks source link

feat: add object with deepObject style in query parameters #2631

Closed maraino closed 2 weeks ago

maraino commented 3 months ago

Support for objects with deepObject style in TryIt

This PR supports using objects with the deepObject style in the TryIt component.

A parameter id with the value {"role": "admin", "firstName": "Alex"} will create the query parameters id[role]=admin&id[firstName]=Alex.

This PR completes the table in PR #2231 with:

style explode URI template Primitive value id=5 Array id=[3, 4, 5] Object id={"role": "admin", "firstName": "Alex"} Covered by this PR
deepObject true n/a n/a n/a n/a /users?id[role]=admin&id[firstName]=Alex
netlify[bot] commented 3 months ago

Deploy Preview for stoplight-elements ready!

Name Link
Latest commit a2f5768bbbcc4f5dd70ce407163e732a8abc7da9
Latest deploy log https://app.netlify.com/sites/stoplight-elements/deploys/672a030a371bf90008970342
Deploy Preview https://deploy-preview-2631--stoplight-elements.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

netlify[bot] commented 3 months ago

Deploy Preview for stoplight-elements-demo ready!

Name Link
Latest commit a2f5768bbbcc4f5dd70ce407163e732a8abc7da9
Latest deploy log https://app.netlify.com/sites/stoplight-elements-demo/deploys/672a030af0f1670008e1febe
Deploy Preview https://deploy-preview-2631--stoplight-elements-demo.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.