@@ -104,23 +104,6 @@ class ParameterBase(BaseModel):
104
104
Default value is `false`.
105
105
"""
106
106
107
- allowEmptyValue : Optional [bool ] = None
108
- """
109
- Sets the ability to pass empty-valued parameters.
110
- This is valid only for `query` parameters and allows sending a parameter with an
111
- empty value. Default value is `false`.
112
- If [`style`](#parameterStyle) is used, and if behavior is `n/a` (cannot be
113
- serialized), the value of `allowEmptyValue` SHALL be ignored.
114
- Use of this property is NOT RECOMMENDED, as it is likely to be removed in a later
115
- revision.
116
- """
117
-
118
- """
119
- The rules for serialization of the parameter are specified in one of two ways.
120
- For simpler scenarios, a [`schema`](#parameterSchema) and [`style`](#parameterStyle)
121
- can describe the structure and syntax of the parameter.
122
- """
123
-
124
107
style : Optional [str ] = None
125
108
"""
126
109
Describes how the parameter value will be serialized depending on the type of the
@@ -141,15 +124,6 @@ class ParameterBase(BaseModel):
141
124
For all other styles, the default value is `false`.
142
125
"""
143
126
144
- allowReserved : Optional [bool ] = None
145
- """
146
- Determines whether the parameter value SHOULD allow reserved characters,
147
- as defined by [RFC3986](https://tools.ietf.org/html/rfc3986#section-2.2)
148
- `:/?#[]@!$&'()*+,;=` to be included without percent-encoding.
149
- This property only applies to parameters with an `in` value of `query`.
150
- The default value is `false`.
151
- """
152
-
153
127
param_schema : Optional [Union [Reference , Schema ]] = Field (
154
128
default = None , alias = "schema"
155
129
)
@@ -238,3 +212,23 @@ class Parameter(ParameterBase):
238
212
**REQUIRED**. The location of the parameter. Possible values are `"query"`,
239
213
`"header"`, `"path"` or `"cookie"`.
240
214
"""
215
+
216
+ allowEmptyValue : bool = False
217
+ """
218
+ Sets the ability to pass empty-valued parameters.
219
+ This is valid only for `query` parameters and allows sending a parameter with an
220
+ empty value. Default value is `false`.
221
+ If [`style`](#parameterStyle) is used, and if behavior is `n/a` (cannot be
222
+ serialized), the value of `allowEmptyValue` SHALL be ignored.
223
+ Use of this property is NOT RECOMMENDED, as it is likely to be removed in a later
224
+ revision.
225
+ """
226
+
227
+ allowReserved : bool = False
228
+ """
229
+ Determines whether the parameter value SHOULD allow reserved characters,
230
+ as defined by [RFC3986](https://tools.ietf.org/html/rfc3986#section-2.2)
231
+ `:/?#[]@!$&'()*+,;=` to be included without percent-encoding.
232
+ This property only applies to parameters with an `in` value of `query`.
233
+ The default value is `false`.
234
+ """
0 commit comments