You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 8, 2022. It is now read-only.
I have a struct with *int and I'm trying to use faker:"oneof: 1, 2" but I always get unsupported Tag: oneof: 1, 2 when trying to generate the fakes data.
The text was updated successfully, but these errors were encountered:
I'm using v3.6.0 and getting the same issue when trying to use oneof for a boolean as in faker:"oneof: true, false" which returns this error: Tag unsupported: oneof: true, false
@eduardo-miorI was able to resolve this by importing "github.com/bxcodec/faker/v3". I thought I was using v3.6.0, but it turns out that "github.com/bxcodec/faker" was reverting to v2. I had to remove all references to "github.com/bxcodec/faker" and do go mod tidy to get everything updated.
Spoke too soon... tests pass still, but faker is still throwing the error even after updating to v3.6.0, which I'm definitely using now. Sorry for the confusion.
I have a struct with
*int
and I'm trying to usefaker:"oneof: 1, 2"
but I always get unsupported Tag: oneof: 1, 2 when trying to generate the fakes data.The text was updated successfully, but these errors were encountered: