Jacob
Jacob
Use Dry::Schema.Params ``` NestedSchema = Dry::Schema.define do required(:bar).filled(:string) end BrokenSchema = Dry::Schema.Params do required(:foo).maybe(:array).each(NestedSchema) end BrokenSchema.call({ foo: [{ bar: 123 }] }).errors.to_h # => {:foo=>{0=>{:bar=>["must be a string"]}}} BrokenSchema.call({ foo:...
Correct me but in documentation jsonb column for for your `translates :title` should be added as `add_column(:documents, :title, :jsonb, default: {})` not the `add_column :documents, :translations, :jsonb, default: {}`
Same... Validation errors do not appear (They are in changeset but not as html errors.) for standard scalar fields (e.g., string, integer), whereas they display correctly for nested embedded schema...