Skip to content

Feature Request: JSON Schema to validate k0sctl config #860

@vyas-n

Description

@vyas-n

Hey k0sctl maintainers!

Big fan of the project, I was wondering if you'd be in having a jsonschema (https://json-schema.org/) generated and checked into the repo for the k0sctl.yaml config file.

It has integrations with a lot of tools to validate the structure of the config file and can be used by IDE's for code-completion.

There's a couple of golang libraries / build tools that could generate this for you using the go structs within the codebase: https://json-schema.org/tools?query=&sortBy=name&sortOrder=ascending&groupBy=languages&licenses=&languages=&drafts=&toolingTypes=&environments=&showObsolete=false#go

Would this be of interest to implement?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions