File tree Expand file tree Collapse file tree 3 files changed +3
-305
lines changed Expand file tree Collapse file tree 3 files changed +3
-305
lines changed Original file line number Diff line number Diff line change 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],
Load Diff This file was deleted.
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments