{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/zvid-io/json-schema/zvid-io-stock-search-result-schema.json",
  "title": "StockSearchResult",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/zvid-io-stock-api-openapi.yml#/components/schemas/StockSearchResult",
  "type": "object",
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "id",
          "kind",
          "src"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "kind": {
            "enum": [
              "image",
              "video",
              "gif",
              "audio"
            ]
          },
          "src": {
            "type": "string",
            "description": "Media URL to use in a project element."
          },
          "preview": {
            "type": "string",
            "description": "Picker thumbnail or preview URL."
          },
          "width": {
            "type": "number"
          },
          "height": {
            "type": "number"
          },
          "duration": {
            "type": "number"
          },
          "description": {
            "type": "string"
          },
          "credit": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string"
              },
              "link": {
                "type": "string"
              }
            },
            "additionalProperties": true
          }
        },
        "additionalProperties": true
      }
    },
    "page": {
      "type": "integer"
    },
    "perPage": {
      "type": "integer"
    },
    "hasMore": {
      "type": "boolean"
    },
    "excludedCount": {
      "type": "integer"
    },
    "message": {
      "type": "string"
    },
    "providerErrors": {
      "type": "object",
      "additionalProperties": true
    }
  },
  "required": [
    "items",
    "page",
    "perPage",
    "hasMore"
  ],
  "additionalProperties": true
}