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")
|
||||
@oneOf
|
||||
union ModuleType {
|
||||
normal: NormalModules,
|
||||
custom: CustomModule,
|
||||
}
|
||||
|
||||
@discriminator("type")
|
||||
union NormalModules {
|
||||
akmods: AkmodsModule,
|
||||
bling: BlingModule,
|
||||
brew: BrewModule,
|
||||
|
|
@ -106,7 +111,6 @@ union ModuleType {
|
|||
signing: SigningModule,
|
||||
systemd: SystemdModule,
|
||||
yafti: YaftiModule,
|
||||
custom: CustomModule,
|
||||
}
|
||||
|
||||
@discriminator("type")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue