File tree 3 files changed +3
-305
lines changed
3 files changed +3
-305
lines changed Original file line number Diff line number Diff line change 20
20
* @property Server[] $servers
21
21
* @property Paths|PathItem[] $paths
22
22
* @property Components|null $components
23
- * @property WebHooks |null $webhooks
23
+ * @property PathItem[] |null $webhooks
24
24
* @property SecurityRequirement[] $security
25
25
* @property Tag[] $tags
26
26
* @property ExternalDocumentation|null $externalDocs
@@ -47,7 +47,7 @@ protected function attributes(): array
47
47
'info ' => Info::class,
48
48
'servers ' => [Server::class],
49
49
'paths ' => Paths::class,
50
- 'webhooks ' => WebHooks ::class,
50
+ 'webhooks ' => [PathItem ::class] ,
51
51
'components ' => Components::class,
52
52
'security ' => [SecurityRequirement::class],
53
53
'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)
238
238
239
239
// webhooks
240
240
if ($ openapi ->webhooks !== null ) {
241
- $ this ->assertInstanceOf (\cebe \openapi \spec \WebHooks ::class, $ openapi ->webhooks );
241
+ $ this ->assertAllInstanceOf (\cebe \openapi \spec \PathItem ::class, $ openapi ->webhooks );
242
242
}
243
243
244
244
// components
You can’t perform that action at this time.
0 commit comments