Skip to content

Feature Request: Config to JsonSchema #7394

Description

@lhilgert9

What is the problem this feature would solve?

Currently, it's not possible to convert a config into a JSON schema. For example, in one of my apps, I use config files written in JSON, and a JSON schema would be useful for validation and autocomplete.

What is the feature you are proposing to solve the problem?

Add a method that converts a config into a JSON schema. Similar to Schema.toJsonSchemaDocument in Schema. Alternatively, you could also create a method that translates a config into a schema and then calls Schema.Schema.toJsonSchemaDocument.
It shouldn't be too much work, since the Config module is already largely based on Schema.

What alternatives have you considered?

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs ProposalThis issue needs a plan that clarifies the finer details of how it could be implemented.enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions