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
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.toJsonSchemaDocumentin Schema. Alternatively, you could also create a method that translates a config into a schema and then callsSchema.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