| Field | Value |
| Identifier | urn:obsp:schema:v3.1:qualificationrecord |
|---|
| Dialect | https://json-schema.org/draft/2020-12/schema |
|---|
| Used by functions | Admit, Qualify |
Properties
| Property | Required | Type | Description |
schemaVersion | yes | reference | |
qualificationId | yes | string | |
subject | yes | string | |
profile | yes | string | |
artifacts | yes | array | |
tests | yes | array | |
result | yes | enumeration | |
limitations | no | array | |
validFrom | yes | reference | |
validUntil | no | reference | |
evidenceRefs | no | array | |
extensions | no | reference | |
Positive fixtures
qualification-record.valid.json
Negative fixtures
qualification-record.artifact-not-a-digest.json: qualified artifacts are identified by digest (alg:hex); a bare name is not an artifact digestqualification-record.result-certified.json: a qualification result is PASS, FAIL, CONDITIONAL or EXPIRED; CERTIFIED is a certification claim, not a qualification result (spec 5.2: no state is a certification claim)
Mappings to open standards
A mapping to a standard, never a conformance statement.
- maps to NS-3 Risk index record UNIs (relation REL-NS-3)
- maps to NIS-1 Nexus Indicator Standard (relation REL-NIS-1)
Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "urn:obsp:schema:v3.1:qualificationrecord",
"title": "QualificationRecord",
"type": "object",
"required": [
"qualificationId",
"subject",
"profile",
"artifacts",
"tests",
"result",
"validFrom",
"schemaVersion"
],
"properties": {
"schemaVersion": {
"$ref": "#/$defs/SchemaVersion"
},
"qualificationId": {
"type": "string",
"minLength": 1
},
"subject": {
"type": "string",
"minLength": 1
},
"profile": {
"type": "string",
"minLength": 1
},
"artifacts": {
"type": "array",
"minItems": 1,
"items": {
"$ref": "#/$defs/Digest"
}
},
"tests": {
"type": "array",
"minItems": 1,
"items": {
"type": "string",
"minLength": 1
}
},
"result": {
"enum": [
"PASS",
"FAIL",
"CONDITIONAL",
"EXPIRED"
]
},
"limitations": {
"type": "array",
"items": {
"type": "string",
"minLength": 1
}
},
"validFrom": {
"$ref": "#/$defs/IsoDateTime"
},
"validUntil": {
"$ref": "#/$defs/IsoDateTime"
},
"evidenceRefs": {
"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
}