You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
doc/ref/spec.md: revert to the old semantics of [k]: v
As it turns out, the old semantics is quite frequently used.
Even though it is not hard to simulate the old semantics with
the proposed new one, it is still inconvenenient.
We do need the more JSON Schema-like semantics, though, as it
is hard to simulate with the old semantics.
The idea is now to allow `[...K]: V` for pattern constraints
to be applied to "additional" fields. So now any constraint
that applies to additional fields uses `...`.
Another advantage is thats, as we have not yet made the
transition to the new semantics, this eliminates a possibly
painful transition.
Change-Id: Iebd2af03e4929d058e4f3134d77d2071ef3ee82e
Reviewed-on: https://cue-review.googlesource.com/c/cue/+/7942
Reviewed-by: Paul Jolly <[email protected]>
Reviewed-by: CUE cueckoo <[email protected]>
0 commit comments