Convert sub-objects (other than arrays) in YAML to JSON strings automatically. #38

Closed
telackey wants to merge 1 commits from telackey/sub into laconic-deprecated
Member

This allows us to support attributes in YAML like this:

  meta:
    foo: bar
    bar:
      baz: boz

Which will automatically become:

"meta": "{\"foo\":\"bar\",\"bar\":{\"baz\":\"boz\"}}"

Note: cosmos-sdk's protobuf code does not support maps (https://github.com/cosmos/cosmos-sdk/issues/15254), or else we would just use a map.

This allows us to support attributes in YAML like this: ``` meta: foo: bar bar: baz: boz ``` Which will automatically become: ``` "meta": "{\"foo\":\"bar\",\"bar\":{\"baz\":\"boz\"}}" ``` > Note: cosmos-sdk's protobuf code does not support maps (https://github.com/cosmos/cosmos-sdk/issues/15254), or else we would just use a map.
telackey added the
enhancement
label 2023-11-17 22:45:43 +00:00
telackey requested review from dboreham 2023-11-17 22:45:56 +00:00
All checks were successful
Tests / sdk_tests (pull_request) Successful in 4m28s

Pull request closed

Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: cerc-io/laconic-registry-cli#38
No description provided.