mirror of
https://github.com/LibreSign/libresign.git
synced 2025-12-18 05:20:45 +01:00
chore: update openapi documentation
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
This commit is contained in:
parent
ff3a16f223
commit
80136aafd9
5 changed files with 47 additions and 9 deletions
|
|
@ -489,8 +489,6 @@ class FileService {
|
|||
private function loadSignersFromCertData(): void {
|
||||
$this->loadCertDataFromLibreSignFile();
|
||||
foreach ($this->certData as $index => $signer) {
|
||||
// Always set status and statusText for signers from certificate data
|
||||
// These are already signed (status 2)
|
||||
$this->fileData->signers[$index]['status'] = 2;
|
||||
$this->fileData->signers[$index]['statusText'] = $this->signRequestMapper->getTextOfSignerStatus(2);
|
||||
|
||||
|
|
@ -841,10 +839,10 @@ class FileService {
|
|||
'request_sign_date' => $signer->getCreatedAt()->format(DateTimeInterface::ATOM),
|
||||
'signed' => null,
|
||||
'signRequestId' => $signer->getId(),
|
||||
'signingOrder' => $signer->getSigningOrder(),
|
||||
'status' => $signer->getStatus(),
|
||||
'statusText' => $this->signRequestMapper->getTextOfSignerStatus($signer->getStatus()),
|
||||
'me' => array_reduce($identifyMethodsOfSigner, function (bool $carry, IdentifyMethod $identifyMethod) use ($user): bool {
|
||||
'signingOrder' => $signer->getSigningOrder(),
|
||||
'status' => $signer->getStatus(),
|
||||
'statusText' => $this->signRequestMapper->getTextOfSignerStatus($signer->getStatus()),
|
||||
'me' => array_reduce($identifyMethodsOfSigner, function (bool $carry, IdentifyMethod $identifyMethod) use ($user): bool {
|
||||
if ($identifyMethod->getIdentifierKey() === IdentifyMethodService::IDENTIFY_ACCOUNT) {
|
||||
if ($user->getUID() === $identifyMethod->getIdentifierValue()) {
|
||||
return true;
|
||||
|
|
|
|||
|
|
@ -852,7 +852,9 @@
|
|||
"request_sign_date",
|
||||
"signed",
|
||||
"me",
|
||||
"signRequestId"
|
||||
"signRequestId",
|
||||
"status",
|
||||
"statusText"
|
||||
],
|
||||
"properties": {
|
||||
"description": {
|
||||
|
|
@ -918,6 +920,18 @@
|
|||
"format": "int64",
|
||||
"minimum": 0
|
||||
},
|
||||
"status": {
|
||||
"type": "integer",
|
||||
"format": "int64",
|
||||
"enum": [
|
||||
0,
|
||||
1,
|
||||
2
|
||||
]
|
||||
},
|
||||
"statusText": {
|
||||
"type": "string"
|
||||
},
|
||||
"signingOrder": {
|
||||
"type": "integer",
|
||||
"format": "int64",
|
||||
|
|
|
|||
16
openapi.json
16
openapi.json
|
|
@ -702,7 +702,9 @@
|
|||
"request_sign_date",
|
||||
"signed",
|
||||
"me",
|
||||
"signRequestId"
|
||||
"signRequestId",
|
||||
"status",
|
||||
"statusText"
|
||||
],
|
||||
"properties": {
|
||||
"description": {
|
||||
|
|
@ -768,6 +770,18 @@
|
|||
"format": "int64",
|
||||
"minimum": 0
|
||||
},
|
||||
"status": {
|
||||
"type": "integer",
|
||||
"format": "int64",
|
||||
"enum": [
|
||||
0,
|
||||
1,
|
||||
2
|
||||
]
|
||||
},
|
||||
"statusText": {
|
||||
"type": "string"
|
||||
},
|
||||
"signingOrder": {
|
||||
"type": "integer",
|
||||
"format": "int64",
|
||||
|
|
|
|||
|
|
@ -1716,6 +1716,12 @@ export type components = {
|
|||
me: boolean;
|
||||
/** Format: int64 */
|
||||
signRequestId: number;
|
||||
/**
|
||||
* Format: int64
|
||||
* @enum {integer}
|
||||
*/
|
||||
status: 0 | 1 | 2;
|
||||
statusText: string;
|
||||
/** Format: int64 */
|
||||
signingOrder?: number;
|
||||
identifyMethods?: components["schemas"]["IdentifyMethod"][];
|
||||
|
|
|
|||
|
|
@ -1238,6 +1238,12 @@ export type components = {
|
|||
me: boolean;
|
||||
/** Format: int64 */
|
||||
signRequestId: number;
|
||||
/**
|
||||
* Format: int64
|
||||
* @enum {integer}
|
||||
*/
|
||||
status: 0 | 1 | 2;
|
||||
statusText: string;
|
||||
/** Format: int64 */
|
||||
signingOrder?: number;
|
||||
identifyMethods?: components["schemas"]["IdentifyMethod"][];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue