...

Text file src/cuelang.org/go/encoding/protobuf/jsonpb/testdata/encoder/list.txtar

Documentation: cuelang.org/go/encoding/protobuf/jsonpb/testdata/encoder

     1-- schema.cue --
     2a: [...#D]
     3
     4#D: {
     5	a: int @protobuf(1,int64)
     6}
     7
     8b: [1, ...] // Don't include schema fields if not in value
     9
    10c: [{a: 1}, ...]
    11c: [...#D]
    12-- value.cue --
    13// Hello
    14a: [
    15	{a: 1},
    16]
    17
    18c: [{a: 1}, {a: 2}]
    19-- out/jsonpb --
    20// Hello
    21a: [
    22	{a: "1"},
    23]
    24
    25c: [{a: "1"}, {a: "2"}]

View as plain text