-
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: 4 comments 5 replies
-
My initial reaction was that |
Beta Was this translation helpful? Give feedback.
-
BTW, as we don't have the |
Beta Was this translation helpful? Give feedback.
-
This is now in. |
Beta Was this translation helpful? Give feedback.
-
This discussion has been migrated to cue-lang/cue#388. For more details about CUE's migration to a new home, please see cue-lang/cue#1078. |
Beta Was this translation helpful? Give feedback.
This is now in.