openapi-ts icon indicating copy to clipboard operation
openapi-ts copied to clipboard

MSW plugin

Open mrlubos opened this issue 1 year ago • 4 comments

Please vote on this issue if you're interested in MSW plugin.

This issue will serve as a to-do list during development. To help us release this feature as quickly as possible, feel free to share the minimum requirements for your use case.

mrlubos avatar Dec 20 '24 02:12 mrlubos

@mrlubos Any updates on this? Getting mock data from OpenAPI spec looks like a really useful feature :) Or is there other recommended approaches that's more preferable?

oscar-b avatar May 02 '25 16:05 oscar-b

@mrlubos This would be very helpful. Is there a way to help advance #1614?

eeberhard avatar Jul 21 '25 13:07 eeberhard

Soon 🏃

mrlubos avatar Jul 23 '25 12:07 mrlubos

It would be even more awesome to be able to provide custom mock functions for some schemas (e. g. giving picsum urls for some image URL fields or generating sane pairs for objects like {min: number; max: number} where min < max, etc.). Apparently most solutions I've tried so far don't allow this (zod-mock and valimock, zocker allows it, but it's kinda awkward and uncomfortable to use for mocking). I haven't yet tried anything openapi-specific, but surprisingly i've failed to find any reasonable tooling for that.

Would also be very happy to help #1614 in any way if needed

vbifonixor avatar Oct 14 '25 17:10 vbifonixor