File tree Expand file tree Collapse file tree 2 files changed +12
-5
lines changed Expand file tree Collapse file tree 2 files changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -343,10 +343,11 @@ private function doTestNormalize(OperationMethodResolverInterface $operationMeth
343
343
'description ' => 'This is an initializable but not writable property. ' ,
344
344
]),
345
345
'dummyDate ' => new \ArrayObject ([
346
- 'type ' => 'string ' ,
346
+ 'type ' => [ 'string ' , ' null ' ] ,
347
347
'description ' => 'This is a \DateTimeInterface object. ' ,
348
348
'format ' => 'date-time ' ,
349
- ]), ],
349
+ ]),
350
+ ],
350
351
]),
351
352
]),
352
353
];
@@ -2018,7 +2019,10 @@ public function testNormalizeWithNestedNormalizationGroups(): void
2018
2019
]),
2019
2020
'relatedDummy ' => new \ArrayObject ([
2020
2021
'description ' => 'This is a related dummy \o/. ' ,
2021
- '$ref ' => '#/definitions/ ' .$ relatedDummyRef ,
2022
+ 'oneOf ' => [
2023
+ ['type ' => 'null ' ],
2024
+ ['$ref ' => '#/definitions/ ' .$ relatedDummyRef ],
2025
+ ],
2022
2026
]),
2023
2027
],
2024
2028
]),
Original file line number Diff line number Diff line change @@ -385,7 +385,7 @@ private function doTestNormalize(OperationMethodResolverInterface $operationMeth
385
385
'description ' => 'This is an initializable but not writable property. ' ,
386
386
]),
387
387
'dummyDate ' => new \ArrayObject ([
388
- 'type ' => 'string ' ,
388
+ 'type ' => [ 'string ' , ' null ' ] ,
389
389
'description ' => 'This is a \DateTimeInterface object. ' ,
390
390
'format ' => 'date-time ' ,
391
391
]),
@@ -2000,7 +2000,10 @@ public function testNormalizeWithNestedNormalizationGroups(): void
2000
2000
]),
2001
2001
'relatedDummy ' => new \ArrayObject ([
2002
2002
'description ' => 'This is a related dummy \o/. ' ,
2003
- '$ref ' => '#/components/schemas/ ' .$ relatedDummyRef ,
2003
+ 'oneOf ' => [
2004
+ ['type ' => 'null ' ],
2005
+ ['$ref ' => '#/components/schemas/ ' .$ relatedDummyRef ],
2006
+ ]
2004
2007
]),
2005
2008
],
2006
2009
]),
You can’t perform that action at this time.
0 commit comments