cosmos-sdk/tx/textual/internal/testdata/any.json
Amaury 4a7e3f0522
refactor(textual): Update Spec to have shorter Any header screen (#14117)
* Remove object prefix

* update test case

* Update example
2022-12-06 10:45:42 +00:00

77 lines
1.9 KiB
JSON

[
{
"proto": {
"@type": "/Foo"
},
"screens": [
{"text": "/Foo"},
{"text": "Foo object", "indent": 1}
]
},
{
"proto": {
"@type": "/Foo",
"full_name": "testing"
},
"screens": [
{"text": "/Foo"},
{"text": "Foo object", "indent": 1},
{"text": "Full name: testing", "indent": 2}
]
},
{
"proto": {
"@type": "/google.protobuf.Timestamp",
"value": "2006-01-02T15:04:05Z"
},
"screens": [
{"text": "/google.protobuf.Timestamp"},
{"text": "2006-01-02T15:04:05Z", "indent": 1}
]
},
{
"proto": {
"@type": "/google.protobuf.Any",
"value": {
"@type": "/Foo"
}
},
"screens": [
{"text": "/google.protobuf.Any"},
{"text": "/Foo", "indent": 1},
{"text": "Foo object", "indent": 2}
]
},
{
"proto": {
"@type": "/google.protobuf.Any",
"value": {
"@type": "/Foo",
"full_name": "testing"
}
},
"screens": [
{"text": "/google.protobuf.Any"},
{"text": "/Foo", "indent": 1},
{"text": "Foo object", "indent": 2},
{"text": "Full name: testing", "indent": 3}
]
},
{
"proto": {
"@type": "/A",
"ANY": {
"@type": "/Foo",
"full_name": "testing"
}
},
"screens": [
{"text": "/A"},
{"text": "A object", "indent": 1},
{"text": "ANY: /Foo", "indent": 2},
{"text": "Foo object", "indent": 3},
{"text": "Full name: testing", "indent": 4}
]
}
]