Module wrapipy.swagger
Pydantic models of Swagger 2.0 components.
Pydantic Models
For all pydantic.BaseModel child classes it holds that:
- You can create a new model by parsing and validating input data from keyword arguments.
- The initialisation raises
pydantic_core.ValidationErrorif the input data cannot be validated to form a valid model. selfis explicitly positional-only to allowselfas a field name.
Global variables
var EmailString-
A string expressing an email.
var MimeEntry-
A string expressing a MIME type.
var MimeList-
A list of MIME type strings.
var Number-
A float or an integer
var ObjectSubtype-
List of formats allowed in Swagger 2.0.
var ObjectType-
List of types allowed in Swagger 2.0.
var RE_EMAIL-
Regular expression matching an email address.
var RE_MIME_TYPE-
Regular expression matching MIME types.
var RE_RESPONSES-
Regular expression matching a response code.
var RE_URL-
Regular expression matching a URL.
var ResponseString-
A string expressing a response code.
var Schemes-
The set of schemes allowed in Swagger 2.0.
var SecurityRequirement-
A security requirement entry.
var URLString-
A string expressing a URL.
Classes
class HasDesc-
Expand source code
class HasDesc(BaseModel): """A model with an optional `description` attribute.""" __pdoc__["HasDesc.__init__"] = _opt_attr_model("description") description: Optional[str] = Field(default=None) __pdoc__["HasDesc.description"] = "Description." __pdoc__["HasDesc.model_config"] = FalseA model with an optional
descriptionattribute.Ancestors
- pydantic.main.BaseModel
Subclasses
- SwaggerExternalDocs
- SwaggerHeader
- SwaggerInfo
- SwaggerOperation
- SwaggerParameter
- SwaggerResponse
- SwaggerSchema
- SwaggerSecurityScheme
- SwaggerTag
Class variables
var description : str | None-
Description.
class HasExternalDocs-
Expand source code
class HasExternalDocs(BaseModel): """HasExternalDocs. """ __pdoc__["HasExternalDocs.__init__"] = _opt_attr_model("external_docs") external_docs: Optional[SwaggerExternalDocs] = Field( default=None, alias="externalDocs" ) __pdoc__["HasExternalDocs.external_docs"] = _aliased("externalDocs") __pdoc__["HasExternalDocs.model_config"] = FalseA model with an optional
external_docsattribute.Ancestors
- pydantic.main.BaseModel
Subclasses
Class variables
var external_docs : SwaggerExternalDocs | None-
The field name is
externalDocsin Swagger.
class HasName-
Expand source code
class HasName(BaseModel): """A model with an optional `name` attribute.""" __pdoc__["HasName.__init__"] = _opt_attr_model("name") name: Optional[str] = Field(default=None) __pdoc__["HasName.name"] = "Name." __pdoc__["HasName.model_config"] = FalseA model with an optional
nameattribute.Ancestors
- pydantic.main.BaseModel
Subclasses
Class variables
var name : str | None-
Name.
class HasRef-
Expand source code
class HasRef(BaseModel): """A model with an optional `ref` attribute.""" __pdoc__["HasRef.__init__"] = _opt_attr_model("ref") ref: Optional[str] = Field(alias="$ref", default=None) __pdoc__["HasRef.ref"] = f"The name of the referenced object. {_aliased('$ref')}" __pdoc__["HasRef.model_config"] = FalseA model with an optional
refattribute.Ancestors
- pydantic.main.BaseModel
Subclasses
Class variables
var ref : str | None-
The name of the referenced object.
The field name is
$refin Swagger.
class HasSchema-
Expand source code
class HasSchema(BaseModel): """A model with an optional `schema` attribute.""" __pdoc__["HasSchema.__init__"] = _opt_attr_model("schema_") schema_: Optional[Union[SwaggerSchema, SwaggerReference]] = Field( default=None, alias="schema" ) __pdoc__["HasSchema.schema_"] = ( "A reference (`SwaggerReference`) to a schema object or the schema object (`SwaggerSchema`)." + _aliased("schema") ) __pdoc__["HasSchema.model_config"] = FalseA model with an optional
schema_attribute.Ancestors
- pydantic.main.BaseModel
Subclasses
Class variables
var schema_ : SwaggerSchema | SwaggerReference | None-
A reference (
SwaggerReference) to a schema object or the schema object (SwaggerSchema).The field name is
schemain Swagger.
class HasTitle-
Expand source code
class HasTitle(BaseModel): """A model with an optional `title` attribute.""" __pdoc__["HasTitle.__init__"] = _opt_attr_model("title") title: Optional[str] = Field(default=None) __pdoc__["HasTitle.title"] = "Title." __pdoc__["HasTitle.model_config"] = FalseA model with an optional
titleattribute.Ancestors
- pydantic.main.BaseModel
Subclasses
Class variables
var title : str | None-
Title.
class HasTypes-
Expand source code
class HasTypes(BaseModel): """A model with a `type` attribute and an optional `format` attribute.""" __pdoc__["HasTypes.__init__"] = ( "A model with a `type` attribute and an optional `format` attribute." ) type_: ObjectType = Field(alias="type", default="string") __pdoc__["HasTypes.type_"] = f"The data type. {_aliased('type')}" format_: Optional[ObjectSubtype] = Field(alias="format", default=None) __pdoc__["HasTypes.format_"] = f"The data format. {_aliased('format')}" __pdoc__["HasTypes.model_config"] = FalseA model with a
typeattribute and an optionalformatattribute.Ancestors
- pydantic.main.BaseModel
Subclasses
Class variables
var format_ : Literal['int32', 'int64', 'float', 'double', 'byte', 'binary', 'date', 'dateTime', 'password'] | None-
The data format.
The field name is
formatin Swagger. var type_ : Literal['string', 'number', 'integer', 'boolean', 'array', 'object', 'file']-
The data type.
The field name is
typein Swagger.
class HasURL-
Expand source code
class HasURL(BaseModel): """A model with an optional `url` attribute.""" __pdoc__["HasURL.__init__"] = _opt_attr_model("url") url: Optional[URLString] = Field(default=None) __pdoc__["HasURL.url"] = "URL." __pdoc__["HasURL.model_config"] = FalseA model with an optional
urlattribute.Ancestors
- pydantic.main.BaseModel
Subclasses
Class variables
var url : str | None-
URL.
class SwaggerContact-
Expand source code
class SwaggerContact(HasURL, HasName): """A Pydantic representation of Swagger's Contact Object.""" __pdoc__["SwaggerContact.__init__"] = _pydantic("Contact") email: Optional[EmailString] = Field(default=None) __pdoc__["SwaggerContact.email"] = " " __pdoc__["SwaggerContact.model_config"] = FalseA Pydantic representation of Swagger's Contact Object.
Ancestors
Class variables
var email : str | None
class SwaggerDoc-
Expand source code
class SwaggerDoc(HasExternalDocs): """A Pydantic representation of Swagger 2.0.""" __pdoc__["SwaggerDoc.__init__"] = ( "A Pydantic representation of [Swagger 2.0](https://swagger.io/specification/v2/)." ) swagger: str = Field(default="2.0") __pdoc__["SwaggerDoc.swagger"] = ( 'The Swagger version. Should be `"2.0"` as others were not tested.' ) info: SwaggerInfo = Field(default=SwaggerInfo()) __pdoc__["SwaggerDoc.info"] = " " host: Optional[str] = Field(default=None) __pdoc__["SwaggerDoc.host"] = "The host without the protocol indication." base_path: Optional[str] = Field(alias="basePath", default=None) __pdoc__["SwaggerDoc.base_path"] = ( "Path to be added after the host for each request of every endpoint." + _aliased("basePath") ) schemes: Schemes = Field(default=["http"]) __pdoc__["SwaggerDoc.schemes"] = " " consumes: MimeList = Field(default=None) __pdoc__["SwaggerDoc.consumes"] = " " produces: MimeList = Field(default=None) __pdoc__["SwaggerDoc.produces"] = " " paths: Dict[str, SwaggerPath] = Field(default={}) __pdoc__["SwaggerDoc.paths"] = " " definitions: Optional[Dict[str, SwaggerSchema]] = Field(default=None) __pdoc__["SwaggerDoc.definitions"] = " " parameters: Optional[Dict[str, SwaggerParameter]] = Field(default=None) __pdoc__["SwaggerDoc.parameters"] = " " responses: Optional[Union[Dict[str, SwaggerResponse], SwaggerReference]] = Field( default=None ) __pdoc__["SwaggerDoc.responses"] = " " security_definitions: Optional[Dict[str, SwaggerSecurityScheme]] = Field( default=None, alias="securityDefinitions" ) __pdoc__["SwaggerDoc.security_definitions"] = _aliased("securityDefinitions") security: Optional[SecurityRequirement] = Field(default=None) __pdoc__["SwaggerDoc.security"] = " " tags: Optional[List[SwaggerTag]] = Field(default=None) __pdoc__["SwaggerDoc.tags"] = " " __pdoc__["SwaggerDoc.model_config"] = FalseA Pydantic representation of Swagger 2.0.
Ancestors
- HasExternalDocs
- pydantic.main.BaseModel
Class variables
var base_path : str | None-
Path to be added after the host for each request of every endpoint.
The field name is
basePathin Swagger. var consumes : List[str]var definitions : Dict[str, SwaggerSchema] | Nonevar host : str | None-
The host without the protocol indication.
var info : SwaggerInfovar parameters : Dict[str, SwaggerParameter] | Nonevar paths : Dict[str, SwaggerPath]var produces : List[str]var responses : Dict[str, SwaggerResponse] | SwaggerReference | Nonevar schemes : List[Literal['http', 'https', 'ws', 'wss']]var security : Dict[str, List[str]] | Nonevar security_definitions : Dict[str, SwaggerSecurityScheme] | None-
The field name is
securityDefinitionsin Swagger. var swagger : str-
The Swagger version. Should be
"2.0"as others were not tested.
class SwaggerExternalDocs-
Expand source code
class SwaggerExternalDocs(HasURL, HasDesc): """A Pydantic representation of Swagger's External Documentation Object.""" __pdoc__["SwaggerExternalDocs.__init__"] = _pydantic("External Documentation") __pdoc__["SwaggerExternalDocs.model_config"] = FalseA Pydantic representation of Swagger's External Documentation Object.
Ancestors
class SwaggerHeader-
Expand source code
class SwaggerHeader(SwaggerItems, HasDesc): """A Pydantic representation of Swagger's Header Object.""" __pdoc__["SwaggerHeader.__init__"] = _pydantic("Header") __pdoc__["SwaggerHeader.model_config"] = FalseA Pydantic representation of Swagger's Header Object.
Ancestors
- SwaggerItems
- SwaggerItem
- HasTypes
- HasDesc
- pydantic.main.BaseModel
class SwaggerInfo-
Expand source code
class SwaggerInfo(HasDesc, HasTitle): """A Pydantic representation of Swagger's Info Object.""" __pdoc__["SwaggerInfo.__init__"] = _pydantic("Info") terms: Optional[str] = Field(alias="termsOfService", default=None) __pdoc__["SwaggerInfo.terms"] = _aliased("termsOfService") contact: Optional[SwaggerContact] = Field(default=None) __pdoc__["SwaggerInfo.contact"] = " " license_: Optional[SwaggerLicense] = Field(alias="license", default=None) __pdoc__["SwaggerInfo.license_"] = _aliased("license") version: str = Field(default="1.0.0") __pdoc__["SwaggerInfo.version"] = " " __pdoc__["SwaggerInfo.model_config"] = FalseA Pydantic representation of Swagger's Info Object.
Ancestors
Class variables
var contact : SwaggerContact | Nonevar license_ : SwaggerLicense | None-
The field name is
licensein Swagger. var terms : str | None-
The field name is
termsOfServicein Swagger. var version : str
class SwaggerItem-
Expand source code
class SwaggerItem(HasTypes): """A model of item-related fields in Swagger shared by Swagger's Items Object, Schema Object, Parameter Object, and Header Object. """ __pdoc__["SwaggerItem.__init__"] = ( f"A model of item-related fields in Swagger shared by {_swagger_link('Items')}, " + f"{_swagger_link('Schema')}, {_swagger_link('Parameter')}, and {_swagger_link('Header')}." ) default: Any = Field(default=None) __pdoc__["SwaggerItem.default"] = " " maximum: Optional[Number] = Field(default=None) __pdoc__["SwaggerItem.maximum"] = " " exclusive_maximum: Optional[bool] = Field(alias="exclusiveMaximum", default=None) __pdoc__["SwaggerItem.exclusive_maximum"] = _aliased("exclusiveMaximum") minimum: Optional[Number] = Field(default=None) __pdoc__["SwaggerItem.minimum"] = " " exclusive_minimum: Optional[bool] = Field(alias="exclusiveMinimum", default=None) __pdoc__["SwaggerItem.exclusive_minimum"] = _aliased("exclusiveMinimum") max_length: Optional[int] = Field(alias="maxLength", default=None) __pdoc__["SwaggerItem.max_length"] = _aliased("maxLength") min_length: Optional[int] = Field(alias="minLength", default=None) __pdoc__["SwaggerItem.min_length"] = _aliased("minLength") pattern: Optional[str] = Field(default=None) __pdoc__["SwaggerItem.pattern"] = " " max_items: Optional[int] = Field(alias="maxItems", default=None) __pdoc__["SwaggerItem.max_items"] = _aliased("maxItems") min_items: Optional[int] = Field(alias="minItems", default=None) __pdoc__["SwaggerItem.min_items"] = _aliased("minItems") unique_items: Optional[bool] = Field(alias="uniqueItems", default=None) __pdoc__["SwaggerItem.unique_items"] = _aliased("uniqueItems") enum: Optional[List] = Field(default=None) __pdoc__["SwaggerItem.enum"] = " " multiple: Optional[Number] = Field(alias="multipleOf", default=None) __pdoc__["SwaggerItem.multiple"] = _aliased("multipleOf") items: Optional[SwaggerItems] = Field(default=None) __pdoc__["SwaggerItem.items"] = " " __pdoc__["SwaggerItem.model_config"] = FalseA model of item-related fields in Swagger shared by Swagger's Items Object, Swagger's Schema Object, Swagger's Parameter Object, and Swagger's Header Object.
Ancestors
- HasTypes
- pydantic.main.BaseModel
Subclasses
Class variables
var default : Anyvar enum : List | Nonevar exclusive_maximum : bool | None-
The field name is
exclusiveMaximumin Swagger. var exclusive_minimum : bool | None-
The field name is
exclusiveMinimumin Swagger. var items : SwaggerItems | Nonevar max_items : int | None-
The field name is
maxItemsin Swagger. var max_length : int | None-
The field name is
maxLengthin Swagger. var maximum : int | float | Nonevar min_items : int | None-
The field name is
minItemsin Swagger. var min_length : int | None-
The field name is
minLengthin Swagger. var minimum : int | float | Nonevar multiple : int | float | None-
The field name is
multipleOfin Swagger. var pattern : str | Nonevar unique_items : bool | None-
The field name is
uniqueItemsin Swagger.
class SwaggerItems-
Expand source code
class SwaggerItems(SwaggerItem): """A Pydantic representation of Swagger's Items Object.""" __pdoc__["SwaggerItems.__init__"] = _pydantic("Items") collection_format: Literal["csv", "ssv", "tsv", "pipes", "multi"] = Field( default="csv", alias="collectionFormat" ) __pdoc__["SwaggerItems.collection_format"] = _aliased("collectionFormat") __pdoc__["SwaggerItems.model_config"] = FalseA Pydantic representation of Swagger's Items Object.
Ancestors
- SwaggerItem
- HasTypes
- pydantic.main.BaseModel
Subclasses
Class variables
var collection_format : Literal['csv', 'ssv', 'tsv', 'pipes', 'multi']-
The field name is
collectionFormatin Swagger.
class SwaggerLicense-
Expand source code
class SwaggerLicense(HasURL, HasName): """A Pydantic representation of Swagger's License Object.""" __pdoc__["SwaggerLicense.__init__"] = _pydantic("License") __pdoc__["SwaggerLicense.model_config"] = FalseA Pydantic representation of Swagger's License Object.
Ancestors
class SwaggerOperation-
Expand source code
class SwaggerOperation(HasDesc, HasExternalDocs): """A Pydantic representation of Swagger's Operation Object.""" __pdoc__["SwaggerOperation.__init__"] = _pydantic("Operation") responses: Union[ Dict[ResponseString, SwaggerResponse], SwaggerReference, ] __pdoc__["SwaggerOperation.responses"] = " " tags: Optional[List[str]] = Field(default=None) __pdoc__["SwaggerOperation.tags"] = " " summary: Optional[str] = Field(default=None) __pdoc__["SwaggerOperation.summary"] = " " operation_id: Optional[str] = Field(alias="operationId", default=None) __pdoc__["SwaggerOperation.operation_id"] = _aliased("operationId") consumes: Optional[MimeList] = Field(default=None) __pdoc__["SwaggerOperation.consumes"] = " " produces: Optional[MimeList] = Field(default=None) __pdoc__["SwaggerOperation.produces"] = " " parameters: Optional[List[SwaggerParameter]] = Field(default=None) __pdoc__["SwaggerOperation.parameters"] = " " schemes: Optional[Schemes] = Field(default=None) __pdoc__["SwaggerOperation.schemes"] = " " deprecated: bool = Field(default=False) __pdoc__["SwaggerOperation.deprecated"] = " " security: Optional[SecurityRequirement] = Field(default=None) __pdoc__["SwaggerOperation.security"] = " " __pdoc__["SwaggerOperation.model_config"] = FalseA Pydantic representation of Swagger's Operation Object.
Ancestors
- HasDesc
- HasExternalDocs
- pydantic.main.BaseModel
Class variables
var consumes : List[str] | Nonevar deprecated : boolvar operation_id : str | None-
The field name is
operationIdin Swagger. var parameters : List[SwaggerParameter] | Nonevar produces : List[str] | Nonevar responses : Dict[str, SwaggerResponse] | SwaggerReferencevar schemes : List[Literal['http', 'https', 'ws', 'wss']] | Nonevar security : Dict[str, List[str]] | Nonevar summary : str | None
class SwaggerParameter-
Expand source code
class SwaggerParameter(HasDesc, HasName, HasSchema, SwaggerItems): """A Pydantic representation of Swagger's Parameter Object.""" __pdoc__["SwaggerParameter.__init__"] = _pydantic("Parameter") in_: Literal["query", "header", "path", "formData", "body"] = Field( alias="in", default="query" ) __pdoc__["SwaggerParameter.in_"] = _aliased("in") required: bool = Field(default=False) __pdoc__["SwaggerParameter.required"] = " " allow_empty: bool = Field(default=False, alias="allowEmptyValue") __pdoc__["SwaggerParameter.allow_empty"] = _aliased("allowEmptyValue") __pdoc__["SwaggerParameter.model_config"] = FalseA Pydantic representation of Swagger's Parameter Object.
Ancestors
- HasDesc
- HasName
- HasSchema
- SwaggerItems
- SwaggerItem
- HasTypes
- pydantic.main.BaseModel
Class variables
var allow_empty : bool-
The field name is
allowEmptyValuein Swagger. var in_ : Literal['query', 'header', 'path', 'formData', 'body']-
The field name is
inin Swagger. var required : bool
class SwaggerPath-
Expand source code
class SwaggerPath(HasRef): """A Pydantic representation of Swagger's Paths Object as `Dict[str, SwaggerPath]`.""" __pdoc__["SwaggerPath.__init__"] = ( f"A Pydantic representation of {_swagger_link('Paths')} as `Dict[str, SwaggerPath]`." ) get: Optional[SwaggerOperation] = Field(default=None) __pdoc__["SwaggerPath.get"] = " " put: Optional[SwaggerOperation] = Field(default=None) __pdoc__["SwaggerPath.put"] = " " post: Optional[SwaggerOperation] = Field(default=None) __pdoc__["SwaggerPath.post"] = " " delete: Optional[SwaggerOperation] = Field(default=None) __pdoc__["SwaggerPath.delete"] = " " options: Optional[SwaggerOperation] = Field(default=None) __pdoc__["SwaggerPath.options"] = " " head: Optional[SwaggerOperation] = Field(default=None) __pdoc__["SwaggerPath.head"] = " " patch: Optional[SwaggerOperation] = Field(default=None) __pdoc__["SwaggerPath.patch"] = " " parameters: Optional[List[Union[SwaggerReference, SwaggerParameter]]] = Field( default=None ) __pdoc__["SwaggerPath.parameters"] = " " __pdoc__["SwaggerPath.model_config"] = FalseA Pydantic representation of Swagger's Paths Object as
Dict[str, SwaggerPath].Ancestors
- HasRef
- pydantic.main.BaseModel
Class variables
var delete : SwaggerOperation | Nonevar get : SwaggerOperation | Nonevar head : SwaggerOperation | Nonevar options : SwaggerOperation | Nonevar parameters : List[SwaggerReference | SwaggerParameter] | Nonevar patch : SwaggerOperation | Nonevar post : SwaggerOperation | Nonevar put : SwaggerOperation | None
class SwaggerReference-
Expand source code
class SwaggerReference(HasRef): """A Pydantic representation of Swagger's Reference Object.""" __pdoc__["SwaggerReference.__init__"] = _pydantic("Reference") __pdoc__["SwaggerReference.model_config"] = FalseA Pydantic representation of Swagger's Reference Object.
Ancestors
- HasRef
- pydantic.main.BaseModel
class SwaggerResponse-
Expand source code
class SwaggerResponse(HasDesc, HasSchema): """A Pydantic representation of Swagger's Response Object.""" __pdoc__["SwaggerResponse.__init__"] = _pydantic("Response") headers: Optional[Dict[str, SwaggerHeader]] = Field(default=None) __pdoc__["SwaggerResponse.headers"] = " " examples: Optional[Dict[MimeEntry, Any]] = Field(default=None) __pdoc__["SwaggerResponse.examples"] = " " __pdoc__["SwaggerResponse.model_config"] = FalseA Pydantic representation of Swagger's Response Object.
Ancestors
Class variables
var examples : Dict[str, Any] | Nonevar headers : Dict[str, SwaggerHeader] | None
class SwaggerSchema-
Expand source code
class SwaggerSchema(SwaggerItem, HasDesc, HasTitle, HasRef, HasExternalDocs): """A Pydantic representation of Swagger's Schema Object.""" __pdoc__["SwaggerSchema.__init__"] = _pydantic("Schema") max_properties: Optional[Number] = Field(alias="maxProperties", default=None) __pdoc__["SwaggerSchema.max_properties"] = _aliased("maxProperties") min_properties: Optional[Number] = Field(alias="minProperties", default=None) __pdoc__["SwaggerSchema.min_properties"] = _aliased("minProperties") required: bool = Field(default=False) __pdoc__["SwaggerSchema.required"] = " " all_of: Optional[List[SwaggerSchema]] = Field(default=None) __pdoc__["SwaggerSchema.all_of"] = " " properties: Optional[Dict[str, SwaggerSchema]] = Field(default=None) __pdoc__["SwaggerSchema.properties"] = " " additional_properties: Optional[SwaggerSchema] = Field( default=None, alias="additionalProperties" ) __pdoc__["SwaggerSchema.additional_properties"] = _aliased("additionalProperties") discriminator: Optional[str] = Field(default=None) __pdoc__["SwaggerSchema.discriminator"] = " " read_only: bool = Field(default=False, alias="readOnly") __pdoc__["SwaggerSchema.read_only"] = _aliased("readOnly") xml: Optional[SwaggerXML] = Field(default=None) __pdoc__["SwaggerSchema.xml"] = " " example: Any = Field(default=None) __pdoc__["SwaggerSchema.example"] = " " __pdoc__["SwaggerSchema.model_config"] = FalseA Pydantic representation of Swagger's Schema Object.
Ancestors
- SwaggerItem
- HasTypes
- HasDesc
- HasTitle
- HasRef
- HasExternalDocs
- pydantic.main.BaseModel
Class variables
var additional_properties : SwaggerSchema | None-
The field name is
additionalPropertiesin Swagger. var all_of : List[SwaggerSchema] | Nonevar discriminator : str | Nonevar example : Anyvar max_properties : int | float | None-
The field name is
maxPropertiesin Swagger. var min_properties : int | float | None-
The field name is
minPropertiesin Swagger. var properties : Dict[str, SwaggerSchema] | Nonevar read_only : bool-
The field name is
readOnlyin Swagger. var required : boolvar xml : SwaggerXML | None
class SwaggerSecurityScheme-
Expand source code
class SwaggerSecurityScheme(HasDesc, HasName): """A Pydantic representation of Swagger's Security Scheme Object.""" __pdoc__["SwaggerSecurityScheme.__init__"] = _pydantic("Security Scheme") type_: str = Field(alias="type") __pdoc__["SwaggerSecurityScheme.type_"] = _aliased("type") in_: Literal["query", "header"] = Field(alias="in", default="query") __pdoc__["SwaggerSecurityScheme.in_"] = _aliased("in") flow: Literal["implicit", "password", "application", "accessCode"] = Field( default="implicit" ) __pdoc__["SwaggerSecurityScheme.flow"] = " " authorization_url: Optional[str] = Field(alias="authorizationUrl", default=None) __pdoc__["SwaggerSecurityScheme.authorization_url"] = _aliased("authorizationUrl") token_url: Optional[str] = Field(alias="tokenUrl", default=None) __pdoc__["SwaggerSecurityScheme.token_url"] = _aliased("tokenUrl") scopes: Dict[str, str] = Field(default={}) __pdoc__["SwaggerSecurityScheme.scopes"] = " " __pdoc__["SwaggerSecurityScheme.model_config"] = FalseA Pydantic representation of Swagger's Security Scheme Object.
Ancestors
Class variables
-
The field name is
authorizationUrlin Swagger. var flow : Literal['implicit', 'password', 'application', 'accessCode']var in_ : Literal['query', 'header']-
The field name is
inin Swagger. var scopes : Dict[str, str]var token_url : str | None-
The field name is
tokenUrlin Swagger. var type_ : str-
The field name is
typein Swagger.
-
class SwaggerTag-
Expand source code
class SwaggerTag(HasDesc, HasName, HasExternalDocs): """A Pydantic representation of Swagger's Tag Object.""" __pdoc__["SwaggerTag.__init__"] = _pydantic("Tag") __pdoc__["SwaggerTag.model_config"] = FalseA Pydantic representation of Swagger's Tag Object.
Ancestors
- HasDesc
- HasName
- HasExternalDocs
- pydantic.main.BaseModel
class SwaggerXML-
Expand source code
class SwaggerXML(HasName): """A Pydantic representation of Swagger's XML Object.""" __pdoc__["SwaggerXML.__init__"] = _pydantic("XML") namespace: Optional[str] = Field(default=None) __pdoc__["SwaggerXML.namespace"] = " " prefix: Optional[str] = Field(default=None) __pdoc__["SwaggerXML.prefix"] = " " attribute: bool = Field(default=False) __pdoc__["SwaggerXML.attribute"] = " " wrapped: bool = Field(default=False) __pdoc__["SwaggerXML.wrapped"] = " " __pdoc__["SwaggerXML.model_config"] = FalseA Pydantic representation of Swagger's XML Object.
Ancestors
- HasName
- pydantic.main.BaseModel
Class variables
var attribute : boolvar namespace : str | Nonevar prefix : str | Nonevar wrapped : bool