From b72b0b040c506e5682a53c21fdf287ad64a8e0c6 Mon Sep 17 00:00:00 2001 From: Richard Kojedzinszky Date: Wed, 9 Oct 2024 09:33:55 +0200 Subject: [PATCH] fix(openapi): fix Float json schema type --- src/middlewared/middlewared/schema/integer_schema.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/middlewared/middlewared/schema/integer_schema.py b/src/middlewared/middlewared/schema/integer_schema.py index 71a21759e625a..3f40042641e5f 100644 --- a/src/middlewared/middlewared/schema/integer_schema.py +++ b/src/middlewared/middlewared/schema/integer_schema.py @@ -56,6 +56,6 @@ def clean(self, value): def to_json_schema(self, parent=None): return { - 'type': ['float', 'null'] if self.null else 'float', + 'type': ['number', 'null'] if self.null else 'number', **self._to_json_schema_common(parent), }