Skip to content
Margo v0.0.22

Runtime descriptor schema

#

This schema describes the immutable task descriptor supplied to the browser runtime when a rendered document needs runtime validation.

Margo runtime descriptor v1/v2

The immutable task descriptor supplied to a Margo browser runtime.

  • documentFingerprintstring*

    pattern="^[0-9a-f]{64}$"

  • protocolstring*

    enum=["margo-runtime/v1","margo-runtime/v2"]

  • renderInstanceIDstring*

    pattern="^ri-[0-9a-z]{8,32}$"

  • tasksarray*
    • *
      • dependsOnarray*
      • idstring*

        pattern="^ri-[0-9a-z]{8,32}:[a-z][a-z0-9-]{0,31}:[0-9]{8}:[0-9a-f]{64}$"

      • inputSHA256string*

        pattern="^[0-9a-f]{64}$"

      • kindstring*

        pattern="^[a-z][a-z0-9-]{0,31}$"

  • validationRequestobject
    • browserProfilestring*

      minLength=1

    • deviceScaleFactornumber*
    • expectedFontBundleDigeststring*

      pattern="^[0-9a-f]{64}$"

    • viewportHeightinteger*

      minimum=1

    • viewportWidthinteger*

      minimum=1

    • zoomnumber*

Used by

  • The Go module's PDF and deck integrations.
  • Browser validation tasks that accompany rendered HTML.
  • margo schema runtime-descriptor, which emits the exact embedded bytes.