timriley on rich-component-dirs-config
Add extra attributes to compone… Add unit tests for Component.lo… (compare)
timriley on rich-component-dirs-config
Add unit tests for ComponentDir (compare)
timriley on rich-component-dirs-config
Tidy AutoRegistrar Move regist… (compare)
timriley on rich-component-dirs-config
Tidy AutoRegistrar Move regist… (compare)
timriley on rich-component-dirs-config
Add spec (and adjust approach) … (compare)
timriley on rich-component-dirs-config
Initialize components directly … Remove unneeded requiring of co… (compare)
timriley on rich-component-dirs-config
Initialize components directly … (compare)
timriley on rich-component-dirs-config
Remove stale comment Scan file for magic comment opt… Do not load components with aut… (compare)
timriley on rich-component-dirs-config
Use dry-configurable master (compare)
timriley on cherry-pick-concurrent-requires
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