Skip to content
This repository was archived by the owner on Mar 28, 2025. It is now read-only.

Commit b471fc3

Browse files
authored
Merge pull request #158 from Catrobat/create-pull-request/patch-1725049187
Bump autogenerated OpenAPI code
2 parents 3766a1b + 84060ff commit b471fc3

46 files changed

Lines changed: 219 additions & 247 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Api/ProjectsApiInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ public function projectsGet(
256256
* @param UploadedFile $file The *.catrobat project file (required)
257257
* @param string $accept_language (optional, default to 'en')
258258
* @param string $flavor The flavor of this project (optional, default to 'pocketcode')
259-
* @param bool $private Indicates whether a program should be private (optional, default to false)
259+
* @param bool $private Indicates whether a project should be private (optional, default to false)
260260
* @param int &$responseCode The HTTP Response Code
261261
* @param array $responseHeaders Additional HTTP headers to return with the response ()
262262
*/

Controller/StudioController.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ public function studioIdPutAction(Request $request, $id)
9898
$asserts = [];
9999
$asserts[] = new Assert\NotNull();
100100
$asserts[] = new Assert\Type('string');
101+
$asserts[] = new Assert\Regex('/^[a-zA-Z0-9\\-]+$/');
101102
$response = $this->validate($id, $asserts);
102103
if ($response instanceof Response) {
103104
return $response;

Model/BaseUser.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,48 +43,48 @@ class BaseUser
4343
/**
4444
* Email of the user.
4545
*/
46-
#[Assert\Type('string')]
4746
#[SerializedName('email')]
47+
#[Assert\Type('string')]
4848
#[Type('string')]
4949
protected ?string $email = null;
5050

5151
/**
5252
* Name of the user | minLength: 3 | maxLength: 180.
5353
*/
54-
#[Assert\Type('string')]
5554
#[SerializedName('username')]
55+
#[Assert\Type('string')]
5656
#[Type('string')]
5757
protected ?string $username = null;
5858

5959
/**
6060
* A secure password | minLength: 6 | maxLength: 4096.
6161
*/
62-
#[Assert\Type('string')]
6362
#[SerializedName('password')]
63+
#[Assert\Type('string')]
6464
#[Type('string')]
6565
protected ?string $password = null;
6666

6767
/**
6868
* The profile picture of the user in data URI scheme.
6969
*/
70-
#[Assert\Type('string')]
7170
#[SerializedName('picture')]
71+
#[Assert\Type('string')]
7272
#[Type('string')]
7373
protected ?string $picture = null;
7474

7575
/**
7676
* An introduction of the user.
7777
*/
78-
#[Assert\Type('string')]
7978
#[SerializedName('about')]
79+
#[Assert\Type('string')]
8080
#[Type('string')]
8181
protected ?string $about = null;
8282

8383
/**
8484
* A short description about the project the user is currently working on.
8585
*/
86-
#[Assert\Type('string')]
8786
#[SerializedName('currently_working_on')]
87+
#[Assert\Type('string')]
8888
#[Type('string')]
8989
protected ?string $currently_working_on = null;
9090

Model/BasicUserDataResponse.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -43,72 +43,72 @@ class BasicUserDataResponse
4343
/**
4444
* Unique ID of the user.
4545
*/
46-
#[Assert\Type('string')]
4746
#[SerializedName('id')]
47+
#[Assert\Type('string')]
4848
#[Type('string')]
4949
protected ?string $id = null;
5050

5151
/**
5252
* Nickname of the user.
5353
*/
54-
#[Assert\Type('string')]
5554
#[SerializedName('username')]
55+
#[Assert\Type('string')]
5656
#[Type('string')]
5757
protected ?string $username = null;
5858

5959
/**
6060
* The profile picture of the user in data URI scheme.
6161
*/
62-
#[Assert\Type('string')]
6362
#[SerializedName('picture')]
63+
#[Assert\Type('string')]
6464
#[Type('string')]
6565
protected ?string $picture = null;
6666

6767
/**
6868
* An introduction of the user.
6969
*/
70-
#[Assert\Type('string')]
7170
#[SerializedName('about')]
71+
#[Assert\Type('string')]
7272
#[Type('string')]
7373
protected ?string $about = null;
7474

7575
/**
7676
* A short description about the project the user is currently working on.
7777
*/
78-
#[Assert\Type('string')]
7978
#[SerializedName('currently_working_on')]
79+
#[Assert\Type('string')]
8080
#[Type('string')]
8181
protected ?string $currently_working_on = null;
8282

8383
/**
8484
* Amount of projects of the user.
8585
*/
86-
#[Assert\Type('int')]
8786
#[SerializedName('projects')]
87+
#[Assert\Type('int')]
8888
#[Type('int')]
8989
protected ?int $projects = null;
9090

9191
/**
9292
* Amount of users that follow this user.
9393
*/
94-
#[Assert\Type('int')]
9594
#[SerializedName('followers')]
95+
#[Assert\Type('int')]
9696
#[Type('int')]
9797
protected ?int $followers = null;
9898

9999
/**
100100
* Amount of users followed by this user.
101101
*/
102-
#[Assert\Type('int')]
103102
#[SerializedName('following')]
103+
#[Assert\Type('int')]
104104
#[Type('int')]
105105
protected ?int $following = null;
106106

107107
/**
108108
* Ranking score of this user.
109109
*/
110-
#[Assert\Type('int')]
111110
#[SerializedName('ranking_score')]
111+
#[Assert\Type('int')]
112112
#[Type('int')]
113113
protected ?int $ranking_score = null;
114114

Model/CreateStudioErrorResponse.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,21 +40,21 @@
4040
*/
4141
class CreateStudioErrorResponse
4242
{
43+
#[SerializedName('name')]
4344
#[Assert\Choice(['Name already in use', 'Name missing', 'Name too short', 'Name too long'])]
4445
#[Assert\Type('string')]
45-
#[SerializedName('name')]
4646
#[Type('string')]
4747
protected ?string $name = null;
4848

49+
#[SerializedName('description')]
4950
#[Assert\Choice(['Description too short', 'Description too long', 'Description missing'])]
5051
#[Assert\Type('string')]
51-
#[SerializedName('description')]
5252
#[Type('string')]
5353
protected ?string $description = null;
5454

55+
#[SerializedName('image_file')]
5556
#[Assert\Choice(['Image size too large', 'Image type not supported', 'Image invalid'])]
5657
#[Assert\Type('string')]
57-
#[SerializedName('image_file')]
5858
#[Type('string')]
5959
protected ?string $image_file = null;
6060

Model/DryRun.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ class DryRun
4343
/**
4444
* Indicates if a request should only be verified or executed.
4545
*/
46-
#[Assert\Type('bool')]
4746
#[SerializedName('dry_run')]
47+
#[Assert\Type('bool')]
4848
#[Type('bool')]
4949
protected ?bool $dry_run = false;
5050

Model/ExtendedUserDataResponse.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -43,80 +43,80 @@ class ExtendedUserDataResponse
4343
/**
4444
* Unique ID of the user.
4545
*/
46-
#[Assert\Type('string')]
4746
#[SerializedName('id')]
47+
#[Assert\Type('string')]
4848
#[Type('string')]
4949
protected ?string $id = null;
5050

5151
/**
5252
* Nickname of the user.
5353
*/
54-
#[Assert\Type('string')]
5554
#[SerializedName('username')]
55+
#[Assert\Type('string')]
5656
#[Type('string')]
5757
protected ?string $username = null;
5858

5959
/**
6060
* The profile picture of the user in data URI scheme.
6161
*/
62-
#[Assert\Type('string')]
6362
#[SerializedName('picture')]
63+
#[Assert\Type('string')]
6464
#[Type('string')]
6565
protected ?string $picture = null;
6666

6767
/**
6868
* An introduction of the user.
6969
*/
70-
#[Assert\Type('string')]
7170
#[SerializedName('about')]
71+
#[Assert\Type('string')]
7272
#[Type('string')]
7373
protected ?string $about = null;
7474

7575
/**
7676
* A short description about the project the user is currently working on.
7777
*/
78-
#[Assert\Type('string')]
7978
#[SerializedName('currently_working_on')]
79+
#[Assert\Type('string')]
8080
#[Type('string')]
8181
protected ?string $currently_working_on = null;
8282

8383
/**
8484
* Amount of projects of the user.
8585
*/
86-
#[Assert\Type('int')]
8786
#[SerializedName('projects')]
87+
#[Assert\Type('int')]
8888
#[Type('int')]
8989
protected ?int $projects = null;
9090

9191
/**
9292
* Amount of users that follow this user.
9393
*/
94-
#[Assert\Type('int')]
9594
#[SerializedName('followers')]
95+
#[Assert\Type('int')]
9696
#[Type('int')]
9797
protected ?int $followers = null;
9898

9999
/**
100100
* Amount of users followed by this user.
101101
*/
102-
#[Assert\Type('int')]
103102
#[SerializedName('following')]
103+
#[Assert\Type('int')]
104104
#[Type('int')]
105105
protected ?int $following = null;
106106

107107
/**
108108
* Ranking score of this user.
109109
*/
110-
#[Assert\Type('int')]
111110
#[SerializedName('ranking_score')]
111+
#[Assert\Type('int')]
112112
#[Type('int')]
113113
protected ?int $ranking_score = null;
114114

115115
/**
116116
* EMail of the user.
117117
*/
118-
#[Assert\Type('string')]
119118
#[SerializedName('email')]
119+
#[Assert\Type('string')]
120120
#[Type('string')]
121121
protected ?string $email = null;
122122

Model/ExtensionResponse.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,16 +43,16 @@ class ExtensionResponse
4343
/**
4444
* The internal title of the extension.
4545
*/
46-
#[Assert\Type('string')]
4746
#[SerializedName('id')]
47+
#[Assert\Type('string')]
4848
#[Type('string')]
4949
protected ?string $id = null;
5050

5151
/**
5252
* The translated text of the project extension.
5353
*/
54-
#[Assert\Type('string')]
5554
#[SerializedName('text')]
55+
#[Assert\Type('string')]
5656
#[Type('string')]
5757
protected ?string $text = null;
5858

Model/FeaturedProjectResponse.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,38 +40,38 @@
4040
*/
4141
class FeaturedProjectResponse
4242
{
43-
#[Assert\Type('string')]
4443
#[SerializedName('id')]
44+
#[Assert\Type('string')]
4545
#[Type('string')]
4646
protected ?string $id = null;
4747

48-
#[Assert\Type('string')]
4948
#[SerializedName('project_id')]
49+
#[Assert\Type('string')]
5050
#[Type('string')]
5151
protected ?string $project_id = null;
5252

53-
#[Assert\Type('string')]
5453
#[SerializedName('project_url')]
54+
#[Assert\Type('string')]
5555
#[Type('string')]
5656
protected ?string $project_url = null;
5757

58-
#[Assert\Type('string')]
5958
#[SerializedName('url')]
59+
#[Assert\Type('string')]
6060
#[Type('string')]
6161
protected ?string $url = null;
6262

63-
#[Assert\Type('string')]
6463
#[SerializedName('name')]
64+
#[Assert\Type('string')]
6565
#[Type('string')]
6666
protected ?string $name = null;
6767

68-
#[Assert\Type('string')]
6968
#[SerializedName('author')]
69+
#[Assert\Type('string')]
7070
#[Type('string')]
7171
protected ?string $author = null;
7272

73-
#[Assert\Type('string')]
7473
#[SerializedName('featured_image')]
74+
#[Assert\Type('string')]
7575
#[Type('string')]
7676
protected ?string $featured_image = null;
7777

Model/JWTResponse.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,13 @@
4040
*/
4141
class JWTResponse
4242
{
43-
#[Assert\Type('string')]
4443
#[SerializedName('token')]
44+
#[Assert\Type('string')]
4545
#[Type('string')]
4646
protected ?string $token = null;
4747

48-
#[Assert\Type('string')]
4948
#[SerializedName('refresh_token')]
49+
#[Assert\Type('string')]
5050
#[Type('string')]
5151
protected ?string $refresh_token = null;
5252

0 commit comments

Comments
 (0)