Is it possible to provide an x-faker definition for dynamic keys? #2286
Unanswered
keyboSlice
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a schema that looks like:
Where each key in the object is a date string e.g.
{ "2023-03-01": [ { "start": 10, "end": 12, "available": true } ], "2023-03-02": [ { "start": 10, "end": 12, "available": true } ] }Is it possible to provide an x-faker attribute that would determine how the random property names in the object get generated?
For example I'd like each key in the returned object to be a date string for a date in the future.
Beta Was this translation helpful? Give feedback.
All reactions