Dry::Validation.load_extensions(:hints)contract=Dry::Validation::Contract.builddoschemadorequired(:name).filled(:string,min_size?:2..4)endendcontract.call(name:"fo").hints# {:name=>["size must be within 2 - 4"]}
contract.call(name:"").messages# {:name=>["must be filled", "size must be within 2 - 4"]}