Skip to content

runtime.md: State MUST be serialized with specific indentation pattern? #1177

@AkihiroSuda

Description

@AkihiroSuda

When serialized in JSON, the format MUST adhere to the following pattern:

{
    "ociVersion": "0.2.0",
    "id": "oci-container1",
    "status": "running",
    "pid": 4422,
    "bundle": "/containers/redis",
    "annotations": {
        "myKey": "myValue"
    }
}

https://github.com/opencontainers/runtime-spec/blob/v1.0.2/runtime.md#state

Does the above sentence demands that a state JSON "MUST" adhere to the specific indentation pattern?
I assume not, but what does "the following pattern" mean then?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions