Skip to content

Commit 011ac91

Browse files
committed
fix(types/openapi): make filesCount and files non-optional in ValidatedFile
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent a9d5e36 commit 011ac91

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

src/types/openapi/openapi.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ export type paths = {
502502
};
503503
/**
504504
* Validate a file using Uuid
505-
* @description Validate a file returning file data. When `nodeType` is `envelope`, the response includes `filesCount` and `files` as a list of envelope child files.
505+
* @description Validate a file returning file data. The response always includes `filesCount` and `files`. For `nodeType=file`, `filesCount=1` and `files` contains the current file. For `nodeType=envelope`, `files` contains envelope child files.
506506
*/
507507
get: operations["file-validate-uuid"];
508508
put?: never;
@@ -522,7 +522,7 @@ export type paths = {
522522
};
523523
/**
524524
* Validate a file using FileId
525-
* @description Validate a file returning file data. When `nodeType` is `envelope`, the response includes `filesCount` and `files` as a list of envelope child files.
525+
* @description Validate a file returning file data. The response always includes `filesCount` and `files`. For `nodeType=file`, `filesCount=1` and `files` contains the current file. For `nodeType=envelope`, `files` contains envelope child files.
526526
*/
527527
get: operations["file-validate-file-id"];
528528
put?: never;
@@ -544,7 +544,7 @@ export type paths = {
544544
put?: never;
545545
/**
546546
* Validate a binary file
547-
* @description Validate a binary file returning file data. Use field 'file' for the file upload. When `nodeType` is `envelope`, the response includes `filesCount` and `files` as a list of envelope child files.
547+
* @description Validate a binary file returning file data. Use field 'file' for the file upload. The response always includes `filesCount` and `files`. For `nodeType=file`, `filesCount=1` and `files` contains the current file. For `nodeType=envelope`, `files` contains envelope child files.
548548
*/
549549
post: operations["file-validate-binary"];
550550
delete?: never;
@@ -863,7 +863,7 @@ export type paths = {
863863
put?: never;
864864
/**
865865
* Request signature
866-
* @description Request that a file be signed by a list of signers. Each signer in the signers array can optionally include a 'signingOrder' field to control the order of signatures when ordered signing flow is enabled. When the created entity is an envelope (`nodeType` = `envelope`), the returned `data` includes `filesCount` and `files` as a list of envelope child files.
866+
* @description Request that a file be signed by a list of signers. Each signer in the signers array can optionally include a 'signingOrder' field to control the order of signatures when ordered signing flow is enabled. The returned `data` always includes `filesCount` and `files`. For `nodeType=file`, `filesCount=1` and `files` contains the current file. For `nodeType=envelope`, `files` contains envelope child files.
867867
*/
868868
post: operations["request_signature-request"];
869869
delete?: never;
@@ -1657,8 +1657,8 @@ export type components = {
16571657
/** Format: int64 */
16581658
docmdpLevel: number;
16591659
/** Format: int64 */
1660-
filesCount?: number;
1661-
files?: components["schemas"]["ValidatedChildFile"][];
1660+
filesCount: number;
1661+
files: components["schemas"]["ValidatedChildFile"][];
16621662
/** Format: int64 */
16631663
totalPages: number;
16641664
/** Format: int64 */

0 commit comments

Comments
 (0)