{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/zertidox-com/json-schema/zertidox-com-catalogo-schema.json",
  "title": "Catalogo",
  "x-generated": "2026-11-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/zertidox-com-openapi.yml#/components/schemas/Catalogo",
  "type": "object",
  "properties": {
    "certificados": {
      "type": "array",
      "items": {
        "type": "object",
        "description": "A request type and the fields its `datos` object accepts.",
        "properties": {
          "tipo": {
            "type": "string"
          },
          "label": {
            "type": "string"
          },
          "modalidad": {
            "type": [
              "string",
              "null"
            ]
          },
          "requiereFirma": {
            "type": "boolean",
            "description": "The authorization needs the client’s handwritten signature, which the API does not collect: it cannot be paid with `pago: \"plan\"`."
          },
          "campos": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "nombre": {
                  "type": "string",
                  "description": "Key to use inside `datos`."
                },
                "label": {
                  "type": "string"
                },
                "tipo": {
                  "type": "string",
                  "description": "text, textarea, date, select, number…"
                },
                "requerido": {
                  "type": "boolean"
                },
                "opciones": {
                  "type": "array",
                  "items": {}
                },
                "oculto": {
                  "type": "boolean",
                  "description": "Filled by the web app; not sent by API clients."
                }
              }
            }
          }
        },
        "additionalProperties": true
      }
    }
  }
}