{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/menorprecohoje-com-br/json-schema/menorprecohoje-com-br-best-price-response-schema.json",
  "title": "BestPriceResponse",
  "x-generated": "2026-11-18",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/menorprecohoje-com-br-openapi.json#/components/schemas/BestPriceResponse",
  "type": "object",
  "properties": {
    "ok": {
      "type": "boolean"
    },
    "meta": {
      "$ref": "#/$defs/Meta"
    },
    "intent": {
      "type": "string"
    },
    "temporal_scope": {
      "type": "string"
    },
    "reference_date": {
      "type": [
        "string",
        "null"
      ],
      "format": "date"
    },
    "best_offer": {
      "oneOf": [
        {
          "$ref": "#/$defs/Offer"
        },
        {
          "type": "null"
        }
      ]
    },
    "alternatives": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Offer"
      }
    },
    "total_matches": {
      "type": "integer"
    }
  },
  "$defs": {
    "Meta": {
      "type": "object",
      "properties": {
        "api": {
          "type": "string"
        },
        "api_version": {
          "type": "string"
        },
        "bridge_version": {
          "type": [
            "string",
            "null"
          ]
        },
        "gateway_version": {
          "type": [
            "string",
            "null"
          ]
        },
        "edition_id": {
          "type": [
            "string",
            "null"
          ]
        },
        "reference_date": {
          "type": [
            "string",
            "null"
          ],
          "format": "date"
        },
        "current_date": {
          "type": [
            "string",
            "null"
          ],
          "format": "date"
        },
        "snapshot_current": {
          "type": [
            "boolean",
            "null"
          ]
        },
        "city": {
          "type": "string"
        },
        "state": {
          "type": "string"
        },
        "country": {
          "type": "string"
        }
      }
    },
    "Offer": {
      "type": "object",
      "properties": {
        "mercado": {
          "type": "string"
        },
        "categoria": {
          "type": "string"
        },
        "marca": {
          "type": "string"
        },
        "descricao": {
          "type": "string"
        },
        "unidade": {
          "type": "string"
        },
        "preco_normal": {
          "type": "number"
        },
        "preco_promocional": {
          "type": "number"
        },
        "preco_clube": {
          "type": "number"
        },
        "preco_final": {
          "type": "number"
        },
        "tipo_preco": {
          "type": "string"
        },
        "data_inicio": {
          "type": "string",
          "format": "date"
        },
        "data_fim": {
          "type": "string",
          "format": "date"
        },
        "temporal_status": {
          "type": "string"
        },
        "mph_id": {
          "type": "string"
        }
      }
    }
  }
}