{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ydb-qdrant-tech/json-schema/ydb-qdrant-tech-pets-response-schema.json",
  "title": "PetsResponse",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/pets-openapi.json#/components/schemas/PetsResponse",
  "type": "object",
  "required": [
    "total",
    "pets",
    "pagination"
  ],
  "properties": {
    "total": {
      "type": "integer",
      "minimum": 0,
      "description": "Number of pets in this response. pagination.totalItems is the full filtered count."
    },
    "pets": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/PublicPet"
      }
    },
    "pagination": {
      "$ref": "#/$defs/PetsPagination"
    }
  },
  "$defs": {
    "PetsPagination": {
      "type": "object",
      "required": [
        "page",
        "pageSize",
        "totalItems",
        "totalPages",
        "hasNextPage"
      ],
      "properties": {
        "page": {
          "type": "integer",
          "minimum": 1
        },
        "pageSize": {
          "type": "integer",
          "minimum": 1,
          "maximum": 200
        },
        "totalItems": {
          "type": "integer",
          "minimum": 0
        },
        "totalPages": {
          "type": "integer",
          "minimum": 0
        },
        "hasNextPage": {
          "type": "boolean"
        }
      }
    },
    "PublicPet": {
      "type": "object",
      "required": [
        "id",
        "slug",
        "displayName",
        "description",
        "spritesheetUrl",
        "petJsonUrl",
        "zipUrl",
        "spritesheetExt",
        "kind",
        "tags",
        "status",
        "createdAt",
        "downloadCount",
        "installCount",
        "likeCount"
      ],
      "properties": {
        "id": {
          "type": "string"
        },
        "slug": {
          "type": "string",
          "pattern": "^[a-z0-9][a-z0-9-]{0,63}$"
        },
        "displayName": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "spritesheetUrl": {
          "type": "string"
        },
        "petJsonUrl": {
          "type": "string"
        },
        "zipUrl": {
          "type": "string"
        },
        "spritesheetExt": {
          "type": "string",
          "enum": [
            "webp",
            "png"
          ]
        },
        "kind": {
          "type": "string",
          "enum": [
            "creature",
            "object",
            "character"
          ],
          "default": "creature"
        },
        "tags": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "status": {
          "type": "string",
          "enum": [
            "approved"
          ]
        },
        "ownerName": {
          "type": [
            "string",
            "null"
          ]
        },
        "ownerProfileSlug": {
          "type": [
            "string",
            "null"
          ]
        },
        "ownerProfileUrl": {
          "type": [
            "string",
            "null"
          ]
        },
        "ownerAvatarUrl": {
          "type": [
            "string",
            "null"
          ]
        },
        "publicAuthorEmail": {
          "type": [
            "string",
            "null"
          ],
          "format": "email"
        },
        "createdAt": {
          "type": "string",
          "format": "date-time"
        },
        "approvedAt": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "downloadCount": {
          "type": "integer",
          "minimum": 0
        },
        "installCount": {
          "type": "integer",
          "minimum": 0
        },
        "likeCount": {
          "type": "integer",
          "minimum": 0
        }
      }
    }
  }
}