Skip to content

Support generating schemas for specific languages #29

@negz

Description

@negz

What problem are you facing?

Both crossplane dependency update-cache and crossplane project build always generate schemas for all supported formats (Go, Python, KCL, and JSON Schema). In my project I only use the Python schemas — the rest are gitignored and unused. Generating all of them adds time to every invocation and leaves unused artifacts on disk.

This matters most when schema generation is part of an automated workflow (CI, a build system's generate step). Generating schemas I don't need slows down the loop and produces noise in the output.

How could Crossplane help solve your problem?

A way to limit schema generation to specific formats. This could be:

A CLI flag on both commands:

crossplane dependency update-cache --language python
crossplane project build --language python

Or a project-level field in crossplane-project.yaml, since which schema languages a project uses is a property of the project rather than the invocation:

spec:
  paths:
    schemaLanguages: [python]

Either way, the default (no flag / field omitted) should continue to generate all formats for backward compatibility.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions