Models

class spectree.models.BaseFile[source]

An uploaded file, will be assigned as the corresponding web framework’s file object.

class spectree.models.ExternalDocs[source]
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class spectree.models.InType[source]
__new__(value)
class spectree.models.SecureType[source]
__new__(value)
class spectree.models.SecurityScheme[source]

Named security scheme

model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class spectree.models.SecuritySchemeData[source]

Security scheme data https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#securitySchemeObject

model_config: ClassVar[ConfigDict] = {'validate_assignment': True, 'validate_by_alias': True, 'validate_by_name': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class spectree.models.Server[source]

Servers section of OAS

model_config: ClassVar[ConfigDict] = {'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class spectree.models.Tag[source]

OpenAPI tag object

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class spectree.models.ValidationError[source]

Model of a validation error response.

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class spectree.models.ValidationErrorElement[source]

Model of a validation error response element.

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].