Empty base selection for grab
should not create an empty object schema for validation
#25
Labels
bug
Something isn't working
Per this comment, we should look into the case where an empty object is provided as the first arg to
grab
. Right now,grab
will generate an empty object schema that then gets thrown into a union schema, which will cause some weird results.In code, we have this:
and when the first arg to
grab
is an empty object, thatbaseSchema
field should be omitted from this union.The text was updated successfully, but these errors were encountered: