OpenAPI 模型(models)
¶
用於產生和驗證所產生 OpenAPI 的 OpenAPI Pydantic 模型。
fastapi.openapi.models ¶
BaseModelWithConfig ¶
Contact ¶
授權 (License) ¶
資訊 (Info) ¶
基底類別: BaseModelWithConfig
ServerVariable ¶
Server ¶
XML ¶
基底類別: BaseModelWithConfig
ExternalDocumentation ¶
Schema ¶
基底類別: BaseModelWithConfig
example 類別屬性
實例屬性
¶
example = None
在 OpenAPI 3.1.0 中已棄用,現在使用 JSON Schema 2020-12,但仍然支援。請改用 examples。
Example ¶
ParameterInType ¶
Encoding ¶
基底類別: BaseModelWithConfig
MediaType ¶
基底類別: BaseModelWithConfig
ParameterBase ¶
基底類別: BaseModelWithConfig
Parameter ¶
基底類別: ParameterBase
Header ¶
基底類別: ParameterBase
RequestBody ¶
連結 (Link) ¶
基底類別: BaseModelWithConfig
模型設定 (model_config) 類別屬性 (class-attribute)
實例屬性 (instance-attribute)
¶
model_config = {'extra': 'allow'}
回應 (Response) ¶
基底類別: BaseModelWithConfig
Operation ¶
基底類別: BaseModelWithConfig
PathItem ¶
基底類別: BaseModelWithConfig
SecuritySchemeType ¶
SecurityBase ¶
APIKeyIn ¶
APIKey ¶
HTTPBase ¶
OAuthFlow ¶
OAuthFlowImplicit ¶
OAuthFlowPassword ¶
OAuthFlowClientCredentials ¶
OAuthFlowAuthorizationCode ¶
OAuthFlows ¶
基底類別: BaseModelWithConfig
OAuth2 ¶
OpenIdConnect ¶
繼承自: SecurityBase
Components ¶
基底類別: BaseModelWithConfig
Tag ¶
OpenAPI ¶
基底類別: BaseModelWithConfig