Validar security.txt
security-txt-validateValida un security.txt según RFC 9116: Contact y Expires obligatorios, campos conocidos, URIs https y firma PGP. Cuándo: hay que leer, construir o revisar con exactitud una URL, una cabecera HTTP, un token, una versión, un rango de IP, un documento HTML o Markdown o un archivo para agentes. No para: decidir si un agente puede acceder a una ruta según un robots.txt dado (robots-txt-check). Efectos secundarios: ninguno (solo lectura, sin red, sin estado guardado). Determinista: la misma entrada da la misma salida. Límites: entrada JSON de hasta 64 KB, 1 s por llamada, resultado de hasta 1 MB.
EN: Validates a security.txt file per RFC 9116: required Contact and a single Expires (in the future relative to as_of and ideally < 1 year away), known fields, https URIs, and whether it is PGP-signed. When: a URL, HTTP header, token, version string, IP range, HTML or Markdown document or agent-readiness file has to be parsed, built or checked exactly. [EN completo / full EN: inputSchema.description]
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| as_of | Yes | Reference instant ISO 8601 (string; required; up to 40 chars). | |
| security_txt | Yes | security.txt content (string; required). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| valid | No | ||
| errors | No | ||
| fields | No | ||
| signed | No | ||
| warnings | No |