fix: Seperate normal modules into a type discriminated union
This commit is contained in:
parent
3c2d5a7236
commit
27ff5d3bc5
1 changed files with 6 additions and 2 deletions
|
|
@ -87,8 +87,13 @@ model ModuleList {
|
||||||
}
|
}
|
||||||
|
|
||||||
@jsonSchema("module-v1.json")
|
@jsonSchema("module-v1.json")
|
||||||
@oneOf
|
|
||||||
union ModuleType {
|
union ModuleType {
|
||||||
|
normal: NormalModules,
|
||||||
|
custom: CustomModule,
|
||||||
|
}
|
||||||
|
|
||||||
|
@discriminator("type")
|
||||||
|
union NormalModules {
|
||||||
akmods: AkmodsModule,
|
akmods: AkmodsModule,
|
||||||
bling: BlingModule,
|
bling: BlingModule,
|
||||||
brew: BrewModule,
|
brew: BrewModule,
|
||||||
|
|
@ -106,7 +111,6 @@ union ModuleType {
|
||||||
signing: SigningModule,
|
signing: SigningModule,
|
||||||
systemd: SystemdModule,
|
systemd: SystemdModule,
|
||||||
yafti: YaftiModule,
|
yafti: YaftiModule,
|
||||||
custom: CustomModule,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@discriminator("type")
|
@discriminator("type")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue