{
  "$defs": {
    "EvidenceConfidence": {
      "enum": [
        "authoritative",
        "supplier_based",
        "verified",
        "estimated",
        "assumed",
        "unknown"
      ],
      "title": "EvidenceConfidence",
      "type": "string"
    },
    "EvidenceSourceType": {
      "enum": [
        "user",
        "catalog",
        "supplier",
        "public_reference",
        "analysis",
        "external_tool",
        "policy"
      ],
      "title": "EvidenceSourceType",
      "type": "string"
    }
  },
  "$id": "urn:sindri:contracts:1.0.0:evidence-source",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "confidence": {
      "$ref": "#/$defs/EvidenceConfidence"
    },
    "locator": {
      "anyOf": [
        {
          "maxLength": 1000,
          "minLength": 1,
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Locator"
    },
    "revision": {
      "anyOf": [
        {
          "maxLength": 128,
          "minLength": 1,
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Revision"
    },
    "source_id": {
      "maxLength": 128,
      "minLength": 1,
      "pattern": "^[a-z][a-z0-9]*(?:[._:-][a-z0-9]+)*$",
      "title": "Source Id",
      "type": "string"
    },
    "source_type": {
      "$ref": "#/$defs/EvidenceSourceType"
    },
    "title": {
      "maxLength": 300,
      "minLength": 1,
      "title": "Title",
      "type": "string"
    }
  },
  "required": [
    "source_id",
    "source_type",
    "title",
    "confidence"
  ],
  "title": "EvidenceSource",
  "type": "object",
  "x-sindri-contract-suite": "sindri.contracts",
  "x-sindri-contract-version": "1.0.0"
}
