{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/conqueia-com/json-schema/conqueia-com-respuesta-busqueda-schema.json",
  "title": "RespuestaBusqueda",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/conqueia-com-openapi.yml#/components/schemas/RespuestaBusqueda",
  "type": "object",
  "required": [
    "consulta",
    "total",
    "devueltos",
    "resultados"
  ],
  "properties": {
    "consulta": {
      "type": "string"
    },
    "total": {
      "type": "integer"
    },
    "devueltos": {
      "type": "integer"
    },
    "resultados": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Resultado"
      }
    },
    "ayuda": {
      "type": "string"
    }
  },
  "$defs": {
    "Resultado": {
      "type": "object",
      "description": "Una ficha en una lista de resultados.",
      "required": [
        "tipo",
        "slug",
        "titulo",
        "resumen",
        "tema",
        "herramientas",
        "url",
        "url_texto",
        "origen"
      ],
      "properties": {
        "tipo": {
          "type": "string",
          "enum": [
            "caso",
            "skill",
            "app",
            "herramienta",
            "guia"
          ]
        },
        "slug": {
          "type": "string"
        },
        "titulo": {
          "type": "string"
        },
        "resumen": {
          "type": "string"
        },
        "tema": {
          "type": "string"
        },
        "herramientas": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "url": {
          "type": "string",
          "format": "uri"
        },
        "url_texto": {
          "type": "string",
          "format": "uri"
        },
        "origen": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    }
  }
}