Skip to content

Commit

Permalink
fix(openapi): fix Float json schema type
Browse files Browse the repository at this point in the history
  • Loading branch information
rkojedzinszky committed Oct 9, 2024
1 parent 2dec76e commit b72b0b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/middlewared/middlewared/schema/integer_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -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),
}

0 comments on commit b72b0b0

Please sign in to comment.