Skip to content

Commit 9f39d85

Browse files
committed
docs(express): remove custom field descriptions, use only platform.yaml
TICKET: WP-7280
1 parent c917e7e commit 9f39d85

2 files changed

Lines changed: 0 additions & 15 deletions

File tree

modules/express/src/typedRoutes/api/common/decrypt.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,8 @@ import * as t from 'io-ts';
22
import { httpRoute, httpRequest, optional } from '@api-ts/io-ts-http';
33
import { BitgoExpressError } from '../../schemas/error';
44

5-
/**
6-
* Request body for decrypting data
7-
*
8-
* Decrypt a ciphertext generated by encrypt route with provided password
9-
*/
105
export const DecryptRequestBody = {
11-
/** The encrypted ciphertext string to decrypt */
126
input: t.string,
13-
/** The password used as the decryption key (must match the password used to encrypt) */
147
password: optional(t.string),
158
};
169

modules/express/src/typedRoutes/api/common/encrypt.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,9 @@ import * as t from 'io-ts';
22
import { httpRoute, httpRequest, optional } from '@api-ts/io-ts-http';
33
import { BitgoExpressError } from '../../schemas/error';
44

5-
/**
6-
* Request body for encrypting data
7-
*
8-
* Symmetrically encrypt an arbitrary message with provided password
9-
*/
105
export const EncryptRequestBody = {
11-
/** The plaintext string to encrypt */
126
input: t.string,
13-
/** The password used as the encryption key */
147
password: optional(t.string),
15-
/** Additional authenticated data included in encryption but not encrypted itself */
168
adata: optional(t.string),
179
};
1810

0 commit comments

Comments
 (0)