{
  "openapi": "3.1.0",
  "info": {
    "title": "Catálogo público Rhamos & Brito",
    "description": "Consulta de fichas técnicas. Disponibilidade, preços e transações ficam na loja e no atendimento.",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://rhamos-brito-tradicional.radarjacarepagua.chatgpt.site"
    }
  ],
  "paths": {
    "/catalogo.json": {
      "get": {
        "operationId": "listarFichas",
        "summary": "Ler o catálogo técnico",
        "responses": {
          "200": {
            "description": "Fichas publicadas com referências para o site, a fonte e a loja quando aplicável.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "schemaVersion",
                    "language",
                    "modelCount",
                    "models"
                  ],
                  "properties": {
                    "schemaVersion": {
                      "const": "1.0"
                    },
                    "site": {
                      "type": "string",
                      "format": "uri"
                    },
                    "language": {
                      "const": "pt-BR"
                    },
                    "environment": {
                      "enum": [
                        "review",
                        "production"
                      ]
                    },
                    "generatedAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "notice": {
                      "type": "string"
                    },
                    "modelCount": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "models": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "kind",
                          "code",
                          "name",
                          "category",
                          "url",
                          "specifications"
                        ],
                        "properties": {
                          "kind": {
                            "enum": [
                              "catalog-model",
                              "industrial-adhesive"
                            ]
                          },
                          "code": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "category": {
                            "type": "string"
                          },
                          "url": {
                            "type": "string",
                            "format": "uri"
                          },
                          "description": {
                            "type": "string"
                          },
                          "source": {
                            "type": "string",
                            "format": "uri"
                          },
                          "specifications": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "required": [
                                "label",
                                "value"
                              ],
                              "properties": {
                                "label": {
                                  "type": "string"
                                },
                                "value": {
                                  "type": "string"
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}
