@@ -3274,7 +3274,7 @@ For examples using `attribute` or `wrapped`, please see version 3.1 of the OpenA
3274
3274
3275
3275
# ##### No XML Object
3276
3276
3277
- Basic string property without an XML Object, using `serializedValue` (the remaining examples will use `externalSerializedValue ` so that the XML form can be shown with syntax highlighting) :
3277
+ Basic string property without an XML Object, using `serializedValue` (the remaining examples will use `externalValue ` so that the XML form can be shown with syntax highlighting) :
3278
3278
3279
3279
` ` ` yaml
3280
3280
application/xml:
@@ -3312,7 +3312,7 @@ application/xml:
3312
3312
pets:
3313
3313
dataValue:
3314
3314
animals: [dog, cat, hamster]
3315
- externalSerializedValue : ./examples/pets.xml
3315
+ externalValue : ./examples/pets.xml
3316
3316
` ` `
3317
3317
3318
3318
Where `./examples/pets.xml` would be :
@@ -3342,7 +3342,7 @@ application/xml:
3342
3342
pets:
3343
3343
dataValue:
3344
3344
animals: [dog, cat, hamster]
3345
- externalSerializedValue : ./examples/pets.xml
3345
+ externalValue : ./examples/pets.xml
3346
3346
` ` `
3347
3347
3348
3348
Where `./examples/pets.xml` would be :
@@ -3386,7 +3386,7 @@ components:
3386
3386
dataValue:
3387
3387
id: 123
3388
3388
name: example
3389
- externalSerializedValue : ./examples/Person.xml
3389
+ externalValue : ./examples/Person.xml
3390
3390
` ` `
3391
3391
3392
3392
Where `./examples/Person.xml` would be :
@@ -3418,7 +3418,7 @@ application/xml:
3418
3418
pets:
3419
3419
dataValue:
3420
3420
animals: [dog, cat, hamster]
3421
- externalSerializedValue : ./examples/pets.xml
3421
+ externalValue : ./examples/pets.xml
3422
3422
` ` `
3423
3423
3424
3424
Where `./examples/pets.xml` would be :
@@ -3452,7 +3452,7 @@ application/xml:
3452
3452
pets:
3453
3453
dataValue:
3454
3454
animals: [dog, cat, hamster]
3455
- externalSerializedValue : ./examples/pets.xml
3455
+ externalValue : ./examples/pets.xml
3456
3456
` ` `
3457
3457
3458
3458
Where `./examples/pets.xml` would be :
@@ -3484,7 +3484,7 @@ application/xml:
3484
3484
pets:
3485
3485
dataValue:
3486
3486
animals: [dog, cat, hamster]
3487
- externalSerializedValue : ./examples/pets.xml
3487
+ externalValue : ./examples/pets.xml
3488
3488
` ` `
3489
3489
3490
3490
Where `./examples/pets.xml` would be :
@@ -3520,7 +3520,7 @@ application/xml:
3520
3520
pets:
3521
3521
dataValue:
3522
3522
animals: [dog, cat, hamster]
3523
- externalSerializedValue : ./examples/pets.xml
3523
+ externalValue : ./examples/pets.xml
3524
3524
` ` `
3525
3525
3526
3526
Where `./examples/pets.xml` would be :
@@ -3557,7 +3557,7 @@ application/xml:
3557
3557
pets:
3558
3558
dataValue:
3559
3559
animals: [dog, cat, hamster]
3560
- externalSerializedValue : ./examples/pets.xml
3560
+ externalValue : ./examples/pets.xml
3561
3561
` ` `
3562
3562
3563
3563
Where `./examples/pets.xml` would be :
@@ -3592,7 +3592,7 @@ application/xml:
3592
3592
pets:
3593
3593
dataValue:
3594
3594
animals: [dog, cat, hamster]
3595
- externalSerializedValue : ./examples/pets.xml
3595
+ externalValue : ./examples/pets.xml
3596
3596
` ` `
3597
3597
3598
3598
Where `./examples/pets.xml` would be :
@@ -3671,7 +3671,7 @@ components:
3671
3671
docs:
3672
3672
dataValue:
3673
3673
content: <html><head><title>Awesome Docs</title></head><body></body><html>
3674
- externalSerializedValue : ./examples/docs.xml
3674
+ externalValue : ./examples/docs.xml
3675
3675
` ` `
3676
3676
3677
3677
Where `./examples/docs.xml` would be :
@@ -3682,7 +3682,7 @@ Where `./examples/docs.xml` would be:
3682
3682
</Documentation>
3683
3683
` ` `
3684
3684
3685
- Alternatively, the named root element could be set at the point of use and the root element disabled on the component :
3685
+ Alternatively, the named root element could be set at the point of use and the root element disabled on the component (note that in this example, the same `dataValue` is used in two places with different serializations shown with `externalValue`) :
3686
3686
3687
3687
` ` ` yaml
3688
3688
paths:
@@ -3699,8 +3699,10 @@ paths:
3699
3699
$ref: "#/components/schemas/Documentation"
3700
3700
examples:
3701
3701
stored:
3702
- externalDataValue: ./examples/content.json
3703
- externalSerializedValue: ./examples/stored.xml
3702
+ dataValue: {
3703
+ "content": "<html><head><title>Awesome Docs</title></head><body></body><html>"
3704
+ }
3705
+ externalValue: ./examples/stored.xml
3704
3706
put:
3705
3707
requestBody:
3706
3708
required: true
@@ -3713,8 +3715,10 @@ paths:
3713
3715
$ref: "#/components/schemas/Documentation"
3714
3716
examples:
3715
3717
updated:
3716
- externalDataValue: ./examples/content.json
3717
- externalSerializedValue: ./examples/updated.xml
3718
+ dataValue: {
3719
+ "content": "<html><head><title>Awesome Docs</title></head><body></body><html>"
3720
+ }
3721
+ externalValue: ./examples/updated.xml
3718
3722
responses:
3719
3723
"201": {}
3720
3724
components:
@@ -3733,11 +3737,6 @@ components:
3733
3737
3734
3738
where `./examples/content.json` would be :
3735
3739
3736
- ` ` ` json
3737
- {
3738
- "content": "<html><head><title>Awesome Docs</title></head><body></body><html>"
3739
- }
3740
- ` ` `
3741
3740
3742
3741
`./examples/stored.xml` would be :
3743
3742
@@ -3806,7 +3805,7 @@ application/xml:
3806
3805
},
3807
3806
null
3808
3807
]
3809
- externalSerializedValue : ./examples/OneTwoThree.xml
3808
+ externalValue : ./examples/OneTwoThree.xml
3810
3809
` ` `
3811
3810
3812
3811
Where `./examples/OneTwoThree.xml` would be :
@@ -3845,7 +3844,7 @@ application/xml:
3845
3844
42,
3846
3845
"Some postamble text."
3847
3846
]
3848
- externalSerializedValue : ./examples/Report.xml
3847
+ externalValue : ./examples/Report.xml
3849
3848
` ` `
3850
3849
3851
3850
Where `./examples/Report.xml` would be :
@@ -3894,14 +3893,14 @@ examples:
3894
3893
"description": "Thing",
3895
3894
"related": null
3896
3895
}
3897
- externalSerializedValue : ./examples/productWithNulls.xml
3896
+ externalValue : ./examples/productWithNulls.xml
3898
3897
productNoNulls:
3899
3898
dataValue: {
3900
3899
"count": 42,
3901
3900
"description: "Thing"
3902
3901
"related": {}
3903
3902
}
3904
- externalSerializedValue : ./examples/productNoNulls.xml
3903
+ externalValue : ./examples/productNoNulls.xml
3905
3904
` ` `
3906
3905
3907
3906
Where `./examples/productWithNulls.xml` would be :
0 commit comments