{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/permtracker-app/json-schema/permtracker-app-visa-bulletin-schema.json",
  "title": "VisaBulletin",
  "description": "One visa bulletin's charts, as the State Department printed them.",
  "x-generated": "2026-11-21",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/permtracker-app-visa-bulletin-api-openapi.yml#/components/schemas/VisaBulletin",
  "type": "object",
  "properties": {
    "month": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}$",
      "description": "The bulletin's month, as YYYY-MM."
    },
    "cells": {
      "type": "string",
      "description": "How to read a cell: a date like 15JAN13, C for current, or U for unavailable."
    },
    "employment": {
      "type": "object",
      "properties": {
        "finalAction": {
          "anyOf": [
            {
              "type": "object",
              "propertyNames": {
                "type": "string"
              },
              "additionalProperties": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {
                  "type": "string"
                }
              },
              "description": "One chart: category (e.g. EB2), then chargeability area (e.g. INDIA), then the cell as printed."
            },
            {
              "type": "null"
            }
          ]
        },
        "datesForFiling": {
          "anyOf": [
            {
              "type": "object",
              "propertyNames": {
                "type": "string"
              },
              "additionalProperties": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {
                  "type": "string"
                }
              },
              "description": "One chart: category (e.g. EB2), then chargeability area (e.g. INDIA), then the cell as printed."
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "finalAction",
        "datesForFiling"
      ],
      "additionalProperties": {},
      "description": "The employment-based charts."
    },
    "family": {
      "type": "object",
      "properties": {
        "finalAction": {
          "anyOf": [
            {
              "type": "object",
              "propertyNames": {
                "type": "string"
              },
              "additionalProperties": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {
                  "type": "string"
                }
              },
              "description": "One chart: category (e.g. EB2), then chargeability area (e.g. INDIA), then the cell as printed."
            },
            {
              "type": "null"
            }
          ]
        },
        "datesForFiling": {
          "anyOf": [
            {
              "type": "object",
              "propertyNames": {
                "type": "string"
              },
              "additionalProperties": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {
                  "type": "string"
                }
              },
              "description": "One chart: category (e.g. EB2), then chargeability area (e.g. INDIA), then the cell as printed."
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "finalAction",
        "datesForFiling"
      ],
      "additionalProperties": {},
      "description": "The family-sponsored charts. Null for a month whose family charts aren't held."
    },
    "sourceUrl": {
      "type": "string",
      "description": "The State Department's own page for this bulletin."
    }
  },
  "required": [
    "month",
    "cells",
    "employment",
    "family",
    "sourceUrl"
  ],
  "additionalProperties": {}
}