fix: Separate models required for separate schema files

This commit is contained in:
Gerald Pinder 2025-01-31 18:28:33 -05:00
parent d343201724
commit be0201ce76
16 changed files with 96 additions and 32 deletions

View file

@ -1,9 +1,13 @@
import "@typespec/json-schema";
using TypeSpec.JsonSchema;
@jsonSchema("/modules/yafti-v1.json")
@jsonSchema("/modules/yafti-latest.json")
model YaftiModule {
model YaftiModuleLatest {
...YaftiModuleV1;
}
@jsonSchema("/modules/yafti-v1.json")
model YaftiModuleV1 {
/** The yafti module can be used to install yafti and set it up to run on first boot.
* https://blue-build.org/reference/modules/yafti/
*/