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

ConformanceClaim

Source schemas/json/conformance-claim.schema.json

On this page
  1. Properties
  2. Positive fixtures
  3. Negative fixtures
  4. Mappings to open standards
  5. Schema

A participant's claim that one implementation version conforms to named OBSP profiles at named levels, with the evidence by digest (OBSP 0.1 section 10). A claim is an attestation of a tested scope by its maker or a third-party assessor; it is never a certification, and its level is bounded by the evidence the level requires in registers/conformance-profiles.yaml.

FieldValue
Identifierurn:obsp:schema:v3.1:conformanceclaim
Dialecthttps://json-schema.org/draft/2020-12/schema
Used by functionsnone

Properties

PropertyRequiredTypeDescription
schemaVersionyesreference
apiVersionyesconstant
kindyesconstant
protocolVersionyesconstant
claimUniyesreference
implementationyesobject
suiteVersionyesreference
profilesyesarray
sovereigntyOverlayyesobject
assessoryesobject
evidenceyesarray
reportDigestnoreference
issuedAtyesreference
validUntilnoreference
stateyesenumeration
supersedesnoreference
extensionsnoreference

Positive fixtures

  • conformance-claim.declared.valid.json
  • conformance-claim.valid.json

Negative fixtures

  • conformance-claim.certified-level.json: a claim is an attestation; CERTIFIED is not a level
  • conformance-claim.lab-tested-self-assessed.json: LAB_TESTED and QUALIFIED need a third-party assessor
  • conformance-claim.no-evidence.json: a claim names its evidence by digest
  • conformance-claim.partial-sovereignty.json: OBSP-SOV is claimed whole: all ten requirements
  • conformance-claim.self-tested-without-report.json: SELF_TESTED and above need the digest of the conformance report
  • conformance-claim.third-party-without-assessor.json: a third-party assessor is identified

Mappings to open standards

A mapping to a standard, never a conformance statement.

  • maps to NS-11 Verification and monitoring (relation REL-NS-11)
  • maps to NS-14 Conformance and crosswalk to external standards (relation REL-NS-14)

