Add toml frontmatter description to jsonschema

This commit is contained in:
Johannes Kirschbauer
2024-06-26 15:10:21 +02:00
parent 965fddd2f8
commit ee543a39d0
3 changed files with 33 additions and 34 deletions

View File

@@ -23,8 +23,7 @@
clanModuleFunctionSchemas = lib.mapAttrsFlatten (modulename: _: {
name = modulename;
# TODO: migrate to new toml format
# description = self.lib.modules.getShortDescription modulename;
description = self.lib.modules.getShortDescription modulename;
parameters = self.lib.jsonschema.parseOptions (optionsFromModule modulename);
}) clanModules;
in