@@ -956,7 +956,9 @@ schema:
956
956
style: simple
957
957
examples:
958
958
Tokens:
959
- dataValue: [12345678, 90099]
959
+ dataValue:
960
+ - 12345678
961
+ - 90099
960
962
serializedValue: "12345678,90099"
961
963
` ` `
962
964
@@ -982,10 +984,9 @@ examples:
982
984
to "%2C" in the data, as it is forbidden in
983
985
cookie values. However, the exclamation point (!)
984
986
is legal in cookies, so it can be left unencoded.
985
- dataValue : {
986
- " greeting " : " Hello%2C world!" ,
987
- " code " : 42
988
- }
987
+ dataValue :
988
+ greeting : Hello%2C world!
989
+ code : 42
989
990
serializedValue : " greeting=Hello%2C world!; code=42"
990
991
` ` `
991
992
@@ -1004,7 +1005,7 @@ examples:
1004
1005
pre-percent-encoded. This results in all non-URL-safe
1005
1006
characters, rather than just the one non-cookie-safe
1006
1007
character, getting percent-encoded.
1007
- dataValue: " Hello, world!"
1008
+ dataValue: Hello, world!
1008
1009
serializedValue: "greeting=Hello%2C%20world%21"
1009
1010
` ` `
1010
1011
@@ -1044,7 +1045,9 @@ style: form
1044
1045
explode: true
1045
1046
examples:
1046
1047
ObjectList:
1047
- dataValue: ["one thing", "another thing"]
1048
+ dataValue:
1049
+ - one thing
1050
+ - another thing
1048
1051
serializedValue: "thing=one%20thing&thing=another%20thing"
1049
1052
` ` `
1050
1053
@@ -1060,10 +1063,9 @@ schema:
1060
1063
style : form
1061
1064
examples :
1062
1065
Pagination :
1063
- dataValue : {
1064
- " page " : 4,
1065
- " pageSize " : 50
1066
- }
1066
+ dataValue :
1067
+ page : 4
1068
+ pageSize : 50
1067
1069
serializeValue : page=4&pageSize=50
1068
1070
` ` `
1069
1071
@@ -1085,16 +1087,14 @@ content:
1085
1087
long:
1086
1088
type: number
1087
1089
examples:
1088
- dataValue: {
1089
- "lat": 10,
1090
- "long": 60
1091
- }
1090
+ dataValue:
1091
+ lat: 10
1092
+ long: 60
1092
1093
serializedValue: '{"lat":10,"long":60}'
1093
1094
examples:
1094
- dataValue: {
1095
- "lat": 10,
1096
- "long": 60
1097
- }
1095
+ dataValue:
1096
+ lat: 10
1097
+ long: 60
1098
1098
serializedValue: coordinates=%7B%22lat%22%3A10%2C%22long%22%3A60%7D
1099
1099
` ` `
1100
1100
@@ -1152,17 +1152,19 @@ content:
1152
1152
examples:
1153
1153
TwoNoFlag:
1154
1154
description: Serialize with minimized whitespace
1155
- dataValue: {
1156
- "numbers": [1, 2],
1157
- "flag": null
1158
- }
1155
+ dataValue:
1156
+ numbers:
1157
+ - 1
1158
+ - 2
1159
+ flag: null
1159
1160
serializedValue: '{"numbers":[1,2],"flag":null}'
1160
1161
examples:
1161
1162
TwoNoFlag:
1162
- dataValue: {
1163
- "numbers": [1, 2],
1164
- "flag": null
1165
- }
1163
+ dataValue:
1164
+ numbers:
1165
+ - 1
1166
+ - 2
1167
+ flag: null
1166
1168
serializedValue: "%7B%22numbers%22%3A%5B1%2C2%5D%2C%22flag%22%3Anull%7D"
1167
1169
` ` `
1168
1170
@@ -2426,10 +2428,9 @@ content:
2426
2428
examples:
2427
2429
noRating:
2428
2430
summary: A not-yet-rated work
2429
- dataValue: {
2430
- "author": "A. Writer",
2431
- "title": "The Newest Book"
2432
- }
2431
+ dataValue:
2432
+ author: A. Writer
2433
+ title: The Newest Book
2433
2434
withRating:
2434
2435
summary: A work with an average rating of 4.5 stars
2435
2436
dataValue:
@@ -3912,7 +3913,7 @@ application/xml:
3912
3913
examples:
3913
3914
pets:
3914
3915
dataValue:
3915
- animals: " dog, cat, hamster"
3916
+ animals: dog, cat, hamster
3916
3917
serializedValue: |
3917
3918
<document>
3918
3919
<animals>dog, cat, hamster</animals>
@@ -3935,7 +3936,10 @@ application/xml:
3935
3936
examples:
3936
3937
pets:
3937
3938
dataValue:
3938
- animals: [dog, cat, hamster]
3939
+ animals:
3940
+ - dog
3941
+ - cat
3942
+ - hamster
3939
3943
externalValue: ./examples/pets.xml
3940
3944
` ` `
3941
3945
@@ -3965,7 +3969,10 @@ application/xml:
3965
3969
examples:
3966
3970
pets:
3967
3971
dataValue:
3968
- animals: [dog, cat, hamster]
3972
+ animals:
3973
+ - dog
3974
+ - cat
3975
+ - hamster
3969
3976
externalValue: ./examples/pets.xml
3970
3977
` ` `
3971
3978
@@ -4041,7 +4048,10 @@ application/xml:
4041
4048
examples:
4042
4049
pets:
4043
4050
dataValue:
4044
- animals: [dog, cat, hamster]
4051
+ animals:
4052
+ - dog
4053
+ - cat
4054
+ - hamster
4045
4055
externalValue: ./examples/pets.xml
4046
4056
` ` `
4047
4057
@@ -4075,7 +4085,10 @@ application/xml:
4075
4085
examples:
4076
4086
pets:
4077
4087
dataValue:
4078
- animals: [dog, cat, hamster]
4088
+ animals:
4089
+ - dog
4090
+ - cat
4091
+ - hamster
4079
4092
externalValue: ./examples/pets.xml
4080
4093
` ` `
4081
4094
@@ -4107,7 +4120,10 @@ application/xml:
4107
4120
examples:
4108
4121
pets:
4109
4122
dataValue:
4110
- animals: [dog, cat, hamster]
4123
+ animals:
4124
+ - dog
4125
+ - cat
4126
+ - hamster
4111
4127
externalValue: ./examples/pets.xml
4112
4128
` ` `
4113
4129
@@ -4143,7 +4159,10 @@ application/xml:
4143
4159
examples:
4144
4160
pets:
4145
4161
dataValue:
4146
- animals: [dog, cat, hamster]
4162
+ animals:
4163
+ - dog
4164
+ - cat
4165
+ - hamster
4147
4166
externalValue: ./examples/pets.xml
4148
4167
` ` `
4149
4168
@@ -4180,7 +4199,10 @@ application/xml:
4180
4199
examples:
4181
4200
pets:
4182
4201
dataValue:
4183
- animals: [dog, cat, hamster]
4202
+ animals:
4203
+ - dog
4204
+ - cat
4205
+ - hamster
4184
4206
externalValue: ./examples/pets.xml
4185
4207
` ` `
4186
4208
@@ -4215,7 +4237,10 @@ application/xml:
4215
4237
examples:
4216
4238
pets:
4217
4239
dataValue:
4218
- animals: [dog, cat, hamster]
4240
+ animals:
4241
+ - dog
4242
+ - cat
4243
+ - hamster
4219
4244
externalValue: ./examples/pets.xml
4220
4245
` ` `
4221
4246
@@ -4323,9 +4348,8 @@ paths:
4323
4348
$ref: "#/components/schemas/Documentation"
4324
4349
examples:
4325
4350
stored:
4326
- dataValue: {
4327
- "content": "<html><head><title>Awesome Docs</title></head><body></body><html>"
4328
- }
4351
+ dataValue:
4352
+ content: <html><head><title>Awesome Docs</title></head><body></body><html>
4329
4353
externalValue: ./examples/stored.xml
4330
4354
put:
4331
4355
requestBody:
@@ -4339,9 +4363,8 @@ paths:
4339
4363
$ref: "#/components/schemas/Documentation"
4340
4364
examples:
4341
4365
updated:
4342
- dataValue: {
4343
- "content": "<html><head><title>Awesome Docs</title></head><body></body><html>"
4344
- }
4366
+ dataValue:
4367
+ content: <html><head><title>Awesome Docs</title></head><body></body><html>
4345
4368
externalValue: ./examples/updated.xml
4346
4369
responses:
4347
4370
"201": {}
@@ -4418,12 +4441,10 @@ application/xml:
4418
4441
- "null"
4419
4442
examples:
4420
4443
OneTwoThree:
4421
- dataValue: [
4422
- "Some text",
4423
- {
4424
- "unit": "cubits"
4425
- "value": 42
4426
- },
4444
+ dataValue:
4445
+ - Some text
4446
+ - unit: cubits
4447
+ value: 42
4427
4448
null
4428
4449
]
4429
4450
externalValue: ./examples/OneTwoThree.xml
@@ -4460,11 +4481,10 @@ application/xml:
4460
4481
type: string
4461
4482
examples:
4462
4483
Report:
4463
- dataValue: [
4464
- "Some preamble text.",
4465
- 42,
4466
- "Some postamble text."
4467
- ]
4484
+ dataValue:
4485
+ - Some preamble text.
4486
+ - 42
4487
+ - Some postamble text.
4468
4488
externalValue: ./examples/Report.xml
4469
4489
` ` `
4470
4490
@@ -4509,18 +4529,16 @@ application/xml:
4509
4529
- "null"
4510
4530
examples:
4511
4531
productWithNulls:
4512
- dataValue: {
4513
- "count": null,
4514
- "description": "Thing",
4515
- "related": null
4516
- }
4532
+ dataValue:
4533
+ count: null
4534
+ description: Thing
4535
+ related: null
4517
4536
externalValue: ./examples/productWithNulls.xml
4518
4537
productNoNulls:
4519
- dataValue: {
4520
- "count": 42,
4521
- "description: "Thing"
4522
- "related": {}
4523
- }
4538
+ dataValue:
4539
+ count: 42
4540
+ description: Thing
4541
+ related: {}
4524
4542
externalValue: ./examples/productNoNulls.xml
4525
4543
` ` `
4526
4544
0 commit comments