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

ConformanceReport

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

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

Output of a conformance suite run (conformance/README.md): the suite version, the profile tested, each case result, the requirement coverage and the digests of the evidence tested. A report records what was tested; it grants nothing.

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

Properties

PropertyRequiredTypeDescription
schemaVersionyesreference
apiVersionyesconstant
kindyesconstant
protocolVersionyesconstant
reportUniyesreference
suiteVersionyesreference
profileyesreference
sovereigntyOverlaynoboolean
implementationnoobject
runneryesobject
evidenceyesarray
evidenceSetDigestnoreference
casesyesarray
coverageyesobject
resultyesenumeration
generatedAtyesreference
extensionsnoreference

Positive fixtures

  • conformance-report.valid.json

Negative fixtures

  • conformance-report.bad-case-id.json: case ids are CT-<PROFILE>-NNN
  • conformance-report.pass-with-failed-case.json: a report with a failed case cannot pass
  • conformance-report.pass-with-missing-coverage.json: a report with uncovered requirements cannot pass

Mappings to open standards

A mapping to a standard, never a conformance statement.

  • maps to NS-11 Verification and monitoring (relation REL-NS-11)

Schema

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "urn:obsp:schema:v3.1:conformancereport",
  "title": "ConformanceReport",
  "description": "Output of a conformance suite run (conformance/README.md): the suite version, the profile tested, each case result, the requirement coverage and the digests of the evidence tested. A report records what was tested; it grants nothing.",
  "type": "object",
  "required": [
    "schemaVersion",
    "apiVersion",
    "kind",
    "protocolVersion",
    "reportUni",
    "suiteVersion",
    "profile",
    "runner",
    "evidence",
    "cases",
    "coverage",
    "result",
    "generatedAt"
  ],
  "properties": {
    "schemaVersion": {
      "$ref": "#/$defs/SchemaVersion"
    },
    "apiVersion": {
      "const": "obsp/conformance-report/v3.1"
    },
    "kind": {
      "const": "ConformanceReport"
    },
    "protocolVersion": {
      "const": "obsp/0.1"
    },
    "reportUni": {
      "$ref": "#/$defs/Uni"
    },
    "suiteVersion": {
      "$ref": "#/$defs/SemVer"
    },
    "profile": {
      "$ref": "#/$defs/ProfileId"
    },
    "sovereigntyOverlay": {
      "type": "boolean"
    },
    "implementation": {
      "type": "object",
      "required": [
        "name",
        "version"
      ],
      "properties": {
        "implementationUni": {
          "$ref": "#/$defs/Uni"
        },
        "name": {
          "$ref": "#/$defs/NonEmptyString"
        },
        "version": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128
        }
      },
      "additionalProperties": false
    },
    "runner": {
      "type": "object",
      "required": [
        "name",
        "version"
      ],
      "properties": {
        "name": {
          "$ref": "#/$defs/NonEmptyString"
        },
        "version": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128
        }
      },
      "additionalProperties": false
    },
    "evidence": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "path",
          "digest"
        ],
        "properties": {
          "path": {
            "type": "string",
            "minLength": 1,
            "maxLength": 1024
          },
          "digest": {
            "$ref": "#/$defs/Digest"
          },
          "schema": {
            "type": "string",
            "pattern": "^[a-z][a-z0-9-]*$"
          }
        },
        "additionalProperties": false
      }
    },
    "evidenceSetDigest": {
      "$ref": "#/$defs/Digest"
    },
    "cases": {
      "type": "array",
      "minItems": 1,
      "items": {
        "type": "object",
        "required": [
          "id",
          "result",
          "requirements"
        ],
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^CT-[A-Z]+-[0-9]{3}$"
          },
          "result": {
            "enum": [
              "PASS",
              "FAIL",
              "NOT_APPLICABLE",
              "MANUAL"
            ]
          },
          "requirements": {
            "type": "array",
            "minItems": 1,
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128
            }
          },
          "messages": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 4096
            }
          }
        },
        "additionalProperties": false
      }
    },
    "coverage": {
      "type": "object",
      "required": [
        "required",
        "covered",
        "missing"
      ],
      "properties": {
        "required": {
          "type": "integer",
          "minimum": 0
        },
        "covered": {
          "type": "integer",
          "minimum": 0
        },
        "missing": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      },
      "additionalProperties": false
    },
    "result": {
      "enum": [
        "PASS",
        "FAIL",
        "INCOMPLETE"
      ]
    },
    "generatedAt": {
      "$ref": "#/$defs/Timestamp"
    },
    "extensions": {
      "$ref": "#/$defs/Extensions"
    }
  },
  "additionalProperties": false,
  "allOf": [
    {
      "if": {
        "properties": {
          "result": {
            "const": "PASS"
          }
        }
      },
      "then": {
        "properties": {
          "cases": {
            "items": {
              "properties": {
                "result": {
                  "enum": [
                    "PASS",
                    "NOT_APPLICABLE"
                  ]
                }
              }
            }
          },
          "coverage": {
            "properties": {
              "missing": {
                "maxItems": 0
              }
            }
          }
        }
      }
    }
  ],
  "$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
    }
  }
}