Skip to content

Schema validation inconsistent in case of nesting #32

@Dlougach

Description

@Dlougach

Minimal example:

X = {
    s : string;
};

Y = {
    x : X;
};

y1 = Y {
    x = {
    };
};

y2 = Y {
    x = X {
    };
};

When evaluating y1, I get the following:

{
  "y1": {
    "x": {}
  }
}

When evaluating y2: Unknown key: 's' in composite tuple {s = <unbound>} {}

The expected behavior is that for non-required fields one can instantiate tuples without filling in those fields. Also by this logic x : required X should be different from x : X.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions