Skip to content

Validation errors for nested structs  #39

@chrisjowen

Description

@chrisjowen

Hey, nice library. Im wondering if its possible to expose the errors for nested structs currently I am using the Vex.Struct module and defining a custom function for validating a nested structure i.e.

validates :nested, &NestedVexStruct.valid?/1

This works great and gives me the ability to run the nested validations but if it fails the error I get is only associated with this top level validator and not the actual causes in the sub validator. Any ideas around this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions