diff --git a/encoding/jsonschema/testdata/constarray.txtar b/encoding/jsonschema/testdata/constarray.txtar new file mode 100644 index 00000000000..31538a9ca88 --- /dev/null +++ b/encoding/jsonschema/testdata/constarray.txtar @@ -0,0 +1,10 @@ +-- type.json -- +{ + "type": "array", + "const": [ + 1 + ] +} + +-- out/decode/cue -- +[1] diff --git a/encoding/jsonschema/testdata/constobj.txtar b/encoding/jsonschema/testdata/constobj.txtar new file mode 100644 index 00000000000..008c30101c1 --- /dev/null +++ b/encoding/jsonschema/testdata/constobj.txtar @@ -0,0 +1,10 @@ + +-- type.json -- +{ + "type": "object", + "const": {"a": 1} +} + +-- out/decode/cue -- +a: 1 +...