Schema

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "urn:obsp:schema:v3.1:conformanceclaim",
  "title": "ConformanceClaim",
  "description": "A participant's claim that one implementation version conforms to named OBSP profiles at named levels, with the evidence by digest (OBSP 0.1 section 10). A claim is an attestation of a tested scope by its maker or a third-party assessor; it is never a certification, and its level is bounded by the evidence the level requires in registers/conformance-profiles.yaml.",
  "type": "object",
  "required": [
    "schemaVersion",
    "apiVersion",
    "kind",
    "protocolVersion",
    "claimUni",
    "implementation",
    "suiteVersion",
    "profiles",
    "sovereigntyOverlay",
    "assessor",
    "evidence",
    "issuedAt",
    "state"
  ],
  "properties": {
    "schemaVersion": {
      "$ref": "#/$defs/SchemaVersion"
    },
    "apiVersion": {
      "const": "obsp/conformance-claim/v3.1"
    },
    "kind": {
      "const": "ConformanceClaim"
    },
    "protocolVersion": {
      "const": "obsp/0.1"
    },
    "claimUni": {
      "$ref": "#/$defs/Uni"
    },
    "implementation": {
      "type": "object",
      "required": [
        "implementationUni",
        "name",
        "version"
      ],
      "properties": {
        "implementationUni": {
          "$ref": "#/$defs/Uni"
        },
        "name": {
          "$ref": "#/$defs/NonEmptyString"
        },
        "version": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128
        },
        "artifactDigests": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Digest"
          },
          "uniqueItems": true
        },
        "sourceUri": {
          "type": "string",
          "minLength": 1,
          "maxLength": 4096
        }
      },
      "additionalProperties": false
    },
    "suiteVersion": {
      "$ref": "#/$defs/SemVer"
    },
    "profiles": {
      "type": "array",
      "minItems": 1,
      "items": {
        "type": "object",
        "required": [
          "profile",
          "level",
          "scope"
        ],
        "properties": {
          "profile": {
            "$ref": "#/$defs/ProfileId"
          },
          "level": {
            "enum": [
              "DECLARED",
              "SELF_TESTED",
              "LAB_TESTED",
              "QUALIFIED"
            ]
          },
          "scope": {
            "$ref": "#/$defs/NonEmptyString"
          }
        },
        "additionalProperties": false
      }
    },
    "sovereigntyOverlay": {
      "type": "object",
      "required": [
        "claimed"
      ],
      "properties": {
        "claimed": {
          "type": "boolean"
        },
        "requirements": {
          "type": "array",
          "items": {
            "type": "string",
            "pattern": "^SOV-(10|[1-9])$"
          },
          "uniqueItems": true
        }
      },
      "additionalProperties": false
    },
    "assessor": {
      "type": "object",
      "required": [
        "kind"
      ],
      "properties": {
        "kind": {
          "enum": [
            "SELF",
            "THIRD_PARTY"
          ]
        },
        "assessorUni": {
          "$ref": "#/$defs/Uni"
        }
      },
      "additionalProperties": false
    },
    "evidence": {
      "type": "array",
      "minItems": 1,
      "items": {
        "$ref": "#/$defs/EvidenceRef"
      }
    },
    "reportDigest": {
      "$ref": "#/$defs/Digest"
    },
    "issuedAt": {
      "$ref": "#/$defs/Timestamp"
    },
    "validUntil": {
      "$ref": "#/$defs/Timestamp"
    },
    "state": {
      "enum": [
        "ACTIVE",
        "SUSPENDED",
        "WITHDRAWN",
        "SUPERSEDED"
      ]
    },
    "supersedes": {
      "$ref": "#/$defs/Uni"
    },
    "extensions": {
      "$ref": "#/$defs/Extensions"
    }
  },
  "additionalProperties": false,
  "allOf": [
    {
      "if": {
        "properties": {
          "assessor": {
            "properties": {
              "kind": {
                "const": "THIRD_PARTY"
              }
            }
          }
        }
      },
      "then": {
        "properties": {
          "assessor": {
            "required": [
              "kind",
              "assessorUni"
            ]
          }
        }
      }
    },
    {
      "if": {
        "properties": {
          "sovereigntyOverlay": {
            "properties": {
              "claimed": {
                "const": true
              }
            }
          }
        }
      },
      "then": {
        "properties": {
          "sovereigntyOverlay": {
            "required": [
              "claimed",
              "requirements"
            ],
            "properties": {
              "requirements": {
                "minItems": 10
              }
            }
          }
        }
      }
    },
    {
      "if": {
        "properties": {
          "profiles": {
            "contains": {
              "properties": {
                "level": {
                  "enum": [
                    "LAB_TESTED",
                    "QUALIFIED"
                  ]
                }
              }
            }
          }
        }
      },
      "then": {
        "properties": {
          "assessor": {
            "properties": {
              "kind": {
                "const": "THIRD_PARTY"
              }
            }
          }
        }
      }
    },
    {
      "if": {
        "properties": {
          "profiles": {
            "contains": {
              "properties": {
                "level": {
                  "enum": [
                    "SELF_TESTED",
                    "LAB_TESTED",
                    "QUALIFIED"
                  ]
                }
              }
            }
          }
        }
      },
      "then": {
        "required": [
          "reportDigest"
        ]
      }
    }
  ],
  "$defs": {
    "SchemaVersion": {
      "type": "string",
      "const": "3.1.0"
    },
    "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-z0-9._-]{1,31}:[A-Fa-f0-9]{32,128}$",
      "description": "Algorithm-prefixed hexadecimal digest"
    },
    "NonEmptyString": {
      "type": "string",
      "minLength": 1,
      "maxLength": 2048
    },
    "Timestamp": {
      "type": "string",
      "format": "date-time"
    },
    "SemVer": {
      "type": "string",
      "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+(-[0-9A-Za-z.-]+)?$"
    },
    "ProfileId": {
      "enum": [
        "OBSP-NODE",
        "OBSP-SITE",
        "OBSP-GRID",
        "OBSP-PROVIDER",
        "OBSP-CONSUMER"
      ]
    },
    "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
    },
    "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/Timestamp"
        }
      },
      "additionalProperties": false
    }
  }
}