Replies: 1 comment
-
Closed since it was my mistake that cause it not to work! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I start to adopt this library inside our company and one of the usage is to generate fixture for testing from JSON Schema
One of the field that I am struggling with is nullable field. Ex:
which would generate this schema:
which makes sense to me. The problem is that
json-schema-faker
does not seem to understandanyOf
but understandtype: ["string", "null"]
which I also see as a valid way to represent nullable string according to JSON Schema.Any suggestion to handle this case nicely from Typebox's end? This might be a problem with
json-schema-faker
or we just have to preprocess the fixture manuallyBeta Was this translation helpful? Give feedback.
All reactions