@@ -377,14 +377,17 @@ private function doTestNormalize(OperationMethodResolverInterface $operationMeth
377
377
'minLength ' => 3 ,
378
378
'maxLength ' => 20 ,
379
379
'pattern ' => '^dummyPattern$ ' ,
380
+ 'nullable ' => true ,
380
381
]),
381
382
'name ' => new \ArrayObject ([
382
383
'type ' => 'string ' ,
383
384
'description ' => 'This is a name. ' ,
385
+ 'nullable ' => true ,
384
386
]),
385
387
'description ' => new \ArrayObject ([
386
388
'type ' => 'string ' ,
387
389
'description ' => 'This is an initializable but not writable property. ' ,
390
+ 'nullable ' => true ,
388
391
]),
389
392
'dummyDate ' => new \ArrayObject ([
390
393
'nullable ' => true ,
@@ -545,10 +548,12 @@ private function doTestNormalizeWithNameConverter(bool $legacy = false): void
545
548
'name ' => new \ArrayObject ([
546
549
'type ' => 'string ' ,
547
550
'description ' => 'This is a name. ' ,
551
+ 'nullable ' => true ,
548
552
]),
549
553
'name_converted ' => new \ArrayObject ([
550
554
'type ' => 'string ' ,
551
555
'description ' => 'This is a converted name. ' ,
556
+ 'nullable ' => true ,
552
557
]),
553
558
],
554
559
]),
@@ -679,6 +684,7 @@ public function testNormalizeWithApiKeysEnabled(): void
679
684
'name ' => new \ArrayObject ([
680
685
'type ' => 'string ' ,
681
686
'description ' => 'This is a name. ' ,
687
+ 'nullable ' => true ,
682
688
]),
683
689
],
684
690
]),
@@ -911,6 +917,7 @@ public function testNormalizeWithOnlyNormalizationGroups(): void
911
917
'name ' => new \ArrayObject ([
912
918
'type ' => 'string ' ,
913
919
'description ' => 'This is a name. ' ,
920
+ 'nullable ' => true ,
914
921
]),
915
922
],
916
923
]),
@@ -922,6 +929,7 @@ public function testNormalizeWithOnlyNormalizationGroups(): void
922
929
'gerard ' => new \ArrayObject ([
923
930
'type ' => 'string ' ,
924
931
'description ' => 'This is a gerard. ' ,
932
+ 'nullable ' => true ,
925
933
]),
926
934
],
927
935
]),
@@ -1034,6 +1042,7 @@ public function testNormalizeWithOpenApiDefinitionName(): void
1034
1042
'type ' => 'integer ' ,
1035
1043
'description ' => 'This is an id. ' ,
1036
1044
'readOnly ' => true ,
1045
+ 'nullable ' => true ,
1037
1046
]),
1038
1047
],
1039
1048
]),
@@ -1244,6 +1253,7 @@ public function testNormalizeWithOnlyDenormalizationGroups(): void
1244
1253
'name ' => new \ArrayObject ([
1245
1254
'type ' => 'string ' ,
1246
1255
'description ' => 'This is a name. ' ,
1256
+ 'nullable ' => true ,
1247
1257
]),
1248
1258
],
1249
1259
]),
@@ -1255,6 +1265,7 @@ public function testNormalizeWithOnlyDenormalizationGroups(): void
1255
1265
'gerard ' => new \ArrayObject ([
1256
1266
'type ' => 'string ' ,
1257
1267
'description ' => 'This is a gerard. ' ,
1268
+ 'nullable ' => true ,
1258
1269
]),
1259
1270
],
1260
1271
]),
@@ -1467,6 +1478,7 @@ public function testNormalizeWithNormalizationAndDenormalizationGroups(): void
1467
1478
'name ' => new \ArrayObject ([
1468
1479
'type ' => 'string ' ,
1469
1480
'description ' => 'This is a name. ' ,
1481
+ 'nullable ' => true ,
1470
1482
]),
1471
1483
],
1472
1484
]),
@@ -1478,6 +1490,7 @@ public function testNormalizeWithNormalizationAndDenormalizationGroups(): void
1478
1490
'gerard ' => new \ArrayObject ([
1479
1491
'type ' => 'string ' ,
1480
1492
'description ' => 'This is a gerard. ' ,
1493
+ 'nullable ' => true ,
1481
1494
]),
1482
1495
],
1483
1496
]),
@@ -1997,6 +2010,7 @@ public function testNormalizeWithNestedNormalizationGroups(): void
1997
2010
'name ' => new \ArrayObject ([
1998
2011
'type ' => 'string ' ,
1999
2012
'description ' => 'This is a name. ' ,
2013
+ 'nullable ' => true ,
2000
2014
]),
2001
2015
],
2002
2016
]),
@@ -2008,6 +2022,7 @@ public function testNormalizeWithNestedNormalizationGroups(): void
2008
2022
'name ' => new \ArrayObject ([
2009
2023
'type ' => 'string ' ,
2010
2024
'description ' => 'This is a name. ' ,
2025
+ 'nullable ' => true ,
2011
2026
]),
2012
2027
'relatedDummy ' => new \ArrayObject ([
2013
2028
'description ' => 'This is a related dummy \o/. ' ,
@@ -2026,6 +2041,7 @@ public function testNormalizeWithNestedNormalizationGroups(): void
2026
2041
'name ' => new \ArrayObject ([
2027
2042
'type ' => 'string ' ,
2028
2043
'description ' => 'This is a name. ' ,
2044
+ 'nullable ' => true ,
2029
2045
]),
2030
2046
],
2031
2047
]),
@@ -2170,6 +2186,7 @@ private function doTestNormalizeWithFilters($filterLocator): void
2170
2186
'name ' => new \ArrayObject ([
2171
2187
'description ' => 'This is a name. ' ,
2172
2188
'type ' => 'string ' ,
2189
+ 'nullable ' => true ,
2173
2190
]),
2174
2191
],
2175
2192
]),
@@ -2344,6 +2361,7 @@ private function doTestNormalizeWithSubResource(OperationAwareFormatsProviderInt
2344
2361
'type ' => 'array ' ,
2345
2362
'description ' => 'This is a name. ' ,
2346
2363
'items ' => ['$ref ' => '#/components/schemas/Answer ' ],
2364
+ 'nullable ' => true ,
2347
2365
]),
2348
2366
],
2349
2367
]),
@@ -2356,6 +2374,7 @@ private function doTestNormalizeWithSubResource(OperationAwareFormatsProviderInt
2356
2374
'type ' => 'array ' ,
2357
2375
'description ' => 'This is a name. ' ,
2358
2376
'items ' => ['$ref ' => '#/components/schemas/Answer ' ],
2377
+ 'nullable ' => true ,
2359
2378
]),
2360
2379
],
2361
2380
]),
@@ -2463,12 +2482,14 @@ public function testNormalizeWithPropertyOpenApiContext(): void
2463
2482
'type ' => 'integer ' ,
2464
2483
'description ' => 'This is an id. ' ,
2465
2484
'readOnly ' => true ,
2485
+ 'nullable ' => true ,
2466
2486
]),
2467
2487
'name ' => new \ArrayObject ([
2468
2488
'type ' => 'string ' ,
2469
2489
'description ' => 'This is a name. ' ,
2470
2490
'enum ' => ['one ' , 'two ' ],
2471
2491
'example ' => 'one ' ,
2492
+ 'nullable ' => true ,
2472
2493
]),
2473
2494
],
2474
2495
]),
@@ -2590,12 +2611,14 @@ public function testNormalizeWithPaginationClientEnabled(): void
2590
2611
'type ' => 'integer ' ,
2591
2612
'description ' => 'This is an id. ' ,
2592
2613
'readOnly ' => true ,
2614
+ 'nullable ' => true ,
2593
2615
]),
2594
2616
'name ' => new \ArrayObject ([
2595
2617
'type ' => 'string ' ,
2596
2618
'description ' => 'This is a name. ' ,
2597
2619
'enum ' => ['one ' , 'two ' ],
2598
2620
'example ' => 'one ' ,
2621
+ 'nullable ' => true ,
2599
2622
]),
2600
2623
],
2601
2624
]),
@@ -2723,12 +2746,14 @@ public function testNormalizeWithPaginationCustomDefaultAndMaxItemsPerPage(): vo
2723
2746
'type ' => 'integer ' ,
2724
2747
'description ' => 'This is an id. ' ,
2725
2748
'readOnly ' => true ,
2749
+ 'nullable ' => true ,
2726
2750
]),
2727
2751
'name ' => new \ArrayObject ([
2728
2752
'type ' => 'string ' ,
2729
2753
'description ' => 'This is a name. ' ,
2730
2754
'enum ' => ['one ' , 'two ' ],
2731
2755
'example ' => 'one ' ,
2756
+ 'nullable ' => true ,
2732
2757
]),
2733
2758
],
2734
2759
]),
@@ -2860,12 +2885,14 @@ public function testLegacyNormalizeWithPaginationCustomDefaultAndMaxItemsPerPage
2860
2885
'type ' => 'integer ' ,
2861
2886
'description ' => 'This is an id. ' ,
2862
2887
'readOnly ' => true ,
2888
+ 'nullable ' => true ,
2863
2889
]),
2864
2890
'name ' => new \ArrayObject ([
2865
2891
'type ' => 'string ' ,
2866
2892
'description ' => 'This is a name. ' ,
2867
2893
'enum ' => ['one ' , 'two ' ],
2868
2894
'example ' => 'one ' ,
2895
+ 'nullable ' => true ,
2869
2896
]),
2870
2897
],
2871
2898
]),
@@ -3097,10 +3124,12 @@ private function doTestNormalizeWithCustomFormatsDefinedAtOperationLevel(Operati
3097
3124
'type ' => 'integer ' ,
3098
3125
'description ' => 'This is an id. ' ,
3099
3126
'readOnly ' => true ,
3127
+ 'nullable ' => true ,
3100
3128
]),
3101
3129
'name ' => new \ArrayObject ([
3102
3130
'type ' => 'string ' ,
3103
3131
'description ' => 'This is a name. ' ,
3132
+ 'nullable ' => true ,
3104
3133
]),
3105
3134
],
3106
3135
]),
0 commit comments