These are chat archives for dry-rb/chat
dry-validation(if this channel is appropriate for this). I scoured the docs on the site, but can't seem to find an answer. I'd like to re-use a schema as a modular pieces within another schema, but without nesting. The documentation gives this as an example:
required(:address).schema(AddressSchema), but this mounts
addresskey. What I'm after is to mount one schema onto another so that their are merged, not nested (using the example in the documentation, I want
streetto sit directly on top of
UserSchema, not scoped to
address). Is this possible? I also tried using the custom
predicateapproach, but then I'm not able to define my own configuration/error messages on the custom predicate...