Skip to content

Commit bc187fb

Browse files
author
Ron
authored
Merge pull request OAI#1212 from OAI/complex-query-param
added example
2 parents 407db18 + 104529c commit bc187fb

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

versions/3.0.md

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1171,6 +1171,51 @@ schema:
11711171
style: form
11721172
```
11731173

1174+
A complex parameter using `content` to define serialization:
1175+
1176+
```json
1177+
{
1178+
"in": "query",
1179+
"name": "coordinates",
1180+
"content": {
1181+
"application/json": {
1182+
"schema": {
1183+
"type": "object",
1184+
"required": [
1185+
"lat",
1186+
"long"
1187+
],
1188+
"properties": {
1189+
"lat": {
1190+
"type": "number"
1191+
},
1192+
"long": {
1193+
"type": "number"
1194+
}
1195+
}
1196+
}
1197+
}
1198+
}
1199+
}
1200+
```
1201+
1202+
```yaml
1203+
in: query
1204+
name: coordinates
1205+
content:
1206+
application/json:
1207+
schema:
1208+
type: object
1209+
required:
1210+
- lat
1211+
- long
1212+
properties:
1213+
lat:
1214+
type: number
1215+
long:
1216+
type: number
1217+
```
1218+
11741219
#### <a name="requestBodyObject"></a>Request Body Object
11751220

11761221
Describes a single request body.

0 commit comments

Comments
 (0)