Skip to content

Commit 8c7e5db

Browse files
committed
feat(openapi): add @public tag to all 11 master express operations
Add @public JSDoc tag to each of the 11 route definitions so that the openapi-generator emits x-internal: false, making visibility explicit for the static-analysis lint rule. Also upgrade @api-ts/openapi-generator from ^5.7.0 (devDeps) to ^6.1.0 which supports the @public tag, and move the duplicate dependencies entry to devDependencies where it belongs. Regenerate masterBitgoExpress.json with the updated spec. Ticket: DX-1060 Session-Id: 204a12b3-8a39-467d-b9e8-9a181d38f9a7 Task-Id: d5693757-17d5-4e8d-863a-d636485f9c97
1 parent eb0a27c commit 8c7e5db

13 files changed

Lines changed: 221 additions & 178 deletions

masterBitgoExpress.json

Lines changed: 204 additions & 171 deletions
Large diffs are not rendered by default.

package-lock.json

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
},
2525
"dependencies": {
2626
"@api-ts/io-ts-http": "^3.2.1",
27-
"@api-ts/openapi-generator": "^6.0.1",
2827
"@api-ts/response": "^2.1.0",
2928
"@api-ts/superagent-wrapper": "^1.3.3",
3029
"@api-ts/typed-express-router": "2.0.0",
@@ -151,7 +150,7 @@
151150
"lodash": "^4.18.0"
152151
},
153152
"devDependencies": {
154-
"@api-ts/openapi-generator": "^5.7.0",
153+
"@api-ts/openapi-generator": "^6.1.0",
155154
"@commitlint/cli": "^19.8.1",
156155
"@semantic-release/commit-analyzer": "^11.1.0",
157156
"@semantic-release/release-notes-generator": "^12.1.0",

src/masterBitgoExpress/routers/accelerateRoute.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ const AccelerateResponse: HttpResponse = {
8686
*
8787
* @tag Advanced Wallets
8888
* @operationId advancedwallet.accelerate.tx
89+
* @public
8990
*/
9091
export const AccelerateRoute = httpRoute({
9192
method: 'POST',

src/masterBitgoExpress/routers/awmExpressHealth.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ const PingAwmResponse: HttpResponse = {
2828
*
2929
* @tag Advanced Wallets
3030
* @operationId advancedwallet.mbe.awm.ping
31+
* @public
3132
*/
3233
const PingAwmRoute = httpRoute({
3334
method: 'POST',

src/masterBitgoExpress/routers/consolidateRoute.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ export const ConsolidateResponse: HttpResponse = {
4545
*
4646
* @tag Advanced Wallets
4747
* @operationId advancedwallet.consolidate
48+
* @public
4849
*/
4950
export const ConsolidateRoute = httpRoute({
5051
method: 'POST',

src/masterBitgoExpress/routers/consolidateUnspentsRoute.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ export const ConsolidateUnspentsResponse: HttpResponse = {
8484
*
8585
* @tag Advanced Wallets
8686
* @operationId advancedwallet.consolidate.unspents
87+
* @public
8788
*/
8889
export const ConsolidateUnspentsRoute = httpRoute({
8990
method: 'POST',

src/masterBitgoExpress/routers/generateWalletRoute.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,7 @@ const GenerateWalletRequest = {
350350
*
351351
* @tag Advanced Wallets
352352
* @operationId advancedwallet.generate
353+
* @public
353354
*/
354355
export const WalletGenerateRoute = httpRoute({
355356
method: 'POST',

src/masterBitgoExpress/routers/healthCheck.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ const VersionResponse: HttpResponse = {
2222
*
2323
* @tag Advanced Wallets
2424
* @operationId advancedwallet.mbe.ping
25+
* @public
2526
*/
2627
const PingRoute = httpRoute({
2728
method: 'POST',
@@ -38,6 +39,7 @@ const PingRoute = httpRoute({
3839
*
3940
* @tag Advanced Wallets
4041
* @operationId advancedwallet.mbe.version
42+
* @public
4143
*/
4244
const VersionRoute = httpRoute({
4345
method: 'GET',

src/masterBitgoExpress/routers/recoveryConsolidationsRoute.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ const RecoveryConsolidationsWalletResponse: HttpResponse = {
127127
*
128128
* @tag Advanced Wallets
129129
* @operationId advancedwallet.consolidate.recovery
130+
* @public
130131
*/
131132
export const RecoveryConsolidationsRoute = httpRoute({
132133
method: 'POST',

0 commit comments

Comments
 (0)