{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://eviulon.com/schemas/patefacere-sync-v28-1.0.schema.json",
  "title": "Patefacere Sync v28",
  "type": "object",
  "additionalProperties": true,
  "required": [
    "schemaVersion",
    "version",
    "generated",
    "status",
    "fixtureCount",
    "passed",
    "failed",
    "networkCalls",
    "vectors",
    "truthBoundary",
    "registrySha256"
  ],
  "properties": {
    "schemaVersion": {
      "const": "eviulon-patefacere-sync-v28-1.0"
    },
    "version": {
      "const": "2.37.0"
    },
    "generated": {
      "type": "string"
    },
    "status": {
      "enum": [
        "PASS",
        "FAIL",
        "PARTIAL"
      ]
    },
    "truthBoundary": {
      "type": "string"
    },
    "registrySha256": {
      "type": "string",
      "pattern": "^[a-f0-9]{64}$"
    },
    "fixtureCount": {
      "type": "integer",
      "minimum": 0
    },
    "passed": {
      "type": "integer",
      "minimum": 0
    },
    "failed": {
      "type": "integer",
      "minimum": 0
    },
    "networkCalls": {
      "type": "integer",
      "minimum": 0
    },
    "vectors": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/record"
      }
    }
  },
  "$defs": {
    "record": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "title": "Patefacere Sync v28 record",
      "type": "object",
      "additionalProperties": true,
      "required": [
        "id",
        "recordType",
        "title",
        "contractVersion",
        "migrationSourceVersion",
        "bindingClass",
        "expectedOutcome",
        "actualOutcome",
        "zeroNetwork",
        "canonicalRoute",
        "machineReadableUrl",
        "truthBoundary",
        "recordSha256"
      ],
      "properties": {
        "id": {
          "type": "string"
        },
        "recordType": {
          "type": "string"
        },
        "contractVersion": {
          "const": "2.8"
        },
        "migrationSourceVersion": {
          "const": "2.7"
        },
        "bindingClass": {
          "type": "string"
        },
        "expectedOutcome": {
          "type": "string"
        },
        "actualOutcome": {
          "type": "string"
        },
        "zeroNetwork": {
          "const": true
        },
        "canonicalRoute": {
          "type": "string"
        },
        "machineReadableUrl": {
          "type": "string"
        },
        "truthBoundary": {
          "type": "string"
        },
        "recordSha256": {
          "type": "string",
          "pattern": "^[a-f0-9]{64}$"
        }
      }
    }
  }
}
