storybook-addon-mock icon indicating copy to clipboard operation
storybook-addon-mock copied to clipboard

feat: allow string responses

Open sr258 opened this issue 1 year ago • 3 comments

I've added the support for returning a string value in a response instead of only allowing JSON. Adding the change to the Storybook docs in packages/mock-addon-docs requires some bigger changes in the test files, so I haven't done that yet because I wanted to wait for your feedback on whether you want to accept the PR and if so, how it should be added to the docs.

Closes #200 .

sr258 avatar Nov 23 '23 16:11 sr258

Deploy Preview for storybook-addon-mock ready!

Name Link
Latest commit e8307abbaed536f3093f287d19ff5b576da3ffaa
Latest deploy log https://app.netlify.com/sites/storybook-addon-mock/deploys/655f82af6bf56c0008a707f0
Deploy Preview https://deploy-preview-201--storybook-addon-mock.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] avatar Nov 23 '23 16:11 netlify[bot]

I would love this feature. It is quite a severe limitation to only be able to return objects and arrays. Hope the PR gets merged

Mattsi-Jansky avatar Jun 25 '24 16:06 Mattsi-Jansky