{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "tax_year": {
      "type": "integer",
      "minimum": 1900,
      "maximum": 2200
    },
    "jurisdiction": {
      "const": "US-federal"
    },
    "filing_year": {
      "type": "integer",
      "minimum": 1900,
      "maximum": 2200
    },
    "artifact_kind": {
      "type": "string",
      "enum": [
        "form",
        "instructions",
        "schema_metadata"
      ]
    },
    "identifiers": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "identifier": {
            "type": "string",
            "enum": [
              "1099-NEC",
              "1099-MISC",
              "W-2",
              "W-3",
              "1099-K",
              "PUB-1099",
              "1040-ES",
              "SSA-EFW2",
              "IRIS-SOR"
            ]
          },
          "caller_revision": {
            "type": "string",
            "minLength": 1,
            "maxLength": 80,
            "pattern": "^[A-Za-z0-9 .()/\\-]{1,80}$",
            "not": {
              "pattern": "\\b(?:\\d{3}-\\d{2}-\\d{4}|\\d{2}-\\d{7}|\\d{9})\\b"
            }
          },
          "caller_sha256": {
            "type": "string",
            "minLength": 1,
            "maxLength": 64,
            "pattern": "^[0-9a-fA-F]{64}$"
          }
        },
        "required": [
          "identifier"
        ]
      },
      "minItems": 1,
      "maxItems": 20
    }
  },
  "required": [
    "tax_year",
    "identifiers"
  ]
}
