{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/feedback1-ai/json-schema/feedback1-ai-public-banners-response-schema.json",
  "title": "PublicBannersResponse",
  "description": "Public banners response for widget",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/feedback1-ai-banners-public-api-openapi.yml#/components/schemas/PublicBannersResponse",
  "properties": {
    "banners": {
      "items": {
        "$ref": "#/$defs/PublicBannerResponse"
      },
      "type": "array",
      "title": "Banners",
      "default": []
    }
  },
  "type": "object",
  "$defs": {
    "BannerPosition": {
      "type": "string",
      "enum": [
        "top",
        "bottom"
      ],
      "title": "BannerPosition",
      "description": "Banner position enum"
    },
    "BannerType": {
      "type": "string",
      "enum": [
        "info",
        "warning",
        "success",
        "error"
      ],
      "title": "BannerType",
      "description": "Banner type enum"
    },
    "PublicBannerResponse": {
      "properties": {
        "id": {
          "type": "string",
          "title": "Id"
        },
        "title": {
          "type": "string",
          "title": "Title"
        },
        "message": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Message"
        },
        "type": {
          "$ref": "#/$defs/BannerType"
        },
        "priority": {
          "type": "integer",
          "title": "Priority"
        },
        "link_url": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Link Url"
        },
        "link_text": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Link Text"
        },
        "position": {
          "$ref": "#/$defs/BannerPosition"
        },
        "center_content": {
          "type": "boolean",
          "title": "Center Content",
          "default": false
        }
      },
      "type": "object",
      "required": [
        "id",
        "title",
        "message",
        "type",
        "priority",
        "link_url",
        "link_text",
        "position"
      ],
      "title": "PublicBannerResponse",
      "description": "Public banner response for widget"
    }
  }
}