zoubingwu / msw-auto-mock

A cli tool to generate random mock data from OpenAPI definition for msw.
246 stars 54 forks source link

Suggestion: Provide status codes to generate responses for #20

Closed RyanMan56 closed 1 year ago

RyanMan56 commented 1 year ago

I ran into an edge-case where I need to only generate responses for a given collection of status codes (e.g. 200,201). It would be nice if there was a flag that allowed us to pass in a csv of status codes and only generates responses that fulfill those conditions

RyanMan56 commented 1 year ago

I have created a PR for this: https://github.com/zoubingwu/msw-auto-mock/pull/21

zoubingwu commented 1 year ago

Thanks, this is released in v0.12.0