Skip to content

Provide a Kcl schema export #2068

Description

@samuel-deal-tisseo

Feature Request

Is your feature request related to a problem? Please describe:

I'm creating my Iac tooling using kcl for my schema definition and source of truth.
I'm using a lot of python, and I would like to generate dataclasses from kcl schemas files in order to get a kind of string type for my scripts.

Describe the feature you'd like:
It would be nice to be able to run kcl export-schemas to generate json-schema.
To be able to generate those schemas from SDKs would be nice too.

Describe alternatives you've considered:
I tried the python SDK API().parse_program(...).ast_json tooling, but I don't want to rely on an unstable format. Also It feels like re-inventing the wheel when there is tools to ingest json-schemas

Teachability, Documentation, Adoption, Migration Strategy:
Documenting this feature should be nice

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesttoolIssues or PRs related to kcl tools inlucding format, lint, validation, document tools, etc.

    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