{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cloudinary/json-schema/cloudinary-analyze-google-logo-detection-response-schema.json",
  "title": "AnalyzeGoogleLogoDetectionResponse",
  "x-generated": "2026-11-17",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cloudinary-analysis-openapi.yml#/components/schemas/AnalyzeGoogleLogoDetectionResponse",
  "allOf": [
    {
      "type": "object",
      "properties": {
        "data": {
          "properties": {
            "entity": {
              "type": "string"
            },
            "analysis": {
              "$ref": "#/$defs/GoogleLogoDetectionAnalysisData"
            }
          }
        }
      }
    },
    {
      "$ref": "#/$defs/BaseAnalyzeResponse"
    }
  ],
  "$defs": {
    "BaseAnalyzeResponse": {
      "allOf": [
        {
          "$ref": "#/$defs/LimitsResponse"
        },
        {
          "type": "object",
          "properties": {
            "request_id": {
              "type": "string"
            }
          }
        }
      ]
    },
    "Feature": {
      "type": "string",
      "enum": [
        "google_tagging",
        "object_detection",
        "ai_vision"
      ]
    },
    "GoogleLogoDetectionAnalysisData": {
      "type": "object",
      "properties": {
        "logo_annotations": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "mid": {
                "type": "string"
              },
              "description": {
                "type": "string"
              },
              "score": {
                "type": "number"
              },
              "bounding_poly": {
                "type": "object",
                "properties": {
                  "vertices": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "x": {
                          "type": "integer"
                        },
                        "y": {
                          "type": "integer"
                        }
                      }
                    }
                  }
                }
              }
            },
            "required": [
              "description",
              "score",
              "bounding_poly"
            ]
          }
        }
      },
      "required": [
        "logo_annotations"
      ]
    },
    "LimitsObject": {
      "type": [
        "object",
        "null"
      ],
      "title": "limits_object",
      "properties": {
        "items": {
          "type": "array",
          "items": {
            "type": "object",
            "title": "limit",
            "properties": {
              "type": {
                "$ref": "#/$defs/Feature"
              },
              "used_by_request": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "The amount of quota used by the current request"
              },
              "remaining": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "The remaining quota"
              },
              "limit": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "The total quota limit"
              },
              "reset_time": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date-time",
                "description": "Time in UTC when the limit will be reset"
              }
            },
            "required": [
              "type"
            ]
          }
        }
      }
    },
    "LimitsResponse": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "limits": {
          "$ref": "#/$defs/LimitsObject"
        }
      }
    }
  }
}