refactor: make Module union named instead of alias, generate jsonschema

This commit is contained in:
xyny 2024-10-14 20:14:47 +03:00
parent 9b9ce841ff
commit b72a16e91a

View file

@ -95,7 +95,12 @@ model ModuleList {
modules: Array<Module>;
}
alias Module = RepoModule | CustomModule | ImportedModule;
@jsonSchema("module-v1.json")
union Module {
RepoModule,
CustomModule,
ImportedModule,
}
model ModuleDefaults {
/** Whether to disabling caching for this layer.