@@ 343-351 (lines=9) @@ | ||
340 | sprintf('caseSensitive|is_bool|%s', BaseValidator::BOOLEAN) |
|
341 | ]; |
|
342 | ||
343 | if (isset($schema->type) && ($schema->type === BaseValidator::_ARRAY)) { |
|
344 | ||
345 | // field|must_be|type_in_error_msg |
|
346 | $input = array_merge($input, [ |
|
347 | sprintf('minItems|is_int|%s', BaseValidator::INTEGER), |
|
348 | sprintf('maxItems|is_int|%s', BaseValidator::INTEGER), |
|
349 | sprintf('uniqueItems|is_bool|%s', BaseValidator::BOOLEAN) |
|
350 | ]); |
|
351 | } |
|
352 | ||
353 | if (isset($schema->type) && ($schema->type === BaseValidator::STRING)) { |
|
354 | ||
@@ 353-360 (lines=8) @@ | ||
350 | ]); |
|
351 | } |
|
352 | ||
353 | if (isset($schema->type) && ($schema->type === BaseValidator::STRING)) { |
|
354 | ||
355 | $input = array_merge($input, [ |
|
356 | sprintf('minLength|is_int|%s', BaseValidator::INTEGER), |
|
357 | sprintf('maxLength|is_int|%s', BaseValidator::INTEGER), |
|
358 | sprintf('format|is_string|%s', BaseValidator::STRING) |
|
359 | ]); |
|
360 | } |
|
361 | ||
362 | if (isset($schema->type) && ($schema->type === BaseValidator::INTEGER)) { |
|
363 | ||
@@ 362-368 (lines=7) @@ | ||
359 | ]); |
|
360 | } |
|
361 | ||
362 | if (isset($schema->type) && ($schema->type === BaseValidator::INTEGER)) { |
|
363 | ||
364 | $input = array_merge($input, [ |
|
365 | sprintf('minimum|is_int|%s', BaseValidator::INTEGER), |
|
366 | sprintf('maximum|is_int|%s', BaseValidator::INTEGER) |
|
367 | ]); |
|
368 | } |
|
369 | ||
370 | if (isset($schema->type) && ($schema->type === BaseValidator::NUMBER)) { |
|
371 | ||
@@ 370-376 (lines=7) @@ | ||
367 | ]); |
|
368 | } |
|
369 | ||
370 | if (isset($schema->type) && ($schema->type === BaseValidator::NUMBER)) { |
|
371 | ||
372 | $input = array_merge($input, [ |
|
373 | sprintf('minimum|is_numeric|%s', BaseValidator::NUMBER), |
|
374 | sprintf('maximum|is_numeric|%s', BaseValidator::NUMBER) |
|
375 | ]); |
|
376 | } |
|
377 | ||
378 | return $this->validateSchemaProperties($input, $schema, $path); |
|
379 | } |