-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApplicationJson.php
More file actions
135 lines (131 loc) · 4.85 KB
/
ApplicationJson.php
File metadata and controls
135 lines (131 loc) · 4.85 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
<?php
declare(strict_types=1);
namespace ApiClients\Client\GitHubEnterprise\Schema\Issues\Create\Request;
final readonly class ApplicationJson
{
public const SCHEMA_JSON = '{
"required": [
"title"
],
"type": "object",
"properties": {
"title": {
"oneOf": [
{
"type": "string"
},
{
"type": "integer"
}
],
"description": "The title of the issue."
},
"body": {
"type": "string",
"description": "The contents of the issue."
},
"assignee": {
"type": [
"string",
"null"
],
"description": "Login for the user that this issue should be assigned to. _NOTE: Only users with push access can set the assignee for new issues. The assignee is silently dropped otherwise. **This field is closing down.**_"
},
"milestone": {
"type": [
"null",
"string",
"integer"
],
"oneOf": [
{
"type": "string"
},
{
"type": "integer",
"description": "The `number` of the milestone to associate this issue with. _NOTE: Only users with push access can set the milestone for new issues. The milestone is silently dropped otherwise._"
}
]
},
"labels": {
"type": "array",
"items": {
"oneOf": [
{
"type": "string"
},
{
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"name": {
"type": "string"
},
"description": {
"type": [
"string",
"null"
]
},
"color": {
"type": [
"string",
"null"
]
}
}
}
]
},
"description": "Labels to associate with this issue. _NOTE: Only users with push access can set labels for new issues. Labels are silently dropped otherwise._"
},
"assignees": {
"type": "array",
"items": {
"type": "string"
},
"description": "Logins for Users to assign to this issue. _NOTE: Only users with push access can set assignees for new issues. Assignees are silently dropped otherwise._"
},
"type": {
"type": [
"string",
"null"
],
"description": "The name of the issue type to associate with this issue. _NOTE: Only users with push access can set the type for new issues. The type is silently dropped otherwise._",
"examples": [
"Epic"
]
}
}
}';
public const SCHEMA_TITLE = '';
public const SCHEMA_DESCRIPTION = '';
public const SCHEMA_EXAMPLE_DATA = '{
"title": null,
"body": "generated",
"assignee": "generated",
"milestone": null,
"labels": [
null,
null
],
"assignees": [
"generated",
"generated"
],
"type": "Epic"
}';
/**
* title: The title of the issue.
* body: The contents of the issue.
* assignee: Login for the user that this issue should be assigned to. _NOTE: Only users with push access can set the assignee for new issues. The assignee is silently dropped otherwise. **This field is closing down.**_
* labels: Labels to associate with this issue. _NOTE: Only users with push access can set labels for new issues. Labels are silently dropped otherwise._
* assignees: Logins for Users to assign to this issue. _NOTE: Only users with push access can set assignees for new issues. Assignees are silently dropped otherwise._
* type: The name of the issue type to associate with this issue. _NOTE: Only users with push access can set the type for new issues. The type is silently dropped otherwise._
*/
public function __construct(public string|int $title, public string|null $body, public string|null $assignee, public string|int|null $milestone, public array|null $labels, public array|null $assignees, public string|null $type)
{
}
}