File tree 2 files changed +4
-4
lines changed
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
128
128
// return null as default when there is no type
129
129
// return false as default when there is a type
130
130
'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 ,
133
133
];
134
134
}
135
135
Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ public function testMinMax()
78
78
/** @var $schema Schema */
79
79
$ schema = Reader::readFromJson ('{"type": "integer", "minimum": 1} ' , Schema::class);
80
80
$ this ->assertEquals (1 , $ schema ->minimum );
81
- $ this ->assertFalse ($ schema ->exclusiveMinimum );
81
+ $ this ->assertNull ($ schema ->exclusiveMinimum );
82
82
$ this ->assertNull ($ schema ->maximum );
83
83
$ this ->assertNull ($ schema ->exclusiveMaximum );
84
84
@@ -92,7 +92,7 @@ public function testMinMax()
92
92
/** @var $schema Schema */
93
93
$ schema = Reader::readFromJson ('{"type": "integer", "maximum": 10} ' , Schema::class);
94
94
$ this ->assertEquals (10 , $ schema ->maximum );
95
- $ this ->assertFalse ($ schema ->exclusiveMaximum );
95
+ $ this ->assertNull ($ schema ->exclusiveMaximum );
96
96
$ this ->assertNull ($ schema ->minimum );
97
97
$ this ->assertNull ($ schema ->exclusiveMinimum );
98
98
You can’t perform that action at this time.
0 commit comments