Skip to content

Validation messages for nested embeds #2

@daveli

Description

@daveli

👋 First of all cheers for making this library!

I'm currently experiencing some issues with validating nested embeds and hope ya can provide some insights. I have the following data-structure:

%{
  foo: %{
    bar: %{ <= Polymorphic embed
       __type__: "x",
      title: "test",
      images: %{ <= embeds_one
        large: "https://foo.bar/x.png",
        small: "https://foo.bar/x.png",
      }
    }
  }
}

Where the field title is required and so are the fields large and small under images.
With the current implementation it will return the correct validation error for the title field (e.g. required field) but will not show any validation errors for fields under images. Any ideas on how to resolve this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions