Skip to content
This repository has been archived by the owner on Nov 18, 2021. It is now read-only.

Optional fields in schema not allowed in closed struct while trimming. #236

Closed
hjain98 opened this issue Dec 18, 2019 · 1 comment
Closed
Labels

Comments

@hjain98
Copy link

hjain98 commented Dec 18, 2019

Schema:: {
    optional? : string
}
d: Schema 
d: {
    optional: "some"
}

On cue trim fails on this with:

d: field "optional" not allowed in closed struct:
    ./a.cue:7:15
@cueckoo
Copy link

cueckoo commented Jul 3, 2021

This issue has been migrated to cue-lang/cue#236.

For more details about CUE's migration to a new home, please see cue-lang/cue#1078.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants