Skip to content

Commit df82022

Browse files
authored
Merge pull request #6 from LowerSilesians/master
allow reference in parameter schema
2 parents 33608e9 + eab2a61 commit df82022

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

openapi_schema_pydantic/v3/v3_1_0/parameter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ class Parameter(BaseModel):
100100
The default value is `false`.
101101
"""
102102

103-
param_schema: Optional[Schema] = Field(default=None, alias="schema")
103+
param_schema: Optional[Union[Schema, Reference]] = Field(default=None, alias="schema")
104104
"""
105105
The schema defining the type used for the parameter.
106106
"""

0 commit comments

Comments
 (0)