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
Thanks for the great library. I have the use case for schema level validation. My specific example is that I have a field and if it is true I want to require several other fields. I have multiple fields like this on the same level in the schema.
My plan was to add a key in the metadata of the object to store some objects that represent conditions (i.e. fieldA > 5 or fieldB == True) and a list of conditionally require fields (i.e. fields=[field1, field2]). I can then find if this key exists, create an allOf block in my JSON and populate that with if conditions constructed from the above objects.
Is this something others are interested in and/or would be considered for a merge? I know it is quite specific but perhaps could serve as a starting point.
Thanks,
Zach
The text was updated successfully, but these errors were encountered:
Hello,
Thanks for the great library. I have the use case for schema level validation. My specific example is that I have a field and if it is true I want to require several other fields. I have multiple fields like this on the same level in the schema.
My plan was to add a key in the metadata of the object to store some objects that represent conditions (i.e.
fieldA > 5
orfieldB == True
) and a list of conditionally require fields (i.e.fields=[field1, field2]
). I can then find if this key exists, create anallOf
block in my JSON and populate that with if conditions constructed from the above objects.Is this something others are interested in and/or would be considered for a merge? I know it is quite specific but perhaps could serve as a starting point.
Thanks,
Zach
The text was updated successfully, but these errors were encountered: