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
|
@@ 77-79 (lines=3) @@
|
74 |
|
throw new InvalidDefinitionException('Invalid Definition'); |
75 |
|
} |
76 |
|
|
77 |
|
if (!isset($this->jsonFile[$nameParts[1]][$nameParts[2]])) { |
78 |
|
throw new DefinitionNotFoundException("Definition '$name' not found"); |
79 |
|
} |
80 |
|
|
81 |
|
return $this->jsonFile[$nameParts[1]][$nameParts[2]]; |
82 |
|
} |