dry-bot on master
[devtools] config sync (compare)
dry-bot on master
[devtools] config sync (compare)
dry-bot on master
[devtools] config sync (compare)
dry-bot on master
[devtools] config sync (compare)
dry-bot on master
[devtools] config sync (compare)
dry-bot on master
[devtools] config sync (compare)
dry-bot on master
[devtools] config sync (compare)
dry-bot on master
[devtools] config sync (compare)
dry-bot on master
[devtools] config sync (compare)
dry-bot on master
[devtools] config sync (compare)
dry-bot on master
[devtools] config sync (compare)
dry-bot on master
[devtools] config sync (compare)
flash-gordon on v1.2.2
flash-gordon on master
Update CHANGELOG (compare)
flash-gordon on reject-string-keys
flash-gordon on master
Reject non-symbol keys in schem… Test invalid exception message Merge pull request #378 from dr… (compare)
module MyModel::Types
include Types.module # this is in /app/types/app.rb
...
AnswerOutcome = Types::Strict::String.enum('expired', 'verified', 'unverifiable', 'flag')
end
Dry::Types.register_class(Question)
module Types
include Dry::Types.module
end
Types::AnswerOutcome
, where it should say MyModel::Types::AnswerOutcome
{total: 123, items: [{amount: 22}, {amount: 193}]}
What complicates this is that I was thinking of defining the validation on items
, but that means that if there are validation issues with some of the other content in the items hashes that the errors returned may sometimes be an array of error strings, other times an array of error hashes
attr_writer