Skip to content

Commit 8c4f36a

Browse files
committed
Drop WebHooks.php
1 parent 4e30366 commit 8c4f36a

File tree

4 files changed

+3
-453
lines changed

4 files changed

+3
-453
lines changed

src/spec/OpenApi.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
* @property Server[] $servers
2121
* @property Paths|PathItem[] $paths
2222
* @property Components|null $components
23-
* @property WebHooks|null $webhooks
23+
* @property PathItem[]|null $webhooks
2424
* @property SecurityRequirement[] $security
2525
* @property Tag[] $tags
2626
* @property ExternalDocumentation|null $externalDocs
@@ -47,7 +47,7 @@ protected function attributes(): array
4747
'info' => Info::class,
4848
'servers' => [Server::class],
4949
'paths' => Paths::class,
50-
'webhooks' => WebHooks::class,
50+
'webhooks' => [PathItem::class],
5151
'components' => Components::class,
5252
'security' => [SecurityRequirement::class],
5353
'tags' => [Tag::class],

src/spec/WebHooks.php

Lines changed: 0 additions & 302 deletions
This file was deleted.

tests/spec/OpenApiTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ public function testSpecs($openApiFile)
238238

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

244244
// components

0 commit comments

Comments
 (0)