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
additional schema transformation function, which takes in an value and a schema and returns a new Schema, which is a sub-schema of the original, having all the fields that we not present in the value.
(s/defschemaOrder
{:id s/Str
:type (s/enum:take-away:normal)
:address {:street s/Str
:zip s/Str}})
(st/sub-schema
{:id"123",
:address {:street"Aleksis Kiven katu 24 B 37"}})
; => {:type (s/enum :take-away :normal), :address {:zip s/Str})
(st/sub-schema
{:id"123",
:type:take-away:address {:street"Aleksis Kiven katu 24 B 37":zip"33200"}})
; => {}
Would be utterly cool with data-driven forms.
The text was updated successfully, but these errors were encountered:
additional schema transformation function, which takes in an value and a schema and returns a new Schema, which is a sub-schema of the original, having all the fields that we not present in the value.
Would be utterly cool with data-driven forms.
The text was updated successfully, but these errors were encountered: