{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/smarterweather-com/json-schema/smarterweather-com-text-products-response-schema.json",
  "title": "TextProductsResponse",
  "description": "`GET /v1/text-products` response. `products` is always an\narray, newest `issued_at` first.\n",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/smarterweather-com-guidance-api-openapi.yml#/components/schemas/TextProductsResponse",
  "type": "object",
  "required": [
    "products"
  ],
  "properties": {
    "products": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/TextProduct"
      }
    }
  },
  "$defs": {
    "TextProduct": {
      "type": "object",
      "description": "One NWS text product.",
      "required": [
        "id",
        "product_type",
        "wfo",
        "issued_at",
        "expires_at",
        "awips_id",
        "wmo_header",
        "body",
        "properties"
      ],
      "properties": {
        "id": {
          "type": "integer",
          "format": "int64"
        },
        "product_type": {
          "type": "string"
        },
        "wfo": {
          "type": [
            "string",
            "null"
          ],
          "description": "Issuing office, or `null` for national-center products."
        },
        "issued_at": {
          "type": "string",
          "format": "date-time"
        },
        "expires_at": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "awips_id": {
          "type": [
            "string",
            "null"
          ]
        },
        "wmo_header": {
          "type": [
            "string",
            "null"
          ]
        },
        "body": {
          "type": "string",
          "description": "Bulletin text. Empty when `omit_body=true`."
        },
        "properties": {
          "type": "object",
          "description": "Structured fields parsed from the product. Opaque; keys vary\nby product type and may be added without a sw-api release.\n",
          "additionalProperties": true
        }
      }
    }
  }
}