src/OpenApi/OpenApiSchema.php 1 location
|
@@ 112-114 (lines=3) @@
|
| 109 |
|
throw new InvalidDefinitionException('Invalid Component'); |
| 110 |
|
} |
| 111 |
|
|
| 112 |
|
if (!isset($this->jsonFile[$nameParts[1]][$nameParts[2]][$nameParts[3]])) { |
| 113 |
|
throw new DefinitionNotFoundException("Component'$name' not found"); |
| 114 |
|
} |
| 115 |
|
|
| 116 |
|
return $this->jsonFile[$nameParts[1]][$nameParts[2]][$nameParts[3]]; |
| 117 |
|
} |
src/Swagger/SwaggerSchema.php 1 location
|
@@ 89-91 (lines=3) @@
|
| 86 |
|
throw new InvalidDefinitionException('Invalid Definition'); |
| 87 |
|
} |
| 88 |
|
|
| 89 |
|
if (!isset($this->jsonFile[$nameParts[1]][$nameParts[2]])) { |
| 90 |
|
throw new DefinitionNotFoundException("Definition '$name' not found"); |
| 91 |
|
} |
| 92 |
|
|
| 93 |
|
return $this->jsonFile[$nameParts[1]][$nameParts[2]]; |
| 94 |
|
} |