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
When specifying a schema with a "maybe" array that has a predefined schema for its each block, valid keys are reported as invalid (i.e. not allowed) keys.
I would expect using a predefined schema on a "maybe" array would allow valid keys. Please note that when using filled(:array), things do work as expected.
I may be misunderstanding either how maybe is supposed to work or how reusing schemas is supposed to work!
Your environment
Affects my production application: NO
Ruby version: 2.6.5
OS: 10.14.6
The text was updated successfully, but these errors were encountered:
When specifying a schema with a "maybe" array that has a predefined schema for its
each
block, valid keys are reported as invalid (i.e. not allowed) keys.To Reproduce
Expected behavior
I would expect using a predefined schema on a "maybe" array would allow valid keys. Please note that when using
filled(:array)
, things do work as expected.I may be misunderstanding either how
maybe
is supposed to work or how reusing schemas is supposed to work!Your environment
The text was updated successfully, but these errors were encountered: