Skip to content

Commit 4e8dc78

Browse files
committed
encoding/jsonschema: add numeric format to CRD test
This is a smoke test to check that we've added support for numerical formats to the Kubernetes versions. So far we have not - we'll do that in a subsequent CL. Signed-off-by: Roger Peppe <[email protected]> Change-Id: I4a76fa70f91e31946668974105f250417ecb8b30 Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1214770 Reviewed-by: Daniel Martí <[email protected]> TryBot-Result: CUEcueckoo <[email protected]> Unity-Result: CUE porcuepine <[email protected]>
1 parent 8fb5fea commit 4e8dc78

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

encoding/jsonschema/testdata/txtar/crd_simple.txtar

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,16 @@ spec:
2828
spec:
2929
type: object
3030
x-kubernetes-preserve-unknown-fields: true
31+
intField:
32+
type: number
33+
format: uint32
3134

3235
-- out/decode/extract --
3336
_embeddedResource
3437
spec?: {
3538
...
3639
}
40+
intField?: number
3741

3842
_embeddedResource: {
3943
apiVersion!: string

0 commit comments

Comments
 (0)