Skip to content

Validator does not validate correctly if object has multiple Array fields #12

@havetisyan

Description

@havetisyan

If I have the following rdl:

type DomainTemplate Struct {
Array templateNames;
Array params (optional);
}

When validating this object against its schema, it only validates the templateNames array and just ignores params array. Quick look at the code shows that it returns the value of the first array validation rather than only returning if there is a failure and continuing with the other fields.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions