Skip to content

Provide Bundle CUE schema (and others) as a .cue file for easier import #513

@bcbrockway

Description

@bcbrockway

Currently, the CUE schemas in ./api/v1alpha1 are defined as Go string constants (e.g. #Bundle is a BundleSchema go const in api/v1alpha1/bundle.go). This makes it difficult to import and reuse the schema directly in CUE projects, since cue get go only extracts Go struct types and not CUE schemas embedded as strings.

Would it be possible to provide the CUE schema as a first-class .cue file in the repo? This would make it much easier for CUE users to import and stay in sync with the official schema, and would help avoid manual copy-pasting or script-based extraction.

Thanks for considering!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions