In this section: Specification
Specification
- Overview
- 1. Purpose and scope
- 2. Principles (normative)
- 3. Participant roles
- 4. Objects, identifiers and envelopes
- 5. The twelve functions
- 6. Wire bindings
- 7. Conformance
- 8. Security model
- 9. Gaps register
- 10. Versioning and change
- 11. Implementations
- 12. Operator sovereignty profile (OBSP-SOV)
- 13. Sovereign deployment for every operator and environment
Functions
Schemas
- Schema explorer
- attestation-evidence
- attestation-result
- calibration-record
- conformance-claim
- conformance-report
- correction-notice
- decommission-record
- error-problem
- event-envelope
- fleet-projection
- model-manifest
- name-pack
- native-envelope
- node-bootstrap-bundle
- node-manifest
- observation-record
- observed-state-receipt
- participant-manifest
- plan
- product-manifest
- proof-receipt
- provenance
- provider-manifest
- qualification-record
- quality-flag
- reconciliation-assignment
- reconciliation-receipt
- replay-batch-result
- replay-batch
- request-context
- sensor-passport
- source-manifest
- source-release
- supply-chain-receipt
- system-pack
- time-quality
ErrorProblem
Canonical RFC 7807-shaped Observatory problem contract with bounded diagnostic disclosure.
| Field | Value |
|---|---|
| Identifier | urn:obsp:schema:v3.1:errorproblem |
| Dialect | https://json-schema.org/draft/2020-12/schema |
| Used by functions | none |
Properties
| Property | Required | Type | Description |
|---|---|---|---|
schemaVersion | yes | reference | |
errorId | yes | string | |
type | yes | string | |
title | yes | reference | |
status | yes | integer | |
detail | yes | reference | |
instance | yes | string | |
errorCode | yes | string | |
category | yes | enumeration | |
correlationId | yes | string | |
requestId | no | string | |
retryable | yes | boolean | |
retryAfterSeconds | no | integer | |
policyDecisionRef | no | string | |
evidenceRef | no | reference | |
violations | no | array | |
extensions | no | reference |
Positive fixtures
error-problem.valid.json
Negative fixtures
error-problem.bad-code.json: required at /: 'errorId' is a required property
Mappings to open standards
A mapping to a standard, never a conformance statement.
- maps to RFC 9457 (problem details for HTTP APIs) (relation EXT-RFC9457)
Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "urn:obsp:schema:v3.1:errorproblem",
"title": "ErrorProblem",
"description": "Canonical RFC 7807-shaped Observatory problem contract with bounded diagnostic disclosure.",
"type": "object",
"required": [
"schemaVersion",
"errorId",
"type",
"title",
"status",
"detail",
"instance",
"errorCode",
"category",
"correlationId",
"retryable"
],
"properties": {
"schemaVersion": {
"$ref": "#/$defs/SchemaVersion"
},
"errorId": {
"type": "string",
"minLength": 8,
"maxLength": 128
},
"type": {
"type": "string",
"format": "uri"
},
"title": {
"$ref": "#/$defs/NonEmptyString"
},
"status": {
"type": "integer",
"minimum": 400,
"maximum": 599
},
"detail": {
"$ref": "#/$defs/NonEmptyString"
},
"instance": {
"type": "string",
"minLength": 1,
"maxLength": 2048
},
"errorCode": {
"type": "string",
"pattern": "^OBS-[A-Z0-9]+-[0-9]{4}$"
},
"category": {
"enum": [
"VALIDATION",
"AUTHENTICATION",
"AUTHORIZATION",
"POLICY_DENIED",
"NOT_FOUND",
"CONFLICT",
"VERSION_CONFLICT",
"IDEMPOTENCY_CONFLICT",
"RATE_LIMITED",
"DEPENDENCY_UNAVAILABLE",
"DEGRADED",
"STALE",
"INSUFFICIENT_EVIDENCE",
"UNSUPPORTED_CAPABILITY",
"PROVIDER_ERROR",
"INTERNAL"
]
},
"correlationId": {
"type": "string",
"minLength": 8,
"maxLength": 128
},
"requestId": {
"type": "string",
"minLength": 8,
"maxLength": 128
},
"retryable": {
"type": "boolean"
},
"retryAfterSeconds": {
"type": "integer",
"minimum": 0,
"maximum": 86400
},
"policyDecisionRef": {
"type": "string",
"minLength": 1,
"maxLength": 2048
},
"evidenceRef": {
"$ref": "#/$defs/EvidenceRef"
},
"violations": {
"type": "array",
"items": {
"type": "object",
"required": [
"field",
"reason"
],
"properties": {
"field": {
"type": "string",
"minLength": 1,
"maxLength": 512
},
"reason": {
"type": "string",
"minLength": 1,
"maxLength": 2048
},
"code": {
"type": "string",
"maxLength": 128
}
},
"additionalProperties": false
}
},
"extensions": {
"$ref": "#/$defs/Extensions"
}
},
"$defs": {
"Digest": {
"type": "string",
"pattern": "^[a-z0-9][a-z0-9._-]{1,31}:[A-Fa-f0-9]{32,128}$"
},
"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
},
"Extensions": {
"type": "object",
"description": "Namespaced extension bag; extension content is never trusted as canonical error semantics.",
"propertyNames": {
"pattern": "^[a-z][a-z0-9]*(\\.[a-z][a-z0-9]*)+$"
},
"additionalProperties": true
},
"SchemaVersion": {
"type": "string",
"const": "3.1.0"
}
},
"additionalProperties": false
}