Skip to content

Commit

Permalink
Drop WebHooks.php
Browse files Browse the repository at this point in the history
  • Loading branch information
WyriHaximus committed Nov 25, 2021
1 parent 4e30366 commit 2a5d0c9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 305 deletions.
4 changes: 2 additions & 2 deletions src/spec/OpenApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
* @property Server[] $servers
* @property Paths|PathItem[] $paths
* @property Components|null $components
* @property WebHooks|null $webhooks
* @property PathItem[]|null $webhooks
* @property SecurityRequirement[] $security
* @property Tag[] $tags
* @property ExternalDocumentation|null $externalDocs
Expand All @@ -47,7 +47,7 @@ protected function attributes(): array
'info' => Info::class,
'servers' => [Server::class],
'paths' => Paths::class,
'webhooks' => WebHooks::class,
'webhooks' => [PathItem::class],
'components' => Components::class,
'security' => [SecurityRequirement::class],
'tags' => [Tag::class],
Expand Down
302 changes: 0 additions & 302 deletions src/spec/WebHooks.php

This file was deleted.

2 changes: 1 addition & 1 deletion tests/spec/OpenApiTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ public function testSpecs($openApiFile)

// webhooks
if ($openapi->webhooks !== null) {
$this->assertInstanceOf(\cebe\openapi\spec\WebHooks::class, $openapi->webhooks);
$this->assertAllInstanceOf(\cebe\openapi\spec\PathItem::class, $openapi->webhooks);
}

// components
Expand Down

0 comments on commit 2a5d0c9

Please sign in to comment.