File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -128,8 +128,8 @@ protected function attributeDefaults(): array
128128 // return null as default when there is no type
129129 // return false as default when there is a type
130130 'nullable ' => $ this ->hasPropertyValue ('type ' ) ? false : null ,
131- 'exclusiveMinimum ' => $ this -> hasPropertyValue ( ' minimum ' ) ? false : null ,
132- 'exclusiveMaximum ' => $ this -> hasPropertyValue ( ' maximum ' ) ? false : null ,
131+ 'exclusiveMinimum ' => null ,
132+ 'exclusiveMaximum ' => null ,
133133 ];
134134 }
135135
Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ public function testMinMax()
7878 /** @var $schema Schema */
7979 $ schema = Reader::readFromJson ('{"type": "integer", "minimum": 1} ' , Schema::class);
8080 $ this ->assertEquals (1 , $ schema ->minimum );
81- $ this ->assertFalse ($ schema ->exclusiveMinimum );
81+ $ this ->assertNull ($ schema ->exclusiveMinimum );
8282 $ this ->assertNull ($ schema ->maximum );
8383 $ this ->assertNull ($ schema ->exclusiveMaximum );
8484
@@ -92,7 +92,7 @@ public function testMinMax()
9292 /** @var $schema Schema */
9393 $ schema = Reader::readFromJson ('{"type": "integer", "maximum": 10} ' , Schema::class);
9494 $ this ->assertEquals (10 , $ schema ->maximum );
95- $ this ->assertFalse ($ schema ->exclusiveMaximum );
95+ $ this ->assertNull ($ schema ->exclusiveMaximum );
9696 $ this ->assertNull ($ schema ->minimum );
9797 $ this ->assertNull ($ schema ->exclusiveMinimum );
9898
You can’t perform that action at this time.
0 commit comments