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 = {}
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
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
def __init__(self, openapi_version): self.openapi_version = OpenAPIVersion(openapi_version) # Schema references self.refs = {} # Field mappings self.field_mapping = DEFAULT_FIELD_MAPPING