@@ -16,7 +16,9 @@ public static function serializationProvider(): array
1616 {
1717 return [
1818 [
19- Obj::make ()->property ('name ' , Str::make ())->property ('age ' , Integer::make ()),
19+ Obj::make ()
20+ ->property ('name ' , Str::make ())
21+ ->property ('age ' , Integer::make ()),
2022 ['name ' => 'John ' , 'age ' => 30 ],
2123 ['name ' => 'John ' , 'age ' => 30 ],
2224 ],
@@ -25,11 +27,7 @@ public static function serializationProvider(): array
2527 ['name ' => 'John ' , 'extra ' => 'value ' ],
2628 ['name ' => 'John ' , 'extra ' => 'value ' ],
2729 ],
28- [
29- Obj::make ()->property ('age ' , Integer::make ()),
30- ['age ' => '30 ' ],
31- ['age ' => 30 ],
32- ],
30+ [Obj::make ()->property ('age ' , Integer::make ()), ['age ' => '30 ' ], ['age ' => 30 ]],
3331 [Obj::make ()->nullable (), null , null ],
3432 ];
3533 }
@@ -56,25 +54,21 @@ public static function validationProvider(): array
5654 [Obj::make ()->additionalProperties (false ), ['extra ' => 'value ' ], false ],
5755 [Obj::make ()->additionalProperties (true ), ['extra ' => 'value ' ], true ],
5856 [
59- Obj::make ()->property ('name ' , Str::make ())->additionalProperties (false ),
57+ Obj::make ()
58+ ->property ('name ' , Str::make ())
59+ ->additionalProperties (false ),
6060 ['name ' => 'John ' ],
6161 true ,
6262 ],
6363 [
64- Obj::make ()->property ('name ' , Str::make ())->additionalProperties (false ),
64+ Obj::make ()
65+ ->property ('name ' , Str::make ())
66+ ->additionalProperties (false ),
6567 ['name ' => 'John ' , 'extra ' => 'value ' ],
6668 false ,
6769 ],
68- [
69- Obj::make ()->additionalProperties (Str::make ()),
70- ['key ' => 'value ' ],
71- true ,
72- ],
73- [
74- Obj::make ()->additionalProperties (Str::make ()),
75- ['key ' => 123 ],
76- false ,
77- ],
70+ [Obj::make ()->additionalProperties (Str::make ()), ['key ' => 'value ' ], true ],
71+ [Obj::make ()->additionalProperties (Str::make ()), ['key ' => 123 ], false ],
7872 ];
7973 }
8074
@@ -95,14 +89,8 @@ public function test_validation(Type $type, mixed $value, bool $valid)
9589 public static function schemaProvider (): array
9690 {
9791 return [
98- [
99- Obj::make (),
100- ['type ' => 'object ' ],
101- ],
102- [
103- Obj::make ()->nullable (),
104- ['type ' => 'object ' , 'nullable ' => true ],
105- ],
92+ [Obj::make (), ['type ' => 'object ' ]],
93+ [Obj::make ()->nullable (), ['type ' => 'object ' , 'nullable ' => true ]],
10694 [
10795 Obj::make ()->property ('name ' , Str::make ()),
10896 [
0 commit comments