Skip to content

Commit

Permalink
Adjusts swagger types
Browse files Browse the repository at this point in the history
  • Loading branch information
abtestingalpha committed Sep 20, 2024
1 parent e8217c9 commit b648b26
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 14 deletions.
6 changes: 3 additions & 3 deletions packages/rest-api/src/routes/bridgeRoute.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ const router = express.Router()
* name: fromChain
* required: true
* schema:
* type: string
* type: integer
* description: The source chain ID
* - in: query
* name: toChain
* required: true
* schema:
* type: string
* type: integer
* description: The destination chain ID
* - in: query
* name: fromToken
Expand All @@ -45,7 +45,7 @@ const router = express.Router()
* name: amount
* required: true
* schema:
* type: string
* type: number
* description: The amount of tokens to bridge
* responses:
* 200:
Expand Down
6 changes: 3 additions & 3 deletions packages/rest-api/src/routes/bridgeTxInfoRoute.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const router = express.Router()
* name: fromChain
* required: true
* schema:
* type: string
* type: integer
* description: The source chain ID
* - in: query
* name: fromToken
Expand All @@ -34,7 +34,7 @@ const router = express.Router()
* name: toChain
* required: true
* schema:
* type: string
* type: integer
* description: The destination chain ID
* - in: query
* name: toToken
Expand All @@ -46,7 +46,7 @@ const router = express.Router()
* name: amount
* required: true
* schema:
* type: string
* type: number
* description: The amount of tokens to bridge
* - in: query
* name: destAddress
Expand Down
2 changes: 1 addition & 1 deletion packages/rest-api/src/routes/bridgeTxStatusRoute.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const router = express.Router()
* name: destChainId
* required: true
* schema:
* type: string
* type: integer
* description: The ID of the destination chain
* - in: query
* name: bridgeModule
Expand Down
2 changes: 1 addition & 1 deletion packages/rest-api/src/routes/destinationTokensRoute.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const router = express.Router()
* name: fromChain
* required: true
* schema:
* type: string
* type: integer
* description: The source chain ID
* - in: query
* name: fromToken
Expand Down
2 changes: 1 addition & 1 deletion packages/rest-api/src/routes/destinationTxRoute.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const router = express.Router()
* name: originChainId
* required: true
* schema:
* type: string
* type: integer
* description: The ID of the origin chain where the transaction was initiated
* - in: query
* name: txHash
Expand Down
4 changes: 2 additions & 2 deletions packages/rest-api/src/routes/swapRoute.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const router = express.Router()
* name: chain
* required: true
* schema:
* type: string
* type: integer
* description: The chain ID where the swap will occur
* - in: query
* name: fromToken
Expand All @@ -39,7 +39,7 @@ const router = express.Router()
* name: amount
* required: true
* schema:
* type: string
* type: number
* description: The amount of tokens to swap
* responses:
* 200:
Expand Down
4 changes: 2 additions & 2 deletions packages/rest-api/src/routes/swapTxInfoRoute.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const router = express.Router()
* name: chain
* required: true
* schema:
* type: string
* type: integer
* description: The chain ID where the swap will occur
* - in: query
* name: fromToken
Expand All @@ -40,7 +40,7 @@ const router = express.Router()
* name: amount
* required: true
* schema:
* type: string
* type: number
* description: The amount of tokens to swap
* - in: query
* name: address
Expand Down
2 changes: 1 addition & 1 deletion packages/rest-api/src/routes/synapseTxIdRoute.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const router = express.Router()
* name: originChainId
* required: true
* schema:
* type: string
* type: integer
* description: The ID of the origin chain where the transaction was initiated
* - in: query
* name: bridgeModule
Expand Down

0 comments on commit b648b26

Please sign in to comment.