Skip to content

Commit fb5f1c4

Browse files
committed
cleanup
1 parent 320be70 commit fb5f1c4

File tree

7 files changed

+9
-9
lines changed

7 files changed

+9
-9
lines changed

src/spec/Components.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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],

src/spec/MediaType.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
}

src/spec/Operation.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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],

src/spec/PathItem.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

src/spec/Response.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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],

src/spec/Schema.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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,

tests/spec/MediaTypeTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)