Skip to content

Commit

Permalink
Remove "in" and "not" aliases (fix tiangolo#5048)
Browse files Browse the repository at this point in the history
  • Loading branch information
musicinmybrain committed Aug 25, 2022
1 parent 5215b39 commit ae3d938
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions fastapi/openapi/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ class Schema(BaseModel):
allOf: Optional[List["Schema"]] = None
oneOf: Optional[List["Schema"]] = None
anyOf: Optional[List["Schema"]] = None
not_: Optional["Schema"] = Field(default=None, alias="not")
not_: Optional["Schema"] = Field(default=None)
items: Optional[Union["Schema", List["Schema"]]] = None
properties: Optional[Dict[str, "Schema"]] = None
additionalProperties: Optional[Union["Schema", Reference, bool]] = None
Expand Down Expand Up @@ -200,7 +200,7 @@ class Config:

class Parameter(ParameterBase):
name: str
in_: ParameterInType = Field(alias="in")
in_: ParameterInType = Field()


class Header(ParameterBase):
Expand Down Expand Up @@ -299,7 +299,7 @@ class APIKeyIn(Enum):

class APIKey(SecurityBase):
type_ = Field(SecuritySchemeType.apiKey, alias="type")
in_: APIKeyIn = Field(alias="in")
in_: APIKeyIn = Field()
name: str


Expand Down

0 comments on commit ae3d938

Please sign in to comment.