Choose what this site may use

This site uses strictly necessary cookies to work and to remember your privacy choices. With your permission it would also load content hosted by other services, such as videos, maps and fonts, which then receive your network address and device data. We do not sell or share your personal information and we run no advertising. Choose Accept all, Reject all or Customise. You can change your mind at any time through Privacy choices at the foot of every page.

  • Always on

    Needed for the site to work and to remember your privacy choices. Always on.

  • Remembers settings you choose, such as the light or dark display, in your browser.

  • Loads videos, maps and other content hosted by other services. Those services receive your address and device data.

Menu Close
In this section: Specification
Specification
Functions
Schemas
Registers

NativeEnvelope

Source schemas/json/native-envelope.schema.json

On this page
  1. Properties
  2. Positive fixtures
  3. Negative fixtures
  4. Schema
FieldValue
Identifierurn:obsp:schema:v3.1:nativeenvelope
Dialecthttps://json-schema.org/draft/2020-12/schema
Used by functionsObserve

Properties

PropertyRequiredTypeDescription
schemaVersionyesreference
nativeEnvelopeUniyesreference
sourceUniyesreference
distributionRefyesstring
sourceReleaseUniyesreference
acquisitionRequestUniyesreference
connectorIdyesstring
connectorVersionyesstring
connectorDigestyesreference
tenantUniyesreference
workspaceUniyesreference
purposeyesstring
policyDigestyesreference
sourceTimenostring | null
observedTimenostring | null
acquiredAtyesreference
recordedAtyesreference
contentDigestyesreference
contentLengthyesinteger
mediaTypeyesstring
encodingnostring | null
compressionnostring | null
providerReleaseMarkernostring | null
etagnostring | null
rightsStateyesenumeration
correctionStateyesenumeration
supersedesnostring | null
correctionOfnostring | null
storageObjectRefyesstring
evidenceRefsnoarray
claimyesstring
extensionsnoreference

Positive fixtures

  • native-envelope.valid.json

Negative fixtures

  • native-envelope.missing-content-digest.json: required at /: 'contentDigest' is a required property

Schema

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "urn:obsp:schema:v3.1:nativeenvelope",
  "title": "NativeEnvelope",
  "type": "object",
  "required": [
    "schemaVersion",
    "nativeEnvelopeUni",
    "sourceUni",
    "distributionRef",
    "sourceReleaseUni",
    "acquisitionRequestUni",
    "connectorId",
    "connectorVersion",
    "connectorDigest",
    "tenantUni",
    "workspaceUni",
    "purpose",
    "policyDigest",
    "acquiredAt",
    "recordedAt",
    "contentDigest",
    "contentLength",
    "mediaType",
    "rightsState",
    "correctionState",
    "storageObjectRef",
    "claim"
  ],
  "properties": {
    "schemaVersion": {
      "$ref": "#/$defs/SchemaVersion"
    },
    "nativeEnvelopeUni": {
      "$ref": "#/$defs/Uni"
    },
    "sourceUni": {
      "$ref": "#/$defs/Uni"
    },
    "distributionRef": {
      "type": "string",
      "minLength": 1
    },
    "sourceReleaseUni": {
      "$ref": "#/$defs/Uni"
    },
    "acquisitionRequestUni": {
      "$ref": "#/$defs/Uni"
    },
    "connectorId": {
      "type": "string",
      "minLength": 1
    },
    "connectorVersion": {
      "type": "string",
      "minLength": 1
    },
    "connectorDigest": {
      "$ref": "#/$defs/Digest"
    },
    "tenantUni": {
      "$ref": "#/$defs/Uni"
    },
    "workspaceUni": {
      "$ref": "#/$defs/Uni"
    },
    "purpose": {
      "type": "string",
      "minLength": 1
    },
    "policyDigest": {
      "$ref": "#/$defs/Digest"
    },
    "sourceTime": {
      "type": [
        "string",
        "null"
      ]
    },
    "observedTime": {
      "type": [
        "string",
        "null"
      ]
    },
    "acquiredAt": {
      "$ref": "#/$defs/IsoDateTime"
    },
    "recordedAt": {
      "$ref": "#/$defs/IsoDateTime"
    },
    "contentDigest": {
      "$ref": "#/$defs/Digest"
    },
    "contentLength": {
      "type": "integer",
      "minimum": 0
    },
    "mediaType": {
      "type": "string",
      "minLength": 1
    },
    "encoding": {
      "type": [
        "string",
        "null"
      ]
    },
    "compression": {
      "type": [
        "string",
        "null"
      ]
    },
    "providerReleaseMarker": {
      "type": [
        "string",
        "null"
      ]
    },
    "etag": {
      "type": [
        "string",
        "null"
      ]
    },
    "rightsState": {
      "enum": [
        "UNKNOWN",
        "REVIEW_REQUIRED",
        "APPROVED_FOR_SCOPE",
        "DENIED"
      ]
    },
    "correctionState": {
      "enum": [
        "CURRENT",
        "SUPERSEDED",
        "WITHDRAWN",
        "RECALLED",
        "DISPUTED"
      ]
    },
    "supersedes": {
      "type": [
        "string",
        "null"
      ]
    },
    "correctionOf": {
      "type": [
        "string",
        "null"
      ]
    },
    "storageObjectRef": {
      "type": "string",
      "minLength": 1
    },
    "evidenceRefs": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/EvidenceRef"
      }
    },
    "claim": {
      "type": "string",
      "minLength": 1
    },
    "extensions": {
      "$ref": "#/$defs/Extensions"
    }
  },
  "additionalProperties": false,
  "$defs": {
    "Uni": {
      "type": "string",
      "minLength": 8,
      "maxLength": 256
    },
    "SchemaVersion": {
      "type": "string",
      "const": "3.1.0"
    },
    "IsoDateTime": {
      "type": "string",
      "minLength": 20
    },
    "Digest": {
      "type": "string",
      "pattern": "^sha256:[a-f0-9]{64}$"
    },
    "EvidenceRef": {
      "type": "object",
      "required": [
        "uri",
        "digest"
      ],
      "properties": {
        "uri": {
          "type": "string",
          "minLength": 1
        },
        "digest": {
          "$ref": "#/$defs/Digest"
        },
        "kind": {
          "type": "string"
        }
      },
      "additionalProperties": false
    },
    "Extensions": {
      "type": "object",
      "propertyNames": {
        "pattern": "^[a-z0-9]+(\\.[a-z0-9]+)+$"
      },
      "additionalProperties": true
    }
  }
}