According to JSONSchema spec enum
may be a list of any allowed type, so it may even be a list of objects/arrays. Currently enum check is performed just with value.include?(instance)
, so this will never validate successfully for a list of objects. Does the spec describe any way of validating this or may be there are any practical community discussions and approaches around it? I think it should be implemented some (may be custom if there's no approach to borrow) way.