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

ReconciliationReceipt

Source schemas/json/reconciliation-receipt.schema.json

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

Properties

PropertyRequiredTypeDescription
schemaVersionyesreference
claimyesstringReceipt is node-local reference evidence; not fleet control authority.
receiptIdyesstring
assignmentIdyesstring
operationIdyesstring
nodeUniyesreference
reconciliationStateyesstring
preflightDigestyesreference
applyDigestyesreference
verificationDigestyesreference
observedDigestyesreference
recordedAtyesstring
extensionsnoobject

Positive fixtures

  • reconciliation-receipt.valid.json

Negative fixtures

  • reconciliation-receipt.bad-claim.json: const at /claim: 'NOT_FLEET_AUTHORITY' was expected

Schema

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "urn:obsp:schema:v3.1:reconciliationreceipt",
  "title": "ReconciliationReceipt",
  "type": "object",
  "required": [
    "schemaVersion",
    "claim",
    "receiptId",
    "assignmentId",
    "operationId",
    "nodeUni",
    "reconciliationState",
    "preflightDigest",
    "applyDigest",
    "verificationDigest",
    "observedDigest",
    "recordedAt"
  ],
  "properties": {
    "schemaVersion": {
      "$ref": "#/$defs/SchemaVersion"
    },
    "claim": {
      "type": "string",
      "const": "NOT_FLEET_AUTHORITY",
      "description": "Receipt is node-local reference evidence; not fleet control authority."
    },
    "receiptId": {
      "type": "string",
      "minLength": 1
    },
    "assignmentId": {
      "type": "string",
      "minLength": 1
    },
    "operationId": {
      "type": "string",
      "minLength": 1
    },
    "nodeUni": {
      "$ref": "#/$defs/Uni"
    },
    "reconciliationState": {
      "type": "string",
      "minLength": 1
    },
    "preflightDigest": {
      "$ref": "#/$defs/Digest"
    },
    "applyDigest": {
      "$ref": "#/$defs/Digest"
    },
    "verificationDigest": {
      "$ref": "#/$defs/Digest"
    },
    "observedDigest": {
      "$ref": "#/$defs/Digest"
    },
    "recordedAt": {
      "type": "string",
      "format": "date-time"
    },
    "extensions": {
      "type": "object",
      "propertyNames": {
        "pattern": "^[a-z][a-z0-9]*(\\.[a-z][a-z0-9]*)+$"
      },
      "additionalProperties": true
    }
  },
  "$defs": {
    "Uni": {
      "type": "string",
      "minLength": 8,
      "maxLength": 256,
      "pattern": "^[A-Za-z0-9][A-Za-z0-9:._/@-]{7,255}$"
    },
    "Digest": {
      "type": "string",
      "pattern": "^[a-z0-9]+:[A-Fa-f0-9]{32,128}$"
    },
    "SchemaVersion": {
      "type": "string",
      "const": "3.1.0"
    }
  },
  "additionalProperties": false
}