Mirror of https://github.com/cue-lang/cue cuelang.org
cue go
Something went wrong. Try again.
encoding/jsonschema: recognize builtin validators without call master
Currently the encoding/jsonschema generate logic does not have any way of recognizing builtin validators unless they're in a call expression. However, CUE does not require them to be called (`list.UniqueItems` is as valid as `list.UniqueItems()`) so fix that behavior. Signed-off-by: Roger Peppe <rogpeppe@gmail.com> Change-Id: I5b75ec68a36bda4d6538153c67417e0ddbc610c5 Reviewed-on: https://cue.gerrithub.io/c/cue-lang/cue/+/1232562 TryBot-Result: CUEcueckoo <cueckoo@cuelang.org> Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com> Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
Author Roger Peppe Date (Mar 3, 2026, 11:28 AM UTC) Commit 8da91149 8da911493dbb254b9940cc09d91b4e35f17ce310 Parent b63d89f9 b63d89f914c0d0d6acb863604f14ea317ef66450