You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To aid local authoring of a security insights file, it would be beneficial to have a JSON schema document that can be referenced via a comment in the top of the YAML file so that authors can "shift-left" the discovery of any incorrect entries.
I would like to work on this. My plan is a genjsonschema make target that turns the cue2openapi output into a JSON Schema 2020-12 file, with $defs instead of components/schemas and SecurityInsights as the root, plus a CI step that validates the example files against it. It could then be published on the site per version, so a file can start with # yaml-language-server: $schema=.... This depends on #235, otherwise the email and URL patterns would reject valid files. @eddie-knight does that sound ok, and where would you want it hosted?
Activity
cvas22 commentedon Nov 21, 2026
I would like to work on this. My plan is a
genjsonschemamake target that turns thecue2openapioutput into a JSON Schema 2020-12 file, with$defsinstead ofcomponents/schemasandSecurityInsightsas the root, plus a CI step that validates the example files against it. It could then be published on the site per version, so a file can start with# yaml-language-server: $schema=.... This depends on #235, otherwise the email and URL patterns would reject valid files. @eddie-knight does that sound ok, and where would you want it hosted?