We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 08ed9ce commit 9bc663dCopy full SHA for 9bc663d
src/labthings/apispec/converter.py
@@ -6,9 +6,9 @@ class ExtendedOpenAPIConverter(OpenAPIConverter):
6
7
def init_attribute_functions(self, *args, **kwargs):
8
OpenAPIConverter.init_attribute_functions(self, *args, **kwargs)
9
- self.attribute_functions.append(self.bytes2json)
+ self.attribute_functions.append(self.jsonschema_type_mapping)
10
11
- def bytes2json(self, field, **kwargs):
+ def jsonschema_type_mapping(self, field, **kwargs):
12
ret = {}
13
if hasattr(field, "_jsonschema_type_mapping"):
14
schema = field._jsonschema_type_mapping()
0 commit comments