Skip to content

Producing an OCA Bundle that is a single JSON structure vs. set of JSON files in a zip file #5

@swcurran

Description

@swcurran

I'm trying to understand why the OCA Bundle is a set of JSON files in a ZIP file vs. just a single JSON file that contains a set of overlays?

For example, when we use in a piece of software (say, a wallet), we want the JSON to be in this form, which is a single JSON file that is:

{
    "capture_base": {
        "type": "spec/capture_base/1.0",
        .
        .
        .
    },
    "overlays": [
        {
            "capture_base": "EfeQBz5tyC0gett-ETgkg4pkxBwwuQoeYsT-9Nt0cNsc",
            "type": "spec/overlays/meta/1.0"
             .
             .
             .
    ]
}

We currently plan on have the code that retrieves a bundle convert it to the single JSON structure format for internal use. Is there a good reason to pass it around as a zipped set of JSON files and leave the JSON assembly to later in the process?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions