a c+@s2ddlmZddlmZmZmZmZmZmZm Z ddl m Z ddl m Z mZmZz ddlZesbJddl mZWn"eyGdddeZYn0Gd d d eZGd d d eZGd ddeZGdddeZGdddeZGdddeZGdddeZGdddeZGdddeZGdddeZGdddeZGdd d eZGd!d"d"eZ Gd#d$d$eZ!Gd%d&d&eZ"Gd'd(d(e"Z#Gd)d*d*e"Z$Gd+d,d,eZ%Gd-d.d.eZ&Gd/d0d0eZ'Gd1d2d2eZ(Gd3d4d4eZ)Gd5d6d6eZ*Gd7d8d8eZ+Gd9d:d:eZ,Gd;d<dd>e+Z.Gd?d@d@e.Z/GdAdBdBeZ0GdCdDdDe0Z1GdEdFdFe0Z2GdGdHdHe0Z3GdIdJdJe0Z4GdKdLdLeZ5GdMdNdNe+Z6GdOdPdPe+Z7e e-e.e6e7e/fZ8GdQdRdReZ9GdSdTdTeZ:GdUdVdVeZ;e<e(<e <dS)W)Enum)AnyCallableDictIterableListOptionalUnion)logger)AnyUrl BaseModelFieldN)EmailStrc@s>eZdZeeedefdddZeeedddZ dS) r.)returnccs |jVdS)N)validate)clsrc/workspaces/shunt/resources/test-fastapi/venv/lib/python3.9/site-packages/fastapi/openapi/models.py__get_validators__szEmailStr.__get_validators__)vrcCstdt|S)Nzpemail-validator not installed, email fields will be treated as str. To install, run: pip install email-validator)r warningstr)rrrrrrszEmailStr.validateN) __name__ __module__ __qualname__ classmethodrrrrrrrrrrrsrc@sLeZdZUdZeeed<dZeeed<dZ ee ed<GdddZ dS)ContactNnameurlemailc@seZdZdZdS)zContact.ConfigallowNrrrextrarrrrConfig!sr#) rrrrrr__annotations__rr rrr#rrrrrs rc@s4eZdZUeed<dZeeed<GdddZdS)LicenserNrc@seZdZdZdS)zLicense.Configr Nr!rrrrr#)sr#) rrrrr$rrr r#rrrrr%%s r%c@sleZdZUeed<dZeeed<dZeeed<dZee ed<dZ ee ed<eed<Gdd d Z dS) InfotitleN descriptiontermsOfServicecontactlicenseversionc@seZdZdZdS)z Info.Configr Nr!rrrrr#5sr#) rrrrr$r(rr)r*rr+r%r#rrrrr&-s r&c@sHeZdZUdZeeeed<eed<dZeeed<GdddZ dS)ServerVariableNenumdefaultr(c@seZdZdZdS)zServerVariable.Configr Nr!rrrrr#>sr#) rrrr.rrrr$r(r#rrrrr-9s r-c@sTeZdZUeeefed<dZeeed<dZ ee ee fed<GdddZ dS)ServerrNr( variablesc@seZdZdZdS)z Server.Configr Nr!rrrrr#Gsr#) rrrr r rr$r(rr1rr-r#rrrrr0Bs r0c@s eZdZUeddZeed<dS) Reference$refaliasrefN)rrrr r6rr$rrrrr2Ks r2c@s.eZdZUeed<dZeeeefed<dS) DiscriminatorZ propertyNameNmapping)rrrrr$r8rrrrrrr7Os r7c@sleZdZUdZeeed<dZeeed<dZeeed<dZ ee ed<dZ ee ed<GdddZ dS) XMLNr namespaceprefix attributewrappedc@seZdZdZdS)z XML.Configr Nr!rrrrr#[sr#) rrrrrrr$r:r;r<boolr=r#rrrrr9Ts r9c@s4eZdZUdZeeed<eed<GdddZdS)ExternalDocumentationNr(rc@seZdZdZdS)zExternalDocumentation.Configr Nr!rrrrr#csr#) rrrr(rrr$r r#rrrrr?_s r?c@seZdZUedddZeeed<dZeeed<dZ ee ed<dZ ee ed<dZ ee ed<dZ ee ed <dZee ed <edd d Zeeed <edd d Zeeed<dZeeed<edd d Zeeed<edd d Zeeed<dZeeed<edd d Zeeed<edd d Zeeed<dZeeeed<dZeeeed<dZeeed<dZeeded<dZeeded<dZ eeded<edddZ!eded<dZ"ee#dedfed<dZ$ee%edfed<dZ&ee#de'efed<dZ(eeed <dZ)eeed!<dZ*eeed"<dZ+eeed#<dZ,ee-ed$<dZ.eeed%<dZ/eeed&<dZ0ee1ed'<dZ2ee3ed(<dZ4eeed)<dZ5eeed*<Gd+d,d,Z6dS)-SchemaNr3r/r5r6r' multipleOfmaximumexclusiveMaximumminimumexclusiveMinimumr)r/Zgte maxLength minLengthpatternmaxItemsminItems uniqueItems maxProperties minPropertiesrequiredr.typeallOfoneOfanyOfnotnot_items propertiesadditionalPropertiesr(formatr/nullable discriminatorreadOnly writeOnlyxml externalDocsexample deprecatedc@seZdZUdZeed<dS)z Schema.Configr r"N)rrrr"rr$rrrrr#s r#)7rrrr r6rrr$r'rBfloatrCrDrErFrGintrHrIrJrKrLr>rMrNrOrr.rrPrQrRrSrUrVr rWrrXr2r(rYr/rZr[r7r\r]r^r9r_r?r`rar#rrrrr@gsJ r@c@s\eZdZUdZeeed<dZeeed<dZee ed<dZ ee ed<GdddZ dS)ExampleNsummaryr(value externalValuec@seZdZdZdS)zExample.Configr Nr!rrrrr#sr#) rrrrerrr$r(rfrrgr r#rrrrrds rdc@seZdZdZdZdZdZdS)ParameterInTypequeryheaderpathcookieN)rrrrirjrkrlrrrrrhsrhc@s|eZdZUdZeeed<dZeeee de ffed<dZ eeed<dZ ee ed<dZee ed<Gdd d ZdS) EncodingN contentTypeHeaderheadersstyleexplode allowReservedc@seZdZdZdS)zEncoding.Configr Nr!rrrrr#sr#)rrrrnrrr$rprr r2rqrrr>rsr#rrrrrms  rmc@seZdZUedddZeeeefe d<dZ ee e d<dZ ee eeeeffe d<dZee eefe d<Gdd d ZdS) MediaTypeNschemarAschema_r`examplesencodingc@seZdZdZdS)zMediaType.Configr Nr!rrrrr#sr#)rrrr rvrr r@r2r$r`rrwrrrdrxrmr#rrrrrts   rtc@seZdZUdZeeed<dZeeed<dZ eeed<dZ eeed<dZ eeed<dZ eeed<e ddd Zeeeefed <dZeeed <dZeeeeeeffed <dZeeeefed <GdddZdS) ParameterBaseNr(rOrarqrrrsrurArvr`rwcontentc@seZdZdZdS)zParameterBase.Configr Nr!rrrrr#sr#)rrrr(rrr$rOr>rarqrrrsr rvr r@r2r`rrwrrdrzrtr#rrrrrys   ryc@s(eZdZUeed<eddZeed<dS) Parameterrinr4in_N)rrrrr$r r}rhrrrrr{s r{c@s eZdZdS)roN)rrrrrrrrosroc@sLeZdZUdZeeed<eeefed<dZ ee ed<GdddZ dS) RequestBodyNr(rzrOc@seZdZdZdS)zRequestBody.Configr Nr!rrrrr#sr#) rrrr(rrr$rrtrOr>r#rrrrr~s r~c@seZdZUdZeeed<dZeeed<dZee ee e effed<dZ ee e efed<dZ eeed<dZeeed<Gdd d ZdS) LinkN operationRef operationId parameters requestBodyr(serverc@seZdZdZdS)z Link.Configr Nr!rrrrr#sr#)rrrrrrr$rrrr rrr(rr0r#rrrrrs  rc@s|eZdZUeed<dZeeeee e ffed<dZ eeee fed<dZ eeeeee ffed<GdddZdS)Responser(Nrprzlinksc@seZdZdZdS)zResponse.Configr Nr!rrrrr#sr#)rrrrr$rprrr ror2rzrtrrr#rrrrrs   rc@s(eZdZUdZeeeed<dZeeed<dZ eeed<dZ ee ed<dZ eeed<dZ eeeeefed<dZeeeefed<eeeeeffed <dZeeeeeed feffed <dZeeed <dZeeeeeefed <dZeeeed<GdddZdS) OperationNtagsrer(r_rrr responsesPathItem callbacksrasecurityserversc@seZdZdZdS)zOperation.Configr Nr!rrrrr#sr#)rrrrrrrr$rer(r_r?rrr r{r2rr~rrrrrar>rrr0r#rrrrrs ( rc@seZdZUedddZeeed<dZeeed<dZ eeed<dZ ee ed<dZ ee ed<dZ ee ed <dZee ed <dZee ed <dZee ed <dZee ed <dZee ed<dZeeeed<dZeeeeefed<GdddZdS)rNr3rAr6rer(getputpostdeleteoptionsheadpatchtracerrc@seZdZdZdS)zPathItem.Configr Nr!rrrrr#sr#)rrrr r6rrr$rer(rrrrrrrrrrrr0rr r{r2r#rrrrrs rc@seZdZdZdZdZdZdS)SecuritySchemeTypeapiKeyhttpoauth2 openIdConnectN)rrrrrrrrrrrrsrc@s>eZdZUeddZeed<dZee ed<GdddZ dS) SecurityBaserPr4type_Nr(c@seZdZdZdS)zSecurityBase.Configr Nr!rrrrr#"sr#) rrrr rrr$r(rrr#rrrrrs rc@seZdZdZdZdZdS)APIKeyInrirjrlN)rrrrirjrlrrrrr&src@s6eZdZUeejddZeddZee d<e e d<dS)APIKeyrPr4r|r}rN) rrrr rrrr}rr$rrrrrr,s rc@s$eZdZUeejddZeed<dS)HTTPBaserPr4schemeN) rrrr rrrrr$rrrrr2s rc@s"eZdZUdZdZeeed<dS) HTTPBearerZbearerN bearerFormat)rrrrrrrr$rrrrr7s rc@s@eZdZUdZeeed<iZeeefed<GdddZ dS) OAuthFlowN refreshUrlscopesc@seZdZdZdS)zOAuthFlow.Configr Nr!rrrrr#@sr#) rrrrrrr$rrr#rrrrr<s rc@seZdZUeed<dS)OAuthFlowImplicitauthorizationUrlNrrrrr$rrrrrDs rc@seZdZUeed<dS)OAuthFlowPasswordtokenUrlNrrrrrrHs rc@seZdZUeed<dS)OAuthFlowClientCredentialsrNrrrrrrLs rc@seZdZUeed<eed<dS)OAuthFlowAuthorizationCoderrNrrrrrrPs rc@s\eZdZUdZeeed<dZeeed<dZ ee ed<dZ ee ed<GdddZ dS) OAuthFlowsNimplicitpasswordclientCredentialsauthorizationCodec@seZdZdZdS)zOAuthFlows.Configr Nr!rrrrr#[sr#)rrrrrrr$rrrrrrr#rrrrrUs rc@s$eZdZUeejddZeed<dS)OAuth2rPr4ZflowsN) rrrr rrrrr$rrrrr_s rc@s$eZdZUeejddZeed<dS) OpenIdConnectrPr4ZopenIdConnectUrlN) rrrr rrrrr$rrrrrds rc@sFeZdZUdZeeeeee ffe d<dZ eeeee e ffe d<dZ eeeeee ffe d<dZeeeeee ffe d<dZeeeeee ffe d<dZeeeeee ffe d<dZeeeeee ffe d<dZeeeeee ffe d <dZeeeeeeefe effe d <Gd d d ZdS) ComponentsNschemasrrrw requestBodiesrpsecuritySchemesrrc@seZdZdZdS)zComponents.Configr Nr!rrrrr#xsr#)rrrrrrrr r@r2r$rrrr{rwrdrr~rprorSecuritySchemerrrrrr#rrrrrls         *rc@sDeZdZUeed<dZeeed<dZeeed<GdddZ dS)TagrNr(r_c@seZdZdZdS)z Tag.Configr Nr!rrrrr#sr#) rrrrr$r(rr_r?r#rrrrr|s rc@seZdZUeed<eed<dZeee ed<e ee e e ffed<dZeeed<dZeee eeefed<dZeeeed<dZeeed <Gd d d ZdS) OpenAPIZopenapiinfoNrpaths componentsrrr_c@seZdZdZdS)zOpenAPI.Configr Nr!rrrrr#sr#)rrrrr$r&rrrr0rr rrrrrrrr_r?r#rrrrrs  r)=r.rtypingrrrrrrr Zfastapi.loggerr Zpydanticr r r Zemail_validatorr ImportErrorrrr%r&r-r0r2r7r9r?r@rdrhrmrtryr{ror~rrrrrrrrrrrrrrrrrrrrrrZupdate_forward_refsrrrrsh $       *