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
Right now I am trying to use this tool during my work and I have a problem with using oneOf to support passing null json values. For example, when I use the following schema:
Hello! Thanks a lot for your work.
Right now I am trying to use this tool during my work and I have a problem with using oneOf to support passing null json values. For example, when I use the following schema:
I've got the following output:
which is very inconvenient to use, since
json.Unmarshal
does not know, which type to use fornested
field.When I use the following schema:
I have the result I want, which is
however, I want the
{"nested": null}
json object to be valid both in terms of schema and the parser, not just the parser.I understand that full support of
oneOf
requires a lot of work, however I think that supporting this special case could be quite easy.The text was updated successfully, but these errors were encountered: