src/OpenApi/OpenApiSchema.php 1 location
|
@@ 90-94 (lines=5) @@
|
87 |
|
} |
88 |
|
$parameter = $this->jsonFile[self::SWAGGER_COMPONENTS][self::SWAGGER_PARAMETERS][$paramParts[3]]; |
89 |
|
} |
90 |
|
if ($parameter['in'] === $parameterIn && |
91 |
|
$parameter['schema']['type'] === "integer" |
92 |
|
&& filter_var($arguments[$parameter['name']], FILTER_VALIDATE_INT) === false) { |
93 |
|
throw new NotMatchedException('Path expected an integer value'); |
94 |
|
} |
95 |
|
} |
96 |
|
} |
97 |
|
|
src/Swagger/SwaggerSchema.php 1 location
|
@@ 67-71 (lines=5) @@
|
64 |
|
protected function validateArguments($parameterIn, $parameters, $arguments) |
65 |
|
{ |
66 |
|
foreach ($parameters as $parameter) { |
67 |
|
if ($parameter['in'] === $parameterIn |
68 |
|
&& $parameter['type'] === "integer" |
69 |
|
&& filter_var($arguments[$parameter['name']], FILTER_VALIDATE_INT) === false) { |
70 |
|
throw new NotMatchedException('Path expected an integer value'); |
71 |
|
} |
72 |
|
} |
73 |
|
} |
74 |
|
|