diff --git a/osbuild/meta.py b/osbuild/meta.py index 1b499415..3c083a6a 100644 --- a/osbuild/meta.py +++ b/osbuild/meta.py @@ -331,6 +331,10 @@ class ModuleInfo: type_id: {"enum": [self.name]}, **opts, } + if "mounts" not in schema["properties"]: + schema["properties"]["mounts"] = { + "type": "array" + } schema["required"] = [type_id] elif self.type in ("Device"): schema["additionalProperties"] = True