{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ivans/json-schema/ivans-paginated-market-list-list-schema.json",
  "title": "PaginatedMarketListList",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ivans-markets-api-openapi.yml#/components/schemas/PaginatedMarketListList",
  "type": "object",
  "properties": {
    "count": {
      "type": "integer"
    },
    "next": {
      "type": [
        "string",
        "null"
      ],
      "format": "uri"
    },
    "previous": {
      "type": [
        "string",
        "null"
      ],
      "format": "uri"
    },
    "results": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/MarketList"
      }
    }
  },
  "$defs": {
    "LineOfBusiness": {
      "type": "object",
      "properties": {
        "uuid": {
          "type": "string",
          "format": "uuid",
          "readOnly": true
        },
        "name": {
          "type": "string",
          "maxLength": 128
        },
        "code": {
          "type": "string",
          "maxLength": 32
        }
      },
      "required": [
        "code",
        "name",
        "uuid"
      ]
    },
    "MarketList": {
      "type": "object",
      "properties": {
        "availableLinesOfBusiness": {
          "allOf": [
            {
              "$ref": "#/$defs/LineOfBusiness"
            }
          ],
          "readOnly": true
        },
        "uuid": {
          "type": "string",
          "format": "uuid"
        },
        "name": {
          "type": "string",
          "maxLength": 128
        },
        "displayName": {
          "type": [
            "string",
            "null"
          ],
          "maxLength": 128
        },
        "notes": {
          "type": "string"
        },
        "logo": {
          "type": [
            "string",
            "null"
          ],
          "format": "uri",
          "pattern": "(?:png|jpg|svg|jpeg)$"
        },
        "akGroupId": {
          "type": [
            "string",
            "null"
          ],
          "maxLength": 32
        }
      },
      "required": [
        "availableLinesOfBusiness",
        "name"
      ]
    }
  }
}