Esempio n. 1
0
 def __init__(self, openapi_version, schema_name_resolver, spec):
     self.openapi_version = OpenAPIVersion(openapi_version)
     self.schema_name_resolver = schema_name_resolver
     self.spec = spec
     self.init_attribute_functions()
     # Schema references
     self.refs = {}
Esempio n. 2
0
 def __init__(
     self, openapi_version, schema_name_resolver=default_get_definition_name
 ):
     self.openapi_version = OpenAPIVersion(openapi_version)
     # Schema references
     self.refs = {}
     self._schema_name_resolver = schema_name_resolver
Esempio n. 3
0
 def __init__(self, openapi_version, schema_name_resolver, spec):
     self.openapi_version = OpenAPIVersion(openapi_version)
     self.schema_name_resolver = schema_name_resolver
     self.spec = spec
     # Schema references
     self.refs = {}
     #  Field mappings
     self.field_mapping = DEFAULT_FIELD_MAPPING
Esempio n. 4
0
 def __init__(self, openapi_version):
     self.openapi_version = OpenAPIVersion(openapi_version)
     # Schema references
     self.refs = {}
     # Field mappings
     self.field_mapping = DEFAULT_FIELD_MAPPING