File tree Expand file tree Collapse file tree 7 files changed +9
-9
lines changed Expand file tree Collapse file tree 7 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ class Components extends SpecBaseObject
3737 protected function attributes (): array
3838 {
3939 return [
40- 'schemas ' => [Type::STRING , Schema::class],// TODO implement support for reference
40+ 'schemas ' => [Type::STRING , Schema::class],
4141 'responses ' => [Type::STRING , Response::class],
4242 'parameters ' => [Type::STRING , Parameter::class],
4343 'examples ' => [Type::STRING , Example::class],
Original file line number Diff line number Diff line change @@ -27,9 +27,9 @@ class MediaType extends SpecBaseObject
2727 protected function attributes (): array
2828 {
2929 return [
30- 'schema ' => Schema::class, // TODO support Reference
30+ 'schema ' => Schema::class,
3131 'example ' => Type::ANY ,
32- 'examples ' => [Type::STRING , Example::class], // TODO support Reference
32+ 'examples ' => [Type::STRING , Example::class],
3333 'encoding ' => [Type::STRING , Encoding::class],
3434 ];
3535 }
Original file line number Diff line number Diff line change @@ -41,10 +41,10 @@ protected function attributes(): array
4141 'description ' => Type::STRING ,
4242 'externalDocs ' => ExternalDocumentation::class,
4343 'operationId ' => Type::STRING ,
44- 'parameters ' => [Parameter::class],// TODO reference
44+ 'parameters ' => [Parameter::class],
4545 'requestBody ' => RequestBody::class,
4646 'responses ' => Responses::class,
47- 'callbacks ' => [Type::STRING , Callback::class],// TODO reference
47+ 'callbacks ' => [Type::STRING , Callback::class],
4848 'deprecated ' => Type::BOOLEAN ,
4949 'security ' => [SecurityRequirement::class],
5050 'servers ' => [Server::class],
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ protected function attributes(): array
5050 'patch ' => Operation::class,
5151 'trace ' => Operation::class,
5252 'servers ' => [Server::class],
53- 'parameters ' => [Parameter::class], // @TODO Reference::class
53+ 'parameters ' => [Parameter::class],
5454 ];
5555 }
5656
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ class Response extends SpecBaseObject
2727 protected function attributes (): array
2828 {
2929 return [
30- 'description ' => Type::STRING ,// TODO implement support for reference
30+ 'description ' => Type::STRING ,
3131 'headers ' => [Type::STRING , Header::class],
3232 'content ' => [Type::STRING , MediaType::class],
3333 'links ' => [Type::STRING , Link::class],
Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ protected function attributes(): array
7171 {
7272 return [
7373 'type ' => Type::STRING ,
74- 'allOf ' => [Schema::class], // TODO allow reference
74+ 'allOf ' => [Schema::class],
7575 'oneOf ' => [Schema::class],
7676 'anyOf ' => [Schema::class],
7777 'not ' => Schema::class,
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ public function testRead()
4343 $ this ->assertEquals ([], $ mediaType ->getErrors ());
4444 $ this ->assertTrue ($ result );
4545
46- // $this->assertEquals('schema' , $mediaType->name);// TODO support for reference
46+ $ this ->assertInstanceOf (Reference::class , $ mediaType ->schema );
4747 $ this ->assertInternalType ('array ' , $ mediaType ->examples );
4848 $ this ->assertCount (3 , $ mediaType ->examples );
4949 $ this ->assertArrayHasKey ('cat ' , $ mediaType ->examples );
You can’t perform that action at this time.
0 commit comments