Skip to content

Validator does not work if entry has Struct fields #13

@havetisyan

Description

@havetisyan

I have the following definition:

type Entity Struct {
EntityName name; //name of the entity object
Struct value; //value of the entity
}

    Entity e = new Entity().setName("test.entity").setValue(new Struct().with("key", "test"));
    result = validator.validate(e, "Entity");

I get back failure: Not a valid Struct, com.yahoo.rdl.Struct in data.value expected

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