orval
orval copied to clipboard
support faker for API schemas
What happens?
currently msw code is generating only faker code for response which is fine for mocking away API spec
we're looking for an option to generate faker code for each schema mentioned within API spec and use it in our unit/integration tests Some schemas in API spec describe real data entities and we even have an option to "inject" extra schemas that represent internal data types to generate extra faker code
In any case testing would be easier if users would be working with shoppingCartDtoMock
instead of getShoppingCartControllerGetByIdResponseMock
something similar is available within kubb but I would like to avoid to add another tool if possible
Do you happen to have some hidden configuration option or if not would you be willing to accept change to generate such code?
if yes, how do you see it?
as part of mock
configuration or as brand new client?
What were you expecting to happen?
I would like to see folder that holds file per schema with faker code due to sheer amount of possible schemas I don't think it would be possible to put all in one file or split it somehow else