{
  "openapi": "3.1.0",
  "info": {
    "title": "FightCase storefront API",
    "version": "1.1.0",
    "summary": "Read-only catalogue of FightCase phone cases with fight-sport designs: products, prices in EUR/CZK/USD, phone models, fighters, organizations and shop policies.",
    "description": "Public JSON endpoints used by the FightCase storefront. They are read-only and need no authentication. Use them to find a case, its exact price and the phone models it is made for, then send the person to the product page (https://fightcase.adscaled.media/case/<slug>) to choose the model and pay. Payment happens only on Stripe Checkout, entered by the buyer; there is no API to place or pay an order. `GET /api/v1/shop` reports `checkoutAvailable`: when it is false, orders are not open yet. Versioning: the major version is in the path (`/api/v1/`); the unversioned `/api/…` paths are aliases of v1 used by the storefront. Deprecation policy: v1 only gets backward-compatible additions; a breaking change ships as `/api/v2/`. A deprecated operation is marked `deprecated: true` here and answers with `Deprecation` (RFC 9745) and `Sunset` (RFC 8594) headers; it stays available for at least 90 days after the deprecation is announced. Nothing is deprecated today.",
    "contact": {
      "name": "FightCase",
      "url": "https://fightcase.adscaled.media/imprint"
    }
  },
  "servers": [
    {
      "url": "https://fightcase.adscaled.media"
    }
  ],
  "externalDocs": {
    "description": "Guide for AI agents",
    "url": "https://fightcase.adscaled.media/llms.txt"
  },
  "tags": [
    {
      "name": "catalog",
      "description": "Products and filters"
    },
    {
      "name": "shop",
      "description": "Shop status and policies"
    }
  ],
  "paths": {
    "/api/v1/health": {
      "get": {
        "operationId": "getHealth",
        "tags": [
          "shop"
        ],
        "summary": "Health check",
        "description": "Returns `{ \"ok\": true }` while the shop server is running.",
        "responses": {
          "200": {
            "description": "The server is running.",
            "headers": {
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Health"
                }
              }
            }
          },
          "405": {
            "$ref": "#/components/responses/MethodNotAllowed"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/api/v1/shop": {
      "get": {
        "operationId": "getShop",
        "tags": [
          "shop"
        ],
        "summary": "Shop status",
        "description": "Whether checkout is open, seller details from the shop settings, categories, phone models, shipping countries, delivery estimate and active deals.",
        "parameters": [
          {
            "name": "lang",
            "in": "query",
            "required": false,
            "description": "Language of the texts. Missing translations fall back to English.",
            "schema": {
              "type": "string",
              "enum": [
                "en",
                "cs",
                "ru",
                "de",
                "fr"
              ],
              "default": "en"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Shop status and settings.",
            "headers": {
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Shop"
                }
              }
            }
          },
          "405": {
            "$ref": "#/components/responses/MethodNotAllowed"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/api/v1/products": {
      "get": {
        "operationId": "listProducts",
        "tags": [
          "catalog"
        ],
        "summary": "List products",
        "description": "Active products, optionally filtered. Every search word must match (title, tags, category, fighter, organization; diacritics ignored).",
        "parameters": [
          {
            "name": "lang",
            "in": "query",
            "required": false,
            "description": "Language of the texts. Missing translations fall back to English.",
            "schema": {
              "type": "string",
              "enum": [
                "en",
                "cs",
                "ru",
                "de",
                "fr"
              ],
              "default": "en"
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "description": "Search text.",
            "schema": {
              "type": "string",
              "maxLength": 80
            }
          },
          {
            "name": "category",
            "in": "query",
            "required": false,
            "description": "Category slug (see `GET /api/v1/shop` categories).",
            "schema": {
              "type": "string",
              "maxLength": 80
            }
          },
          {
            "name": "fighter",
            "in": "query",
            "required": false,
            "description": "Fighter slug (see `GET /api/v1/filters`).",
            "schema": {
              "type": "string",
              "maxLength": 80
            }
          },
          {
            "name": "organization",
            "in": "query",
            "required": false,
            "description": "Organization slug (see `GET /api/v1/filters`).",
            "schema": {
              "type": "string",
              "maxLength": 80
            }
          },
          {
            "name": "model",
            "in": "query",
            "required": false,
            "description": "Phone model id (see `GET /api/v1/shop` models).",
            "schema": {
              "type": "integer",
              "minimum": 1
            }
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "featured",
                "new",
                "price_asc",
                "price_desc"
              ],
              "default": "featured"
            }
          },
          {
            "name": "featured",
            "in": "query",
            "required": false,
            "description": "`1` = featured products only.",
            "schema": {
              "type": "string",
              "enum": [
                "1"
              ]
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 500,
              "default": 60
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Matching products.",
            "headers": {
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProductList"
                }
              }
            }
          },
          "405": {
            "$ref": "#/components/responses/MethodNotAllowed"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/api/v1/products/{slug}": {
      "get": {
        "operationId": "getProduct",
        "tags": [
          "catalog"
        ],
        "summary": "Product detail",
        "description": "One active product: description, specs, images, phone models it is made for, fighters, organizations, approved reviews and related products.",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "description": "Product slug (lowercase ASCII, digits and hyphens).",
            "schema": {
              "type": "string",
              "maxLength": 120
            }
          },
          {
            "name": "lang",
            "in": "query",
            "required": false,
            "description": "Language of the texts. Missing translations fall back to English.",
            "schema": {
              "type": "string",
              "enum": [
                "en",
                "cs",
                "ru",
                "de",
                "fr"
              ],
              "default": "en"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The product.",
            "headers": {
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProductDetail"
                }
              }
            }
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "405": {
            "$ref": "#/components/responses/MethodNotAllowed"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/api/v1/filters": {
      "get": {
        "operationId": "getFilters",
        "tags": [
          "catalog"
        ],
        "summary": "Catalogue filters",
        "description": "Organizations and fighters that have active products, and the ids of phone models with at least one active product.",
        "parameters": [
          {
            "name": "lang",
            "in": "query",
            "required": false,
            "description": "Language of the texts. Missing translations fall back to English.",
            "schema": {
              "type": "string",
              "enum": [
                "en",
                "cs",
                "ru",
                "de",
                "fr"
              ],
              "default": "en"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Filter values.",
            "headers": {
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Filters"
                }
              }
            }
          },
          "405": {
            "$ref": "#/components/responses/MethodNotAllowed"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/api/v1/fighters/{slug}": {
      "get": {
        "operationId": "getFighter",
        "tags": [
          "catalog"
        ],
        "summary": "Fighter",
        "description": "A fighter with active products (404 otherwise). List the cases with `GET /api/v1/products?fighter=<slug>`.",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "description": "Fighter slug (lowercase ASCII, digits and hyphens).",
            "schema": {
              "type": "string",
              "maxLength": 120
            }
          },
          {
            "name": "lang",
            "in": "query",
            "required": false,
            "description": "Language of the texts. Missing translations fall back to English.",
            "schema": {
              "type": "string",
              "enum": [
                "en",
                "cs",
                "ru",
                "de",
                "fr"
              ],
              "default": "en"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The fighter.",
            "headers": {
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Fighter"
                }
              }
            }
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "405": {
            "$ref": "#/components/responses/MethodNotAllowed"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/api/v1/organizations/{slug}": {
      "get": {
        "operationId": "getOrganization",
        "tags": [
          "catalog"
        ],
        "summary": "Organization",
        "description": "A sports organization with fighters that have active products (404 otherwise).",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "description": "Organization slug (lowercase ASCII, digits and hyphens).",
            "schema": {
              "type": "string",
              "maxLength": 120
            }
          },
          {
            "name": "lang",
            "in": "query",
            "required": false,
            "description": "Language of the texts. Missing translations fall back to English.",
            "schema": {
              "type": "string",
              "enum": [
                "en",
                "cs",
                "ru",
                "de",
                "fr"
              ],
              "default": "en"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The organization.",
            "headers": {
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Organization"
                }
              }
            }
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "405": {
            "$ref": "#/components/responses/MethodNotAllowed"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/api/v1/pages/{slug}": {
      "get": {
        "operationId": "getPolicyPage",
        "tags": [
          "shop"
        ],
        "summary": "Policy page",
        "description": "Terms, privacy, returns, shipping or imprint as Markdown text, filled with the seller details from the shop settings.",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "description": "Page slug (lowercase ASCII, digits and hyphens).",
            "schema": {
              "type": "string",
              "enum": [
                "terms",
                "privacy",
                "returns",
                "shipping",
                "imprint"
              ]
            }
          },
          {
            "name": "lang",
            "in": "query",
            "required": false,
            "description": "Language of the texts. Missing translations fall back to English.",
            "schema": {
              "type": "string",
              "enum": [
                "en",
                "cs",
                "ru",
                "de",
                "fr"
              ],
              "default": "en"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The page.",
            "headers": {
              "RateLimit": {
                "$ref": "#/components/headers/RateLimit"
              },
              "RateLimit-Policy": {
                "$ref": "#/components/headers/RateLimitPolicy"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PolicyPage"
                }
              }
            }
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "405": {
            "$ref": "#/components/responses/MethodNotAllowed"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "default": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    }
  },
  "components": {
    "headers": {
      "RateLimit": {
        "description": "Remaining quota, IETF draft-ietf-httpapi-ratelimit-headers: `\"global\";r=<remaining>;t=<seconds until reset>`.",
        "schema": {
          "type": "string"
        }
      },
      "RateLimitPolicy": {
        "description": "Quota policy: `\"global\";q=300;w=60` (300 requests per 60 s per client IP for all /api paths).",
        "schema": {
          "type": "string"
        }
      },
      "RetryAfter": {
        "description": "Seconds to wait before the next request.",
        "schema": {
          "type": "integer"
        }
      },
      "Allow": {
        "description": "Allowed methods.",
        "schema": {
          "type": "string",
          "examples": [
            "GET, HEAD"
          ]
        }
      }
    },
    "responses": {
      "NotFound": {
        "description": "Unknown, inactive or empty resource (`not_found`).",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "MethodNotAllowed": {
        "description": "Only GET and HEAD are allowed (`method_not_allowed`). The `Allow` header lists them.",
        "headers": {
          "Allow": {
            "$ref": "#/components/headers/Allow"
          }
        },
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "TooManyRequests": {
        "description": "Rate limit exceeded (`rate_limited`). Wait `Retry-After` seconds.",
        "headers": {
          "Retry-After": {
            "$ref": "#/components/headers/RetryAfter"
          }
        },
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "InternalError": {
        "description": "Unexpected server error (`internal`). Retry later.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "Error": {
        "description": "Any other error status. Same Error body.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      }
    },
    "schemas": {
      "Error": {
        "type": "object",
        "required": [
          "error"
        ],
        "additionalProperties": false,
        "description": "The one error body of every non-2xx API response.",
        "properties": {
          "error": {
            "type": "object",
            "required": [
              "code",
              "message"
            ],
            "additionalProperties": false,
            "properties": {
              "code": {
                "type": "string",
                "description": "Stable machine-readable error code. Branch on this, not on the message.",
                "examples": [
                  "not_found",
                  "method_not_allowed",
                  "rate_limited",
                  "internal"
                ]
              },
              "message": {
                "type": "string",
                "description": "Human-readable explanation (English)."
              },
              "fields": {
                "type": "object",
                "description": "Only for validation errors: field name → problem.",
                "additionalProperties": {
                  "type": "string"
                }
              }
            }
          }
        },
        "examples": [
          {
            "error": {
              "code": "not_found",
              "message": "Not found."
            }
          }
        ]
      },
      "Health": {
        "type": "object",
        "required": [
          "ok"
        ],
        "properties": {
          "ok": {
            "type": "boolean",
            "const": true
          }
        }
      },
      "Money": {
        "type": "object",
        "description": "Price per currency in minor units (cents; CZK also ×100, so 59900 = 599 Kč). null = not sold in that currency. VAT included.",
        "properties": {
          "EUR": {
            "type": [
              "integer",
              "null"
            ]
          },
          "CZK": {
            "type": [
              "integer",
              "null"
            ]
          },
          "USD": {
            "type": [
              "integer",
              "null"
            ]
          }
        },
        "required": [
          "EUR",
          "CZK",
          "USD"
        ]
      },
      "Image": {
        "type": [
          "object",
          "null"
        ],
        "properties": {
          "src": {
            "type": "string",
            "description": "Path under the shop origin, e.g. /media/<file>.webp"
          },
          "thumb": {
            "type": "string"
          },
          "width": {
            "type": [
              "integer",
              "null"
            ]
          },
          "height": {
            "type": [
              "integer",
              "null"
            ]
          },
          "alt": {
            "type": "string"
          }
        }
      },
      "Category": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer"
          },
          "slug": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "productCount": {
            "type": "integer"
          }
        }
      },
      "PhoneModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer"
          },
          "brand": {
            "type": "string"
          },
          "name": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "brand",
          "name"
        ]
      },
      "Shop": {
        "type": "object",
        "additionalProperties": true,
        "properties": {
          "shopName": {
            "type": "string"
          },
          "checkoutAvailable": {
            "type": "boolean",
            "description": "false = orders are not open yet; do not try to buy."
          },
          "shopClosed": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "message": {
                "type": "string"
              }
            }
          },
          "defaultCurrency": {
            "type": "string",
            "enum": [
              "EUR",
              "CZK",
              "USD"
            ]
          },
          "freeShipping": {
            "type": "boolean",
            "description": "Every active shipping method is free."
          },
          "deliveryEstimate": {
            "type": "object",
            "properties": {
              "min": {
                "type": "integer"
              },
              "max": {
                "type": "integer"
              }
            },
            "description": "Business days."
          },
          "seller": {
            "type": "object",
            "description": "Seller details as entered in the shop settings (empty strings until filled).",
            "properties": {
              "name": {
                "type": "string"
              },
              "companyId": {
                "type": "string"
              },
              "vatId": {
                "type": "string"
              },
              "address": {
                "type": "string"
              },
              "email": {
                "type": "string"
              },
              "phone": {
                "type": "string"
              }
            }
          },
          "supportEmail": {
            "type": "string"
          },
          "categories": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Category"
            }
          },
          "models": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PhoneModel"
            }
          },
          "countries": {
            "type": "array",
            "items": {
              "type": "string",
              "description": "ISO 3166-1 alpha-2"
            }
          }
        }
      },
      "ProductCard": {
        "type": "object",
        "required": [
          "id",
          "slug",
          "title",
          "prices"
        ],
        "properties": {
          "id": {
            "type": "integer"
          },
          "slug": {
            "type": "string",
            "description": "Product page: https://fightcase.adscaled.media/case/<slug>"
          },
          "title": {
            "type": "string"
          },
          "titleLang": {
            "type": "string"
          },
          "category": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Named"
              },
              {
                "type": "null"
              }
            ]
          },
          "prices": {
            "$ref": "#/components/schemas/Money"
          },
          "compare": {
            "$ref": "#/components/schemas/Money"
          },
          "image": {
            "$ref": "#/components/schemas/Image"
          },
          "isFeatured": {
            "type": "boolean"
          },
          "rating": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "count": {
                "type": "integer"
              },
              "average": {
                "type": "number"
              }
            }
          }
        }
      },
      "ProductList": {
        "type": "object",
        "required": [
          "products"
        ],
        "properties": {
          "products": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProductCard"
            }
          }
        }
      },
      "ProductDetail": {
        "allOf": [
          {
            "$ref": "#/components/schemas/ProductCard"
          },
          {
            "type": "object",
            "properties": {
              "description": {
                "type": "string"
              },
              "descriptionLang": {
                "type": "string"
              },
              "specs": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "label": {
                      "type": "string"
                    },
                    "value": {
                      "type": "string"
                    }
                  }
                }
              },
              "images": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/Image"
                }
              },
              "categories": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/Named"
                }
              },
              "models": {
                "type": "array",
                "description": "Phone models this design is made for. The buyer must pick one.",
                "items": {
                  "$ref": "#/components/schemas/PhoneModel"
                }
              },
              "fighters": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "slug": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "nickname": {
                      "type": "string"
                    }
                  }
                }
              },
              "organizations": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/Named"
                }
              },
              "reviews": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "rating": {
                      "type": "integer",
                      "minimum": 1,
                      "maximum": 5
                    },
                    "author": {
                      "type": "string"
                    },
                    "text": {
                      "type": "string"
                    },
                    "date": {
                      "type": "string",
                      "format": "date"
                    },
                    "verified": {
                      "type": "boolean"
                    }
                  }
                }
              },
              "related": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/ProductCard"
                }
              }
            }
          }
        ]
      },
      "Named": {
        "type": "object",
        "properties": {
          "slug": {
            "type": "string"
          },
          "name": {
            "type": "string"
          }
        },
        "required": [
          "slug",
          "name"
        ]
      },
      "Filters": {
        "type": "object",
        "properties": {
          "organizations": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "slug": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "kind": {
                  "type": "string"
                },
                "productCount": {
                  "type": "integer"
                }
              }
            }
          },
          "fighters": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "slug": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "nickname": {
                  "type": "string"
                },
                "country": {
                  "type": "string"
                },
                "productCount": {
                  "type": "integer"
                },
                "organizations": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              }
            }
          },
          "modelIds": {
            "type": "array",
            "items": {
              "type": "integer"
            }
          }
        }
      },
      "Fighter": {
        "type": "object",
        "properties": {
          "slug": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "nickname": {
            "type": "string"
          },
          "country": {
            "type": "string"
          },
          "productCount": {
            "type": "integer"
          },
          "sports": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Named"
            }
          },
          "organizations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Named"
            }
          }
        }
      },
      "Organization": {
        "type": "object",
        "additionalProperties": true,
        "properties": {
          "slug": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "kind": {
            "type": "string"
          },
          "productCount": {
            "type": "integer"
          },
          "fighters": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "slug": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "nickname": {
                  "type": "string"
                },
                "productCount": {
                  "type": "integer"
                }
              }
            }
          }
        }
      },
      "PolicyPage": {
        "type": "object",
        "required": [
          "slug",
          "title",
          "body"
        ],
        "properties": {
          "slug": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "body": {
            "type": "string",
            "description": "Markdown subset (## headings, - lists, paragraphs)."
          },
          "lang": {
            "type": "string"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      }
    }
  }
}