{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/krimskrams-xyz/json-schema/krimskrams-xyz-search-response-schema.json",
  "title": "SearchResponse",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/fcc-license-search_krimskrams_xyz_openapi.json#/components/schemas/SearchResponse",
  "properties": {
    "query": {
      "type": "string",
      "title": "Query"
    },
    "result_count": {
      "type": "integer",
      "title": "Result Count"
    },
    "results": {
      "items": {
        "$ref": "#/$defs/LicenseResult"
      },
      "type": "array",
      "title": "Results"
    },
    "changes_hint": {
      "type": "string",
      "title": "Changes Hint",
      "default": "Use /v1/changes or /mpp/v1/changes to retrieve status transitions."
    }
  },
  "type": "object",
  "required": [
    "query",
    "result_count",
    "results"
  ],
  "$defs": {
    "LicenseResult": {
      "properties": {
        "callsign": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Callsign"
        },
        "licensee_name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Licensee Name"
        },
        "frn": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Frn"
        },
        "service": {
          "type": "string",
          "title": "Service"
        },
        "status": {
          "type": "string",
          "title": "Status"
        },
        "grant_date": {
          "anyOf": [
            {
              "type": "string",
              "format": "date"
            },
            {
              "type": "null"
            }
          ],
          "title": "Grant Date"
        },
        "expired_date": {
          "anyOf": [
            {
              "type": "string",
              "format": "date"
            },
            {
              "type": "null"
            }
          ],
          "title": "Expired Date"
        },
        "cancellation_date": {
          "anyOf": [
            {
              "type": "string",
              "format": "date"
            },
            {
              "type": "null"
            }
          ],
          "title": "Cancellation Date"
        }
      },
      "type": "object",
      "required": [
        "service",
        "status"
      ],
      "title": "LicenseResult"
    }
  }
}