Skip to content

Commit

Permalink
Merge pull request #158 from Catrobat/create-pull-request/patch-17250…
Browse files Browse the repository at this point in the history
…49187

Bump autogenerated OpenAPI code
  • Loading branch information
dmetzner authored Aug 30, 2024
2 parents 3766a1b + 84060ff commit b471fc3
Show file tree
Hide file tree
Showing 46 changed files with 219 additions and 247 deletions.
2 changes: 1 addition & 1 deletion Api/ProjectsApiInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ public function projectsGet(
* @param UploadedFile $file The *.catrobat project file (required)
* @param string $accept_language (optional, default to 'en')
* @param string $flavor The flavor of this project (optional, default to 'pocketcode')
* @param bool $private Indicates whether a program should be private (optional, default to false)
* @param bool $private Indicates whether a project should be private (optional, default to false)
* @param int &$responseCode The HTTP Response Code
* @param array $responseHeaders Additional HTTP headers to return with the response ()
*/
Expand Down
1 change: 1 addition & 0 deletions Controller/StudioController.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ public function studioIdPutAction(Request $request, $id)
$asserts = [];
$asserts[] = new Assert\NotNull();
$asserts[] = new Assert\Type('string');
$asserts[] = new Assert\Regex('/^[a-zA-Z0-9\\-]+$/');
$response = $this->validate($id, $asserts);
if ($response instanceof Response) {
return $response;
Expand Down
12 changes: 6 additions & 6 deletions Model/BaseUser.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,48 +43,48 @@ class BaseUser
/**
* Email of the user.
*/
#[Assert\Type('string')]
#[SerializedName('email')]
#[Assert\Type('string')]
#[Type('string')]
protected ?string $email = null;

/**
* Name of the user | minLength: 3 | maxLength: 180.
*/
#[Assert\Type('string')]
#[SerializedName('username')]
#[Assert\Type('string')]
#[Type('string')]
protected ?string $username = null;

/**
* A secure password | minLength: 6 | maxLength: 4096.
*/
#[Assert\Type('string')]
#[SerializedName('password')]
#[Assert\Type('string')]
#[Type('string')]
protected ?string $password = null;

/**
* The profile picture of the user in data URI scheme.
*/
#[Assert\Type('string')]
#[SerializedName('picture')]
#[Assert\Type('string')]
#[Type('string')]
protected ?string $picture = null;

/**
* An introduction of the user.
*/
#[Assert\Type('string')]
#[SerializedName('about')]
#[Assert\Type('string')]
#[Type('string')]
protected ?string $about = null;

/**
* A short description about the project the user is currently working on.
*/
#[Assert\Type('string')]
#[SerializedName('currently_working_on')]
#[Assert\Type('string')]
#[Type('string')]
protected ?string $currently_working_on = null;

Expand Down
18 changes: 9 additions & 9 deletions Model/BasicUserDataResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,72 +43,72 @@ class BasicUserDataResponse
/**
* Unique ID of the user.
*/
#[Assert\Type('string')]
#[SerializedName('id')]
#[Assert\Type('string')]
#[Type('string')]
protected ?string $id = null;

/**
* Nickname of the user.
*/
#[Assert\Type('string')]
#[SerializedName('username')]
#[Assert\Type('string')]
#[Type('string')]
protected ?string $username = null;

/**
* The profile picture of the user in data URI scheme.
*/
#[Assert\Type('string')]
#[SerializedName('picture')]
#[Assert\Type('string')]
#[Type('string')]
protected ?string $picture = null;

/**
* An introduction of the user.
*/
#[Assert\Type('string')]
#[SerializedName('about')]
#[Assert\Type('string')]
#[Type('string')]
protected ?string $about = null;

/**
* A short description about the project the user is currently working on.
*/
#[Assert\Type('string')]
#[SerializedName('currently_working_on')]
#[Assert\Type('string')]
#[Type('string')]
protected ?string $currently_working_on = null;

/**
* Amount of projects of the user.
*/
#[Assert\Type('int')]
#[SerializedName('projects')]
#[Assert\Type('int')]
#[Type('int')]
protected ?int $projects = null;

/**
* Amount of users that follow this user.
*/
#[Assert\Type('int')]
#[SerializedName('followers')]
#[Assert\Type('int')]
#[Type('int')]
protected ?int $followers = null;

/**
* Amount of users followed by this user.
*/
#[Assert\Type('int')]
#[SerializedName('following')]
#[Assert\Type('int')]
#[Type('int')]
protected ?int $following = null;

/**
* Ranking score of this user.
*/
#[Assert\Type('int')]
#[SerializedName('ranking_score')]
#[Assert\Type('int')]
#[Type('int')]
protected ?int $ranking_score = null;

Expand Down
6 changes: 3 additions & 3 deletions Model/CreateStudioErrorResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,21 +40,21 @@
*/
class CreateStudioErrorResponse
{
#[SerializedName('name')]
#[Assert\Choice(['Name already in use', 'Name missing', 'Name too short', 'Name too long'])]
#[Assert\Type('string')]
#[SerializedName('name')]
#[Type('string')]
protected ?string $name = null;

#[SerializedName('description')]
#[Assert\Choice(['Description too short', 'Description too long', 'Description missing'])]
#[Assert\Type('string')]
#[SerializedName('description')]
#[Type('string')]
protected ?string $description = null;

#[SerializedName('image_file')]
#[Assert\Choice(['Image size too large', 'Image type not supported', 'Image invalid'])]
#[Assert\Type('string')]
#[SerializedName('image_file')]
#[Type('string')]
protected ?string $image_file = null;

Expand Down
2 changes: 1 addition & 1 deletion Model/DryRun.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ class DryRun
/**
* Indicates if a request should only be verified or executed.
*/
#[Assert\Type('bool')]
#[SerializedName('dry_run')]
#[Assert\Type('bool')]
#[Type('bool')]
protected ?bool $dry_run = false;

Expand Down
20 changes: 10 additions & 10 deletions Model/ExtendedUserDataResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,80 +43,80 @@ class ExtendedUserDataResponse
/**
* Unique ID of the user.
*/
#[Assert\Type('string')]
#[SerializedName('id')]
#[Assert\Type('string')]
#[Type('string')]
protected ?string $id = null;

/**
* Nickname of the user.
*/
#[Assert\Type('string')]
#[SerializedName('username')]
#[Assert\Type('string')]
#[Type('string')]
protected ?string $username = null;

/**
* The profile picture of the user in data URI scheme.
*/
#[Assert\Type('string')]
#[SerializedName('picture')]
#[Assert\Type('string')]
#[Type('string')]
protected ?string $picture = null;

/**
* An introduction of the user.
*/
#[Assert\Type('string')]
#[SerializedName('about')]
#[Assert\Type('string')]
#[Type('string')]
protected ?string $about = null;

/**
* A short description about the project the user is currently working on.
*/
#[Assert\Type('string')]
#[SerializedName('currently_working_on')]
#[Assert\Type('string')]
#[Type('string')]
protected ?string $currently_working_on = null;

/**
* Amount of projects of the user.
*/
#[Assert\Type('int')]
#[SerializedName('projects')]
#[Assert\Type('int')]
#[Type('int')]
protected ?int $projects = null;

/**
* Amount of users that follow this user.
*/
#[Assert\Type('int')]
#[SerializedName('followers')]
#[Assert\Type('int')]
#[Type('int')]
protected ?int $followers = null;

/**
* Amount of users followed by this user.
*/
#[Assert\Type('int')]
#[SerializedName('following')]
#[Assert\Type('int')]
#[Type('int')]
protected ?int $following = null;

/**
* Ranking score of this user.
*/
#[Assert\Type('int')]
#[SerializedName('ranking_score')]
#[Assert\Type('int')]
#[Type('int')]
protected ?int $ranking_score = null;

/**
* EMail of the user.
*/
#[Assert\Type('string')]
#[SerializedName('email')]
#[Assert\Type('string')]
#[Type('string')]
protected ?string $email = null;

Expand Down
4 changes: 2 additions & 2 deletions Model/ExtensionResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,16 @@ class ExtensionResponse
/**
* The internal title of the extension.
*/
#[Assert\Type('string')]
#[SerializedName('id')]
#[Assert\Type('string')]
#[Type('string')]
protected ?string $id = null;

/**
* The translated text of the project extension.
*/
#[Assert\Type('string')]
#[SerializedName('text')]
#[Assert\Type('string')]
#[Type('string')]
protected ?string $text = null;

Expand Down
14 changes: 7 additions & 7 deletions Model/FeaturedProjectResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,38 +40,38 @@
*/
class FeaturedProjectResponse
{
#[Assert\Type('string')]
#[SerializedName('id')]
#[Assert\Type('string')]
#[Type('string')]
protected ?string $id = null;

#[Assert\Type('string')]
#[SerializedName('project_id')]
#[Assert\Type('string')]
#[Type('string')]
protected ?string $project_id = null;

#[Assert\Type('string')]
#[SerializedName('project_url')]
#[Assert\Type('string')]
#[Type('string')]
protected ?string $project_url = null;

#[Assert\Type('string')]
#[SerializedName('url')]
#[Assert\Type('string')]
#[Type('string')]
protected ?string $url = null;

#[Assert\Type('string')]
#[SerializedName('name')]
#[Assert\Type('string')]
#[Type('string')]
protected ?string $name = null;

#[Assert\Type('string')]
#[SerializedName('author')]
#[Assert\Type('string')]
#[Type('string')]
protected ?string $author = null;

#[Assert\Type('string')]
#[SerializedName('featured_image')]
#[Assert\Type('string')]
#[Type('string')]
protected ?string $featured_image = null;

Expand Down
4 changes: 2 additions & 2 deletions Model/JWTResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@
*/
class JWTResponse
{
#[Assert\Type('string')]
#[SerializedName('token')]
#[Assert\Type('string')]
#[Type('string')]
protected ?string $token = null;

#[Assert\Type('string')]
#[SerializedName('refresh_token')]
#[Assert\Type('string')]
#[Type('string')]
protected ?string $refresh_token = null;

Expand Down
8 changes: 4 additions & 4 deletions Model/LoginRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,21 +43,21 @@ class LoginRequest
/**
* Name of the user.
*/
#[SerializedName('username')]
#[Assert\Type('string')]
#[Type('string')]
#[Assert\Length(max: 180)]
#[Assert\Length(min: 3)]
#[SerializedName('username')]
#[Type('string')]
protected ?string $username = null;

/**
* A secure password.
*/
#[SerializedName('password')]
#[Assert\Type('string')]
#[Type('string')]
#[Assert\Length(max: 4096)]
#[Assert\Length(min: 6)]
#[SerializedName('password')]
#[Type('string')]
protected ?string $password = null;

/**
Expand Down
Loading

0 comments on commit b471fc3

Please sign in to comment.