Skip to content

Commit

Permalink
Add script preview to swagger (also add new error codes).
Browse files Browse the repository at this point in the history
  • Loading branch information
gfyrag committed Feb 16, 2022
1 parent d6f389e commit 2ba2d77
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pkg/api/controllers/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,11 @@ paths:
required: true
schema:
type: string
- name: preview
in: query
description: Preview mode
schema:
type: boolean
requestBody:
description: script
content:
Expand Down Expand Up @@ -479,6 +484,8 @@ components:
enum:
- INTERNAL
- INSUFFICIENT_FUND
- COMPILATION_FAILED
- NO_SCRIPT
error_message:
type: string
transaction:
Expand Down

0 comments on commit 2ba2d77

Please sign in to comment.