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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

@fake directive doesn't handle datatype values like boolean or array #145

Open
johannchopin opened this issue Apr 1, 2021 · 0 comments
Open

Comments

@johannchopin
Copy link

johannchopin commented Apr 1, 2021

Hey team 馃憢 Thanks a lot for your work on this one 馃憤

So I can fake an uuid value by using:

@fake(type: uuid)

But if I try to fake another datatype from fakerjs like boolean or array it doesn't work:

@fake(type: boolean)

Expected type fake__Types, found boolean. Did you mean the enum value dbColumn?

Sure I can use the @examples workaround but it would be simpler to have all the fakerjs method implemented:

@examples(values: [true, false])
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

1 participant