Adding upstream version 0.5.1.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
303fa6e9d8
commit
97e6d74bac
110 changed files with 12006 additions and 0 deletions
47
openapi_pydantic/v3/v3_1/oauth_flows.py
Normal file
47
openapi_pydantic/v3/v3_1/oauth_flows.py
Normal file
|
@ -0,0 +1,47 @@
|
|||
from typing import Optional
|
||||
|
||||
from pydantic import BaseModel
|
||||
|
||||
from openapi_pydantic.compat import PYDANTIC_V2, ConfigDict, Extra
|
||||
|
||||
from .oauth_flow import OAuthFlow
|
||||
|
||||
|
||||
class OAuthFlows(BaseModel):
|
||||
"""
|
||||
Allows configuration of the supported OAuth Flows.
|
||||
"""
|
||||
|
||||
implicit: Optional[OAuthFlow] = None
|
||||
"""
|
||||
Configuration for the OAuth Implicit flow
|
||||
"""
|
||||
|
||||
password: Optional[OAuthFlow] = None
|
||||
"""
|
||||
Configuration for the OAuth Resource Owner Password flow
|
||||
"""
|
||||
|
||||
clientCredentials: Optional[OAuthFlow] = None
|
||||
"""
|
||||
Configuration for the OAuth Client Credentials flow.
|
||||
|
||||
Previously called `application` in OpenAPI 2.0.
|
||||
"""
|
||||
|
||||
authorizationCode: Optional[OAuthFlow] = None
|
||||
"""
|
||||
Configuration for the OAuth Authorization Code flow.
|
||||
|
||||
Previously called `accessCode` in OpenAPI 2.0.
|
||||
"""
|
||||
|
||||
if PYDANTIC_V2:
|
||||
model_config = ConfigDict(
|
||||
extra="allow",
|
||||
)
|
||||
|
||||
else:
|
||||
|
||||
class Config:
|
||||
extra = Extra.allow
|
Loading…
Add table
Add a link
Reference in a new issue