@@ -11,7 +11,7 @@ class SpecificationOptions
1111 *
1212 * @var array
1313 */
14- private static array $ schema = [
14+ private static array $ internalValidationSchema = [
1515 'properties ' => [
1616 'disableStrictTypes ' => [
1717 'type ' => 'boolean ' ,
@@ -134,7 +134,7 @@ public function getNewValidatorClassExpr() : string
134134 public function withDisableStrictTypes (bool $ disableStrictTypes ) : self
135135 {
136136 $ validator = new \JsonSchema \Validator ();
137- $ validator ->validate ($ disableStrictTypes , self ::$ schema ['properties ' ]['disableStrictTypes ' ]);
137+ $ validator ->validate ($ disableStrictTypes , self ::$ internalValidationSchema ['properties ' ]['disableStrictTypes ' ]);
138138 if (!$ validator ->isValid ()) {
139139 throw new \InvalidArgumentException ($ validator ->getErrors ()[0 ]['message ' ]);
140140 }
@@ -163,7 +163,7 @@ public function withoutDisableStrictTypes() : self
163163 public function withTreatValuesWithDefaultAsOptional (bool $ treatValuesWithDefaultAsOptional ) : self
164164 {
165165 $ validator = new \JsonSchema \Validator ();
166- $ validator ->validate ($ treatValuesWithDefaultAsOptional , self ::$ schema ['properties ' ]['treatValuesWithDefaultAsOptional ' ]);
166+ $ validator ->validate ($ treatValuesWithDefaultAsOptional , self ::$ internalValidationSchema ['properties ' ]['treatValuesWithDefaultAsOptional ' ]);
167167 if (!$ validator ->isValid ()) {
168168 throw new \InvalidArgumentException ($ validator ->getErrors ()[0 ]['message ' ]);
169169 }
@@ -192,7 +192,7 @@ public function withoutTreatValuesWithDefaultAsOptional() : self
192192 public function withInlineAllofReferences (bool $ inlineAllofReferences ) : self
193193 {
194194 $ validator = new \JsonSchema \Validator ();
195- $ validator ->validate ($ inlineAllofReferences , self ::$ schema ['properties ' ]['inlineAllofReferences ' ]);
195+ $ validator ->validate ($ inlineAllofReferences , self ::$ internalValidationSchema ['properties ' ]['inlineAllofReferences ' ]);
196196 if (!$ validator ->isValid ()) {
197197 throw new \InvalidArgumentException ($ validator ->getErrors ()[0 ]['message ' ]);
198198 }
@@ -244,7 +244,7 @@ public function withoutTargetPHPVersion() : self
244244 public function withNewValidatorClassExpr (string $ newValidatorClassExpr ) : self
245245 {
246246 $ validator = new \JsonSchema \Validator ();
247- $ validator ->validate ($ newValidatorClassExpr , self ::$ schema ['properties ' ]['newValidatorClassExpr ' ]);
247+ $ validator ->validate ($ newValidatorClassExpr , self ::$ internalValidationSchema ['properties ' ]['newValidatorClassExpr ' ]);
248248 if (!$ validator ->isValid ()) {
249249 throw new \InvalidArgumentException ($ validator ->getErrors ()[0 ]['message ' ]);
250250 }
@@ -355,7 +355,7 @@ public static function validateInput(array|object $input, bool $return = false)
355355 {
356356 $ validator = new \JsonSchema \Validator ();
357357 $ input = is_array ($ input ) ? \JsonSchema \Validator::arrayToObjectRecursive ($ input ) : $ input ;
358- $ validator ->validate ($ input , self ::$ schema );
358+ $ validator ->validate ($ input , self ::$ internalValidationSchema );
359359
360360 if (!$ validator ->isValid () && !$ return ) {
361361 $ errors = array_map (function (array $ e ): string {
0 commit comments