Skip to content

Commit

Permalink
remove legacy keywords
Browse files Browse the repository at this point in the history
  • Loading branch information
chriskapp committed Nov 1, 2024
1 parent ddc06da commit bd26761
Show file tree
Hide file tree
Showing 47 changed files with 1 addition and 157 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
},
"require-dev": {
"vimeo/psalm": "^4.0",
"psx/schema": "^5.0"
"psx/schema": "^7.0"
},
"autoload": {
"psr-4": {
Expand Down
9 changes: 0 additions & 9 deletions src/Backend/AccountChangePassword.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,10 @@

namespace Fusio\Model\Backend;

use PSX\Schema\Attribute\MaxLength;
use PSX\Schema\Attribute\MinLength;

class AccountChangePassword implements \JsonSerializable, \PSX\Record\RecordableInterface
{
#[MinLength(8)]
#[MaxLength(128)]
protected ?string $oldPassword = null;
#[MinLength(8)]
#[MaxLength(128)]
protected ?string $newPassword = null;
#[MinLength(8)]
#[MaxLength(128)]
protected ?string $verifyPassword = null;
public function setOldPassword(?string $oldPassword) : void
{
Expand Down
3 changes: 0 additions & 3 deletions src/Backend/Action.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,10 @@

namespace Fusio\Model\Backend;

use PSX\Schema\Attribute\Pattern;

class Action implements \JsonSerializable, \PSX\Record\RecordableInterface
{
protected ?int $id = null;
protected ?int $status = null;
#[Pattern('^[a-zA-Z0-9\\-\\_]{3,255}$')]
protected ?string $name = null;
protected ?string $class = null;
protected ?bool $async = null;
Expand Down
3 changes: 0 additions & 3 deletions src/Backend/ActionCreate.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@

namespace Fusio\Model\Backend;

use PSX\Schema\Attribute\Required;

#[Required(array('name'))]
class ActionCreate extends Action implements \JsonSerializable, \PSX\Record\RecordableInterface
{
}
Expand Down
5 changes: 0 additions & 5 deletions src/Backend/ActionExecuteRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,8 @@

namespace Fusio\Model\Backend;

use PSX\Schema\Attribute\Pattern;
use PSX\Schema\Attribute\Required;

#[Required(array('method'))]
class ActionExecuteRequest implements \JsonSerializable, \PSX\Record\RecordableInterface
{
#[Pattern('GET|POST|PUT|PATCH|DELETE')]
protected ?string $method = null;
protected ?string $uriFragments = null;
protected ?string $parameters = null;
Expand Down
3 changes: 0 additions & 3 deletions src/Backend/App.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,11 @@

namespace Fusio\Model\Backend;

use PSX\Schema\Attribute\Pattern;

class App implements \JsonSerializable, \PSX\Record\RecordableInterface
{
protected ?int $id = null;
protected ?int $userId = null;
protected ?int $status = null;
#[Pattern('^[a-zA-Z0-9\\-\\_]{3,64}$')]
protected ?string $name = null;
protected ?string $url = null;
protected ?string $parameters = null;
Expand Down
3 changes: 0 additions & 3 deletions src/Backend/AppCreate.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@

namespace Fusio\Model\Backend;

use PSX\Schema\Attribute\Required;

#[Required(array('userId', 'name', 'url', 'scopes'))]
class AppCreate extends App implements \JsonSerializable, \PSX\Record\RecordableInterface
{
}
Expand Down
3 changes: 0 additions & 3 deletions src/Backend/Category.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,9 @@

namespace Fusio\Model\Backend;

use PSX\Schema\Attribute\Pattern;

class Category implements \JsonSerializable, \PSX\Record\RecordableInterface
{
protected ?int $id = null;
#[Pattern('^[a-zA-Z0-9\\-\\_]{3,64}$')]
protected ?string $name = null;
public function setId(?int $id) : void
{
Expand Down
3 changes: 0 additions & 3 deletions src/Backend/CategoryCreate.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@

namespace Fusio\Model\Backend;

use PSX\Schema\Attribute\Required;

#[Required(array('name'))]
class CategoryCreate extends Category implements \JsonSerializable, \PSX\Record\RecordableInterface
{
}
Expand Down
2 changes: 0 additions & 2 deletions src/Backend/Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,10 @@

use PSX\Schema\Attribute\Description;
use PSX\Schema\Attribute\Key;
use PSX\Schema\Attribute\Pattern;

class Connection implements \JsonSerializable, \PSX\Record\RecordableInterface
{
protected ?int $id = null;
#[Pattern('^[a-zA-Z0-9\\-\\_]{3,255}$')]
protected ?string $name = null;
protected ?string $class = null;
#[Key('oauth2')]
Expand Down
2 changes: 0 additions & 2 deletions src/Backend/ConnectionConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,9 @@

namespace Fusio\Model\Backend;

use PSX\Schema\Attribute\MaxProperties;
/**
* @extends \PSX\Record\Record<mixed>
*/
#[MaxProperties(16)]
class ConnectionConfig extends \PSX\Record\Record
{
}
Expand Down
3 changes: 0 additions & 3 deletions src/Backend/Cronjob.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,9 @@

namespace Fusio\Model\Backend;

use PSX\Schema\Attribute\Pattern;

class Cronjob implements \JsonSerializable, \PSX\Record\RecordableInterface
{
protected ?int $id = null;
#[Pattern('^[a-zA-Z0-9\\-\\_]{3,64}$')]
protected ?string $name = null;
protected ?string $cron = null;
protected ?string $action = null;
Expand Down
3 changes: 0 additions & 3 deletions src/Backend/CronjobCreate.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@

namespace Fusio\Model\Backend;

use PSX\Schema\Attribute\Required;

#[Required(array('name', 'cron', 'action'))]
class CronjobCreate extends Cronjob implements \JsonSerializable, \PSX\Record\RecordableInterface
{
}
Expand Down
3 changes: 0 additions & 3 deletions src/Backend/Event.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,9 @@

namespace Fusio\Model\Backend;

use PSX\Schema\Attribute\Pattern;

class Event implements \JsonSerializable, \PSX\Record\RecordableInterface
{
protected ?int $id = null;
#[Pattern('^[a-zA-Z0-9\\-\\_\\.]{3,64}$')]
protected ?string $name = null;
protected ?string $description = null;
protected ?string $schema = null;
Expand Down
3 changes: 0 additions & 3 deletions src/Backend/EventCreate.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@

namespace Fusio\Model\Backend;

use PSX\Schema\Attribute\Required;

#[Required(array('name'))]
class EventCreate extends Event implements \JsonSerializable, \PSX\Record\RecordableInterface
{
}
Expand Down
2 changes: 0 additions & 2 deletions src/Backend/GeneratorProviderConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,9 @@

namespace Fusio\Model\Backend;

use PSX\Schema\Attribute\MaxProperties;
/**
* @extends \PSX\Record\Record<mixed>
*/
#[MaxProperties(16)]
class GeneratorProviderConfig extends \PSX\Record\Record
{
}
Expand Down
3 changes: 0 additions & 3 deletions src/Backend/Identity.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,11 @@

namespace Fusio\Model\Backend;

use PSX\Schema\Attribute\Pattern;

class Identity implements \JsonSerializable, \PSX\Record\RecordableInterface
{
protected ?int $id = null;
protected ?int $appId = null;
protected ?int $roleId = null;
#[Pattern('^[a-zA-Z0-9\\-\\_]{3,255}$')]
protected ?string $name = null;
protected ?string $icon = null;
protected ?string $class = null;
Expand Down
3 changes: 0 additions & 3 deletions src/Backend/IdentityCreate.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@

namespace Fusio\Model\Backend;

use PSX\Schema\Attribute\Required;

#[Required(array('appId', 'name', 'icon', 'class'))]
class IdentityCreate extends Identity implements \JsonSerializable, \PSX\Record\RecordableInterface
{
}
Expand Down
3 changes: 0 additions & 3 deletions src/Backend/Operation.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@

namespace Fusio\Model\Backend;

use PSX\Schema\Attribute\Pattern;

class Operation implements \JsonSerializable, \PSX\Record\RecordableInterface
{
protected ?int $id = null;
Expand All @@ -17,7 +15,6 @@ class Operation implements \JsonSerializable, \PSX\Record\RecordableInterface
protected ?string $httpMethod = null;
protected ?string $httpPath = null;
protected ?int $httpCode = null;
#[Pattern('^[a-zA-Z0-9\\_\\.]{3,64}$')]
protected ?string $name = null;
protected ?OperationParameters $parameters = null;
protected ?string $incoming = null;
Expand Down
3 changes: 0 additions & 3 deletions src/Backend/OperationCreate.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@

namespace Fusio\Model\Backend;

use PSX\Schema\Attribute\Required;

#[Required(array('httpMethod', 'httpPath', 'httpCode', 'name', 'outgoing', 'action'))]
class OperationCreate extends Operation implements \JsonSerializable, \PSX\Record\RecordableInterface
{
}
Expand Down
3 changes: 0 additions & 3 deletions src/Backend/PageCreate.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@

namespace Fusio\Model\Backend;

use PSX\Schema\Attribute\Required;

#[Required(array('title', 'content'))]
class PageCreate extends Page implements \JsonSerializable, \PSX\Record\RecordableInterface
{
}
Expand Down
3 changes: 0 additions & 3 deletions src/Backend/PlanCreate.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@

namespace Fusio\Model\Backend;

use PSX\Schema\Attribute\Required;

#[Required(array('name', 'price'))]
class PlanCreate extends Plan implements \JsonSerializable, \PSX\Record\RecordableInterface
{
}
Expand Down
6 changes: 0 additions & 6 deletions src/Backend/Rate.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,11 @@

namespace Fusio\Model\Backend;

use PSX\Schema\Attribute\Minimum;
use PSX\Schema\Attribute\Pattern;

class Rate implements \JsonSerializable, \PSX\Record\RecordableInterface
{
protected ?int $id = null;
#[Minimum(0)]
protected ?int $priority = null;
#[Pattern('^[a-zA-Z0-9\\-\\_]{3,64}$')]
protected ?string $name = null;
#[Minimum(0)]
protected ?int $rateLimit = null;
protected ?\PSX\DateTime\Duration $timespan = null;
/**
Expand Down
3 changes: 0 additions & 3 deletions src/Backend/RateCreate.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@

namespace Fusio\Model\Backend;

use PSX\Schema\Attribute\Required;

#[Required(array('name'))]
class RateCreate extends Rate implements \JsonSerializable, \PSX\Record\RecordableInterface
{
}
Expand Down
3 changes: 0 additions & 3 deletions src/Backend/Role.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,10 @@

namespace Fusio\Model\Backend;

use PSX\Schema\Attribute\Pattern;

class Role implements \JsonSerializable, \PSX\Record\RecordableInterface
{
protected ?int $id = null;
protected ?int $categoryId = null;
#[Pattern('^[a-zA-Z0-9\\-\\_]{3,64}$')]
protected ?string $name = null;
/**
* @var array<string>|null
Expand Down
3 changes: 0 additions & 3 deletions src/Backend/RoleCreate.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@

namespace Fusio\Model\Backend;

use PSX\Schema\Attribute\Required;

#[Required(array('categoryId', 'name'))]
class RoleCreate extends Role implements \JsonSerializable, \PSX\Record\RecordableInterface
{
}
Expand Down
3 changes: 0 additions & 3 deletions src/Backend/Schema.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,10 @@

namespace Fusio\Model\Backend;

use PSX\Schema\Attribute\Pattern;

class Schema implements \JsonSerializable, \PSX\Record\RecordableInterface
{
protected ?int $id = null;
protected ?int $status = null;
#[Pattern('^[a-zA-Z0-9\\-\\_]{3,255}$')]
protected ?string $name = null;
protected ?SchemaSource $source = null;
protected ?SchemaForm $form = null;
Expand Down
3 changes: 0 additions & 3 deletions src/Backend/SchemaCreate.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@

namespace Fusio\Model\Backend;

use PSX\Schema\Attribute\Required;

#[Required(array('name'))]
class SchemaCreate extends Schema implements \JsonSerializable, \PSX\Record\RecordableInterface
{
}
Expand Down
3 changes: 0 additions & 3 deletions src/Backend/Scope.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,9 @@

namespace Fusio\Model\Backend;

use PSX\Schema\Attribute\Pattern;

class Scope implements \JsonSerializable, \PSX\Record\RecordableInterface
{
protected ?int $id = null;
#[Pattern('^[a-zA-Z0-9\\-\\_\\.]{3,64}$')]
protected ?string $name = null;
protected ?string $description = null;
/**
Expand Down
3 changes: 0 additions & 3 deletions src/Backend/ScopeCreate.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@

namespace Fusio\Model\Backend;

use PSX\Schema\Attribute\Required;

#[Required(array('name'))]
class ScopeCreate extends Scope implements \JsonSerializable, \PSX\Record\RecordableInterface
{
}
Expand Down
3 changes: 0 additions & 3 deletions src/Backend/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,12 @@

namespace Fusio\Model\Backend;

use PSX\Schema\Attribute\Pattern;

class User implements \JsonSerializable, \PSX\Record\RecordableInterface
{
protected ?int $id = null;
protected ?int $roleId = null;
protected ?int $planId = null;
protected ?int $status = null;
#[Pattern('^[a-zA-Z0-9\\-\\_\\.]{3,32}$')]
protected ?string $name = null;
protected ?string $email = null;
protected ?int $points = null;
Expand Down
3 changes: 0 additions & 3 deletions src/Backend/UserCreate.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@

namespace Fusio\Model\Backend;

use PSX\Schema\Attribute\Required;

#[Required(array('roleId', 'status', 'name', 'email', 'password'))]
class UserCreate extends User implements \JsonSerializable, \PSX\Record\RecordableInterface
{
protected ?string $password = null;
Expand Down
Loading

0 comments on commit bd26761

Please sign in to comment.