{
  "$defs": {
    "ArtifactReference": {
      "additionalProperties": false,
      "properties": {
        "artifact_id": {
          "maxLength": 128,
          "minLength": 1,
          "pattern": "^[a-z][a-z0-9]*(?:[._:-][a-z0-9]+)*$",
          "title": "Artifact Id",
          "type": "string"
        },
        "media_type": {
          "maxLength": 128,
          "minLength": 3,
          "title": "Media Type",
          "type": "string"
        },
        "relative_path": {
          "maxLength": 512,
          "minLength": 1,
          "title": "Relative Path",
          "type": "string"
        },
        "sha256": {
          "pattern": "^[0-9a-f]{64}$",
          "title": "Sha256",
          "type": "string"
        },
        "size_bytes": {
          "minimum": 0,
          "title": "Size Bytes",
          "type": "integer"
        }
      },
      "required": [
        "artifact_id",
        "media_type",
        "relative_path",
        "sha256",
        "size_bytes"
      ],
      "title": "ArtifactReference",
      "type": "object"
    },
    "AssessmentStatus": {
      "enum": [
        "pass",
        "warn",
        "fail",
        "not_assessed"
      ],
      "title": "AssessmentStatus",
      "type": "string"
    },
    "EngineeringDomain": {
      "enum": [
        "system",
        "mission",
        "environment",
        "mass",
        "power",
        "thermal",
        "propulsion",
        "adcs",
        "communications",
        "launch",
        "lifetime",
        "cost",
        "geometry",
        "placement",
        "deployables",
        "operations"
      ],
      "title": "EngineeringDomain",
      "type": "string"
    },
    "ExecutionStatus": {
      "enum": [
        "succeeded",
        "partial",
        "failed",
        "skipped"
      ],
      "title": "ExecutionStatus",
      "type": "string"
    },
    "ResultIndexEntry": {
      "additionalProperties": false,
      "properties": {
        "assessment_status": {
          "$ref": "#/$defs/AssessmentStatus"
        },
        "domain": {
          "$ref": "#/$defs/EngineeringDomain"
        },
        "execution_status": {
          "$ref": "#/$defs/ExecutionStatus"
        },
        "reference": {
          "$ref": "#/$defs/ArtifactReference"
        },
        "result_id": {
          "maxLength": 128,
          "minLength": 1,
          "pattern": "^[a-z][a-z0-9]*(?:[._:-][a-z0-9]+)*$",
          "title": "Result Id",
          "type": "string"
        }
      },
      "required": [
        "result_id",
        "domain",
        "execution_status",
        "assessment_status",
        "reference"
      ],
      "title": "ResultIndexEntry",
      "type": "object"
    }
  },
  "$id": "urn:sindri:contracts:1.0.0:result-index",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "contract_suite": {
      "const": "sindri.contracts",
      "default": "sindri.contracts",
      "title": "Contract Suite",
      "type": "string"
    },
    "contract_version": {
      "const": "1.0.0",
      "default": "1.0.0",
      "title": "Contract Version",
      "type": "string"
    },
    "entries": {
      "default": [],
      "items": {
        "$ref": "#/$defs/ResultIndexEntry"
      },
      "title": "Entries",
      "type": "array"
    },
    "schema_kind": {
      "const": "result_index",
      "default": "result_index",
      "title": "Schema Kind",
      "type": "string"
    }
  },
  "title": "ResultIndex",
  "type": "object",
  "x-sindri-contract-suite": "sindri.contracts",
  "x-sindri-contract-version": "1.0.0"
}
