Skip to content

Ability to generate JsonSchema from specific path in a module #1977

@maulik13

Description

@maulik13

Enhancement

We use KCL configuration and schemas as our source of truth. We want to build tooling and user interfaces to be able to configure some of this configuration generation based on KCL. This requires us to generate JsonSchema that can be used by for example Golang or Nodejs tooling to provide forms/inputs and validate them.

The current kcl doc gen generates allows generating OpenApi schema for an entire module. This however leads to generating a single huge file with everything. We would like to generate JsonSchema for only specific kcl files for example in our api folder. These will then be published for ingesting in other tooling.

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