Skip to content

Commit 5b8c3ee

Browse files
author
Jakub Kulhan
committed
autoupdated protocol.json & generated files
1 parent 6075573 commit 5b8c3ee

File tree

6 files changed

+106
-2
lines changed

6 files changed

+106
-2
lines changed
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
<?php
2+
3+
namespace ChromeDevtoolsProtocol\Model\Audits;
4+
5+
/**
6+
* Depending on the concrete errorType, different properties are set.
7+
*
8+
* @generated This file has been auto-generated, do not edit.
9+
*
10+
* @author Jakub Kulhan <[email protected]>
11+
*/
12+
final class GenericIssueDetails implements \JsonSerializable
13+
{
14+
/**
15+
* Issues with the same errorType are aggregated in the frontend.
16+
*
17+
* @var string
18+
*/
19+
public $errorType;
20+
21+
/** @var string */
22+
public $frameId;
23+
24+
25+
public static function fromJson($data)
26+
{
27+
$instance = new static();
28+
if (isset($data->errorType)) {
29+
$instance->errorType = (string)$data->errorType;
30+
}
31+
if (isset($data->frameId)) {
32+
$instance->frameId = (string)$data->frameId;
33+
}
34+
return $instance;
35+
}
36+
37+
38+
public function jsonSerialize()
39+
{
40+
$data = new \stdClass();
41+
if ($this->errorType !== null) {
42+
$data->errorType = $this->errorType;
43+
}
44+
if ($this->frameId !== null) {
45+
$data->frameId = $this->frameId;
46+
}
47+
return $data;
48+
}
49+
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?php
2+
3+
namespace ChromeDevtoolsProtocol\Model\Audits;
4+
5+
/**
6+
* Values of named type Audits.GenericIssueErrorType.
7+
*
8+
* @generated This file has been auto-generated, do not edit.
9+
*
10+
* @author Jakub Kulhan <[email protected]>
11+
*/
12+
final class GenericIssueErrorTypeEnum
13+
{
14+
public const CROSS_ORIGIN_PORTAL_POST_MESSAGE_ERROR = 'CrossOriginPortalPostMessageError';
15+
}

gen-src/ChromeDevtoolsProtocol/Model/Audits/InspectorIssueCodeEnum.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,5 @@ final class InspectorIssueCodeEnum
2424
public const QUIRKS_MODE_ISSUE = 'QuirksModeIssue';
2525
public const NAVIGATOR_USER_AGENT_ISSUE = 'NavigatorUserAgentIssue';
2626
public const WASM_CROSS_ORIGIN_MODULE_SHARING_ISSUE = 'WasmCrossOriginModuleSharingIssue';
27+
public const GENERIC_ISSUE = 'GenericIssue';
2728
}

gen-src/ChromeDevtoolsProtocol/Model/Audits/InspectorIssueDetails.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@ final class InspectorIssueDetails implements \JsonSerializable
5050
/** @var WasmCrossOriginModuleSharingIssueDetails|null */
5151
public $wasmCrossOriginModuleSharingIssue;
5252

53+
/** @var GenericIssueDetails|null */
54+
public $genericIssueDetails;
55+
5356

5457
public static function fromJson($data)
5558
{
@@ -93,6 +96,9 @@ public static function fromJson($data)
9396
if (isset($data->wasmCrossOriginModuleSharingIssue)) {
9497
$instance->wasmCrossOriginModuleSharingIssue = WasmCrossOriginModuleSharingIssueDetails::fromJson($data->wasmCrossOriginModuleSharingIssue);
9598
}
99+
if (isset($data->genericIssueDetails)) {
100+
$instance->genericIssueDetails = GenericIssueDetails::fromJson($data->genericIssueDetails);
101+
}
96102
return $instance;
97103
}
98104

@@ -139,6 +145,9 @@ public function jsonSerialize()
139145
if ($this->wasmCrossOriginModuleSharingIssue !== null) {
140146
$data->wasmCrossOriginModuleSharingIssue = $this->wasmCrossOriginModuleSharingIssue->jsonSerialize();
141147
}
148+
if ($this->genericIssueDetails !== null) {
149+
$data->genericIssueDetails = $this->genericIssueDetails->jsonSerialize();
150+
}
142151
return $data;
143152
}
144153
}

protocol.json

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1631,6 +1631,30 @@
16311631
}
16321632
]
16331633
},
1634+
{
1635+
"id": "GenericIssueErrorType",
1636+
"type": "string",
1637+
"enum": [
1638+
"CrossOriginPortalPostMessageError"
1639+
]
1640+
},
1641+
{
1642+
"id": "GenericIssueDetails",
1643+
"description": "Depending on the concrete errorType, different properties are set.",
1644+
"type": "object",
1645+
"properties": [
1646+
{
1647+
"name": "errorType",
1648+
"description": "Issues with the same errorType are aggregated in the frontend.",
1649+
"$ref": "GenericIssueErrorType"
1650+
},
1651+
{
1652+
"name": "frameId",
1653+
"optional": true,
1654+
"$ref": "Page.FrameId"
1655+
}
1656+
]
1657+
},
16341658
{
16351659
"id": "InspectorIssueCode",
16361660
"description": "A unique identifier for the type of issue. Each type may use one of the optional fields in InspectorIssueDetails to convey more specific information about the kind of issue.",
@@ -1648,7 +1672,8 @@
16481672
"AttributionReportingIssue",
16491673
"QuirksModeIssue",
16501674
"NavigatorUserAgentIssue",
1651-
"WasmCrossOriginModuleSharingIssue"
1675+
"WasmCrossOriginModuleSharingIssue",
1676+
"GenericIssue"
16521677
]
16531678
},
16541679
{
@@ -1720,6 +1745,11 @@
17201745
"name": "wasmCrossOriginModuleSharingIssue",
17211746
"optional": true,
17221747
"$ref": "WasmCrossOriginModuleSharingIssueDetails"
1748+
},
1749+
{
1750+
"name": "genericIssueDetails",
1751+
"optional": true,
1752+
"$ref": "GenericIssueDetails"
17231753
}
17241754
]
17251755
},

protocol.json.md5

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3da84ff5c6460ad3bc90da6a5d1665ef protocol.json
1+
467735ddbbd529b95e5466343a27ed84 protocol.json

0 commit comments

Comments
 (0)