Skip to content

Add a JSON schema #173

Open
Open

Description

@martincostello

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.

Activity

  1. cvas22 commented on Nov 21, 2026

    @cvas22

    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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions