elements
elements copied to clipboard
feat: add object with deepObject style in query parameters
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 | ✅ |
- [x] Read
CONTRIBUTING.md
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...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site configuration.
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...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site configuration.