From ecc63ffe51f25fa61b6e8c728244e8b5a963f3f0 Mon Sep 17 00:00:00 2001 From: Richard Kojedzinszky Date: Wed, 9 Oct 2024 09:18:59 +0200 Subject: [PATCH] fix(openapi): add missing properties in Any --- src/middlewared/middlewared/schema/adaptable_schemas.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/middlewared/middlewared/schema/adaptable_schemas.py b/src/middlewared/middlewared/schema/adaptable_schemas.py index 7ff3fb8ac5938..e094f9cafab03 100644 --- a/src/middlewared/middlewared/schema/adaptable_schemas.py +++ b/src/middlewared/middlewared/schema/adaptable_schemas.py @@ -15,8 +15,8 @@ def to_json_schema(self, parent=None): {'type': 'string'}, {'type': 'integer'}, {'type': 'boolean'}, - {'type': 'object'}, - {'type': 'array'}, + {'type': 'object', 'properties': {}}, + {'type': 'array', 'items': []}, ], 'nullable': self.null, **self._to_json_schema_common(parent),