Mirror of https://github.com/cue-lang/cue cuelang.org
cue go
Something went wrong. Try again.
encoding/jsonschema: recognize date-time too master
The Kubernetes documentation is inconsistent about whether the correct spelling is `datetime` or `date-time`. After digging into the code a bit, it seems that both forms are accepted (and also weird variants like `--date--time`, but we'll ignore that possibility). See this comment for some background [1]. [1] https://github.com/kubernetes/kubernetes/issues/131082#issuecomment-2872063205 Signed-off-by: Roger Peppe <rogpeppe@gmail.com> Change-Id: Idcc5175536b1df3044e27d68c3c400713e711c0d Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1214780 TryBot-Result: CUEcueckoo <cueckoo@cuelang.org> Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
Author Roger Peppe Date (May 12, 2025, 11:10 AM UTC) Commit 398e8be6 398e8be6e8fcf0ebdf9c30d44550c5ca1777ae4e Parent 59e82a77 59e82a77cd0793af051baf4f49a78558a6bb92ef