Skip to content

Commit 7455a1a

Browse files
committed
After review 0
1 parent c263e0d commit 7455a1a

File tree

8 files changed

+11
-11
lines changed

8 files changed

+11
-11
lines changed

src/Identity/Request/UpdateAdministratorRequest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ class UpdateAdministratorRequest implements RequestInterface
7272
public ?string $email = null;
7373

7474
#[Assert\Type('bool')]
75-
public ?bool $superAdmin = null;
75+
public ?bool $superUser = null;
7676

7777
/**
7878
* Array of privileges where keys are privilege names (from PrivilegeFlag enum) and values are booleans.
@@ -93,7 +93,7 @@ public function getDto(): UpdateAdministratorDto
9393
loginName: $this->loginName,
9494
password: $this->password,
9595
email: $this->email,
96-
superAdmin: $this->superAdmin,
96+
superAdmin: $this->superUser,
9797
privileges: $this->privileges
9898
);
9999
}

src/Identity/Serializer/AdminAttributeDefinitionNormalizer.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ public function normalize($object, string $format = null, array $context = []):
3838
'list_order' => $object->getListOrder(),
3939
'default_value' => $object->getDefaultValue(),
4040
'required' => $object->isRequired(),
41-
'table_name' => $object->getTableName(),
4241
];
4342
}
4443

src/Identity/Serializer/AdminAttributeValueNormalizer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
schema: 'AdminAttributeValue',
1313
properties: [
1414
new OA\Property(property: 'administrator', ref: '#/components/schemas/Administrator'),
15-
new OA\Property(property: 'definition', ref: '#/components/schemas/AttributeDefinition'),
15+
new OA\Property(property: 'definition', ref: '#/components/schemas/AdminAttributeDefinition'),
1616
new OA\Property(property: 'value', type: 'string', example: 'United States'),
1717
],
1818
type: 'object'

src/Identity/Serializer/AdministratorNormalizer.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
new OA\Property(property: 'login_name', type: 'string', example: 'admin'),
1818
new OA\Property(property: 'email', type: 'string', format: 'email', example: 'admin@example.com'),
1919
new OA\Property(property: 'super_user', type: 'boolean', example: true),
20+
new OA\Property(property: 'privileges', type: 'array', items: new OA\Items(type: 'string')),
2021
new OA\Property(
2122
property: 'created_at',
2223
type: 'string',
@@ -42,7 +43,7 @@ public function normalize($object, string $format = null, array $context = []):
4243
'id' => $object->getId(),
4344
'login_name' => $object->getLoginName(),
4445
'email' => $object->getEmail(),
45-
'super_admin' => $object->isSuperUser(),
46+
'super_user' => $object->isSuperUser(),
4647
'privileges' => $object->getPrivileges()->all(),
4748
'created_at' => $object->getCreatedAt()?->format(DateTimeInterface::ATOM),
4849
];

src/Messaging/Request/Message/MessageScheduleRequest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@
1313
required: ['embargo'],
1414
properties: [
1515
new OA\Property(property: 'embargo', type: 'string', format: 'date-time', example: '2025-04-17 09:00:00'),
16-
new OA\Property(property: 'repeat_interval', type: 'string', example: '24 hours'),
16+
new OA\Property(property: 'repeat_interval', type: 'integer', example: '24 hours'),
1717
new OA\Property(
1818
property: 'repeat_until',
1919
type: 'string',
2020
format: 'date-time',
2121
example: '2025-04-30T00:00:00+04:00'
2222
),
23-
new OA\Property(property: 'requeue_interval', type: 'string', example: '12 hours'),
23+
new OA\Property(property: 'requeue_interval', type: 'integer', example: '12 hours'),
2424
new OA\Property(
2525
property: 'requeue_until',
2626
type: 'string',

src/Messaging/Serializer/ListMessageNormalizer.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
example: '2022-12-01T10:00:00Z'
2929
),
3030
],
31+
type: 'object'
3132
)]
3233
class ListMessageNormalizer implements NormalizerInterface
3334
{

src/Subscription/Serializer/AttributeDefinitionNormalizer.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,10 @@
1313
properties: [
1414
new OA\Property(property: 'id', type: 'integer', example: 1),
1515
new OA\Property(property: 'name', type: 'string', example: 'Country'),
16-
new OA\Property(property: 'type', type: 'string', example: 'checkbox'),
16+
new OA\Property(property: 'type', type: 'string', example: 'checkbox', nullable: true),
1717
new OA\Property(property: 'list_order', type: 'integer', example: 12),
1818
new OA\Property(property: 'default_value', type: 'string', example: 'United States'),
1919
new OA\Property(property: 'required', type: 'boolean', example: true),
20-
new OA\Property(property: 'table_name', type: 'string', example: 'list_attributes'),
2120
new OA\Property(
2221
property: 'options',
2322
type: 'array',

src/Subscription/Serializer/SubscriberHistoryNormalizer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
format: 'date-time',
2020
example: '2022-12-01T10:00:00Z'
2121
),
22-
new OA\Property(property: 'summery', type: 'string', example: 'Added by admin'),
22+
new OA\Property(property: 'summary', type: 'string', example: 'Added by admin'),
2323
new OA\Property(property: 'detail', type: 'string', example: 'Added with add-email on test'),
2424
new OA\Property(property: 'system_info', type: 'string', example: 'HTTP_USER_AGENT = Mozilla/5.0'),
2525
],
@@ -40,7 +40,7 @@ public function normalize($object, string $format = null, array $context = []):
4040
'id' => $object->getId(),
4141
'ip' => $object->getIp(),
4242
'created_at' => $object->getCreatedAt()->format('Y-m-d\TH:i:sP'),
43-
'summery' => $object->getSummary(),
43+
'summary' => $object->getSummary(),
4444
'detail' => $object->getDetail(),
4545
'system_info' => $object->getSystemInfo(),
4646
];

0 commit comments

Comments
 (0)