src/OpenApi/OpenApiSchema.php 1 location
|
@@ 102-104 (lines=3) @@
|
| 99 |
|
throw new InvalidDefinitionException('Invalid Component'); |
| 100 |
|
} |
| 101 |
|
|
| 102 |
|
if (!isset($this->jsonFile[$nameParts[1]][$nameParts[2]][$nameParts[3]])) { |
| 103 |
|
throw new DefinitionNotFoundException("Component'$name' not found"); |
| 104 |
|
} |
| 105 |
|
|
| 106 |
|
return $this->jsonFile[$nameParts[1]][$nameParts[2]][$nameParts[3]]; |
| 107 |
|
} |
src/Swagger/SwaggerSchema.php 1 location
|
@@ 70-72 (lines=3) @@
|
| 67 |
|
throw new InvalidDefinitionException('Invalid Definition'); |
| 68 |
|
} |
| 69 |
|
|
| 70 |
|
if (!isset($this->jsonFile[$nameParts[1]][$nameParts[2]])) { |
| 71 |
|
throw new DefinitionNotFoundException("Definition '$name' not found"); |
| 72 |
|
} |
| 73 |
|
|
| 74 |
|
return $this->jsonFile[$nameParts[1]][$nameParts[2]]; |
| 75 |
|
} |