-
-
Notifications
You must be signed in to change notification settings - Fork 191
Closed
Description
class PropsContract < Dry::Validation::Contract
json do
required(:contacts).value(:array, min_size?: 1).each do
hash do
required(:name).filled(:string)
required(:email).filled(:string)
required(:phone).filled(:string)
end
end
end
rule("contacts.email").validate(:email_format)
end
This errors out: Dry::Validation::InvalidKeysError: PropsContract.rule specifies keys that are not defined by the schema: ["contacts.email"]
Metadata
Metadata
Assignees
Labels
No labels