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

ProviderManifest

Source schemas/json/provider-manifest.schema.json

On this page
  1. Properties
  2. Positive fixtures
  3. Negative fixtures
  4. Schema
FieldValue
Identifierurn:obsp:schema:v3.1:providermanifest
Dialecthttps://json-schema.org/draft/2020-12/schema
Used by functionsAdmit, Exit and decommission

Properties

PropertyRequiredTypeDescription
schemaVersionyesreference
providerIdyesstring
providerClassyesstring
nameyesreference
adapteryesobject
versionPolicyyesobject
capabilitiesyesarray
rightsyesobject
securityyesobject
exityesobject
qualificationRefsnoarray
extensionsnoreference

Positive fixtures

  • provider-manifest.valid.json

Negative fixtures

  • provider-manifest.empty-capabilities.json: minItems at /capabilities: [] should be non-empty

Schema

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "urn:obsp:schema:v3.1:providermanifest",
  "title": "ProviderManifest",
  "type": "object",
  "required": [
    "providerId",
    "providerClass",
    "name",
    "adapter",
    "versionPolicy",
    "capabilities",
    "rights",
    "security",
    "exit",
    "schemaVersion"
  ],
  "properties": {
    "schemaVersion": {
      "$ref": "#/$defs/SchemaVersion"
    },
    "providerId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128
    },
    "providerClass": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128
    },
    "name": {
      "$ref": "#/$defs/NonEmptyString"
    },
    "adapter": {
      "type": "object",
      "required": [
        "type",
        "artifactDigest"
      ],
      "properties": {
        "type": {
          "type": "string",
          "minLength": 1
        },
        "artifactDigest": {
          "$ref": "#/$defs/Digest"
        },
        "apiVersions": {
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1
          }
        }
      },
      "additionalProperties": false
    },
    "versionPolicy": {
      "type": "object",
      "required": [
        "minimum",
        "upgradeMode"
      ],
      "properties": {
        "minimum": {
          "type": "string",
          "minLength": 1
        },
        "maximum": {
          "type": "string",
          "minLength": 1
        },
        "upgradeMode": {
          "enum": [
            "PINNED",
            "COMPATIBLE_RANGE",
            "EXPLICIT_REQUALIFICATION"
          ]
        }
      },
      "additionalProperties": false
    },
    "capabilities": {
      "type": "array",
      "minItems": 1,
      "items": {
        "type": "string",
        "minLength": 1
      }
    },
    "rights": {
      "type": "object",
      "required": [
        "commercialUse",
        "redistribution"
      ],
      "properties": {
        "commercialUse": {
          "type": "boolean"
        },
        "redistribution": {
          "type": "boolean"
        },
        "notes": {
          "type": "string"
        }
      },
      "additionalProperties": false
    },
    "security": {
      "type": "object",
      "required": [
        "supplyChainEvidence",
        "vulnerabilityPolicy"
      ],
      "properties": {
        "supplyChainEvidence": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/EvidenceRef"
          }
        },
        "vulnerabilityPolicy": {
          "type": "string",
          "minLength": 1
        },
        "attestationProfile": {
          "type": "string",
          "minLength": 1
        }
      },
      "additionalProperties": false
    },
    "exit": {
      "type": "object",
      "required": [
        "dataExport",
        "replacementPath"
      ],
      "properties": {
        "dataExport": {
          "type": "string",
          "minLength": 1
        },
        "replacementPath": {
          "type": "string",
          "minLength": 1
        },
        "decommission": {
          "type": "string"
        }
      },
      "additionalProperties": false
    },
    "qualificationRefs": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/EvidenceRef"
      }
    },
    "extensions": {
      "$ref": "#/$defs/Extensions"
    }
  },
  "$defs": {
    "Uni": {
      "type": "string",
      "minLength": 8,
      "maxLength": 256,
      "pattern": "^[A-Za-z0-9][A-Za-z0-9:._/@-]{7,255}$",
      "description": "Durable UNI or typed unresolved identifier according to authority rules"
    },
    "Digest": {
      "type": "string",
      "pattern": "^[a-z0-9]+:[A-Fa-f0-9]{32,128}$",
      "description": "alg:hex digest"
    },
    "IsoDateTime": {
      "type": "string",
      "format": "date-time"
    },
    "NonEmptyString": {
      "type": "string",
      "minLength": 1,
      "maxLength": 2048
    },
    "EvidenceRef": {
      "type": "object",
      "required": [
        "uri",
        "digest"
      ],
      "properties": {
        "uri": {
          "type": "string",
          "minLength": 1,
          "maxLength": 4096
        },
        "digest": {
          "$ref": "#/$defs/Digest"
        },
        "kind": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128
        },
        "recordedAt": {
          "$ref": "#/$defs/IsoDateTime"
        }
      },
      "additionalProperties": false
    },
    "StateVector": {
      "type": "object",
      "required": [
        "implementationState",
        "verificationState",
        "operationalState",
        "claimState",
        "correctionState"
      ],
      "properties": {
        "implementationState": {
          "enum": [
            "NOT_STARTED",
            "DECLARED",
            "SCAFFOLDED",
            "IMPLEMENTED",
            "INTEGRATED"
          ]
        },
        "serviceState": {
          "enum": [
            "NOT_DEPLOYED",
            "STARTING",
            "AVAILABLE",
            "DEGRADED",
            "UNAVAILABLE"
          ]
        },
        "verificationState": {
          "enum": [
            "NOT_TESTED",
            "TESTED",
            "INTEGRATION_VERIFIED",
            "INDEPENDENTLY_ASSESSED"
          ]
        },
        "operationalState": {
          "enum": [
            "NOT_OBSERVED",
            "LAB_OBSERVED",
            "PILOT_OBSERVED",
            "PRODUCTION_OBSERVED"
          ]
        },
        "releaseState": {
          "enum": [
            "INTERNAL",
            "LAB",
            "PILOT",
            "CONTROLLED_RELEASE",
            "CONTROLLED_GA",
            "RETIRED"
          ]
        },
        "claimState": {
          "enum": [
            "NOT_PERMITTED",
            "QUALIFIED",
            "PERMITTED_FOR_SCOPE"
          ]
        },
        "correctionState": {
          "enum": [
            "CURRENT",
            "DISPUTED",
            "SUPERSEDED",
            "WITHDRAWN",
            "RECALLED"
          ]
        }
      },
      "additionalProperties": false
    },
    "Extensions": {
      "type": "object",
      "description": "Namespaced extension bag; unknown top-level fields remain forbidden.",
      "propertyNames": {
        "pattern": "^[a-z][a-z0-9]*(\\.[a-z][a-z0-9]*)+$"
      },
      "additionalProperties": true
    },
    "SchemaVersion": {
      "type": "string",
      "const": "3.1.0"
    }
  },
  "additionalProperties": false
}