Skip to content

Generated Go types will lose omitempty on project after the schema change in security-insights#236 #80

Backlog

Description

@cvas22

ossf/security-insights#236 makes project required unless project-si-source is set, using a conditional project! in spec/schema.cue. cue exp gengotypes reads that as always required, so the generated Project field loses omitempty.

When the types here are regenerated from the new schema, child files would start getting a project key written out. Per the review on #236, the @go optional attributes don't change that, and splitting the rules into a separate definition does but would need parser changes. I haven't run the generator myself.

Opening this so it's tracked before the next regeneration, as suggested on #236.

Activity

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