-
Originally opened by @mpvl in cuelang/cue#388 The new definition syntax moves definitions to a different namespace from regular fields. This property allows us to map JSON Schema fields and definitions within the same struct, resulting in clean mappings. However, the new syntax now requires that definition names be valid identifiers. This means that a JSON Schema definition named
This allows referring to this definition as A small language change, allowing
which allows referring to this as Pros:
Cons:
We are considering to eventually allow Thoughts welcome! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
Original reply by @philipdexter in cuelang/cue#388 (comment) My initial reaction was that |
Beta Was this translation helpful? Give feedback.
-
Original reply by @mpvl in cuelang/cue#388 (comment) BTW, as we don't have the |
Beta Was this translation helpful? Give feedback.
-
Original reply by @mpvl in cuelang/cue#388 (comment) This is now in. |
Beta Was this translation helpful? Give feedback.
Original reply by @mpvl in cuelang/cue#388 (comment)
This is now in.