mirror of
https://github.com/hanzo-docs/docs.git
synced 2026-11-23 03:43:50 +00:00
hanzo.yaml's iam_ApiController.GetWebhooks requires `test_apiKey`; components.securitySchemes defines bearerAuth, BearerAuth, oauth2, apiKey, serviceKey and s3Auth, and not that. Every consumer looks the id up and then reads a property of it — schemes[id].deprecated in useAuthInputs, again in SecurityRequirement — so one line of a 58k-line document threw "Cannot read properties of undefined" out of a prerendered page and ended the whole export at 1510/6041 pages. parseSecurities is where a requirement becomes entries, so it is where the document stops being untrusted input: drop ids the document does not define, name the operation and the scheme in the warning, and nothing downstream has to re-check. An undefined scheme carries no credential to render or send, so dropping it is also what it means. The document bug is real and still wants fixing in hanzoai/openapi — this only stops it costing the site. Co-authored-by: Hanzo Dev <[email protected]>