Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get static data #32

Closed
ArthurGoupil opened this issue Jun 6, 2023 · 2 comments
Closed

Get static data #32

ArthurGoupil opened this issue Jun 6, 2023 · 2 comments

Comments

@ArthurGoupil
Copy link

ArthurGoupil commented Jun 6, 2023

Hello !

Thanks for this beautiful lib!

I've started using it for our mocks generation but I'm facing an issue. We're using our mocks to run some visual regression tests, so with Faker it changes each times.

Is there a way to avoid this?
I guess I should propose a PR for an new option?

Thanks in advance,
Arthur

@ArthurGoupil ArthurGoupil changed the title Get static datas Get static data Jun 6, 2023
@zoubingwu
Copy link
Owner

for now, if your swagger have example data, this tool will use that instead of using faker, https://swagger.io/docs/specification/adding-examples/

@zoubingwu
Copy link
Owner

this is done in #43 and release in 0.17.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants