-
-
Notifications
You must be signed in to change notification settings - Fork 33
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
Custom Tag Name #27
Comments
hohmannr
pushed a commit
to hohmannr/faker
that referenced
this issue
Jun 14, 2023
I have added a PR for this, check: #28 |
hohmannr
added a commit
to hohmannr/faker
that referenced
this issue
Jun 14, 2023
Signed-off-by: hohmannr <[email protected]>
hohmannr
added a commit
to hohmannr/faker
that referenced
this issue
Jun 14, 2023
Signed-off-by: hohmannr <[email protected]>
Left a comment in the PR |
bxcodec
pushed a commit
that referenced
this issue
Jul 24, 2023
* feat: adds a changeable tag name (#27) Signed-off-by: hohmannr <[email protected]> * chore: refactors ErrTagNameInvalid to ErrFieldTagIdentifierInvalid --------- Signed-off-by: hohmannr <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am running currently into the following problem: I am trying to generate different fake data for different API endpoints, that revolve around the same data object, where the data object looks slightly different, depending from which endpoint it was created.
Example
source
is a custom tag, that returns a hard-coded string like"Gateway"
or"InternalAPI"
. Since this string varies, I cannot easily generate custom fake data for all the sources. This would be solved if one could set the tag name when generating the data, ergo:The ability to set a custom tag name via the
options.OptionFunc
would be ideal to solve this use-case.The text was updated successfully, but these errors were encountered: