Skip to content

Commit 9bc663d

Browse files
author
Joel Collins
committed
Renamed to jsonschema_type_mapping
1 parent 08ed9ce commit 9bc663d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/labthings/apispec/converter.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ class ExtendedOpenAPIConverter(OpenAPIConverter):
66

77
def init_attribute_functions(self, *args, **kwargs):
88
OpenAPIConverter.init_attribute_functions(self, *args, **kwargs)
9-
self.attribute_functions.append(self.bytes2json)
9+
self.attribute_functions.append(self.jsonschema_type_mapping)
1010

11-
def bytes2json(self, field, **kwargs):
11+
def jsonschema_type_mapping(self, field, **kwargs):
1212
ret = {}
1313
if hasattr(field, "_jsonschema_type_mapping"):
1414
schema = field._jsonschema_type_mapping()

0 commit comments

Comments
 (0)