From 2ba2d7735f49a0f5bc37a5889f374a9e4242397c Mon Sep 17 00:00:00 2001 From: Geoffrey Ragot Date: Wed, 16 Feb 2022 17:48:30 +0100 Subject: [PATCH] Add script preview to swagger (also add new error codes). --- pkg/api/controllers/swagger.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkg/api/controllers/swagger.yaml b/pkg/api/controllers/swagger.yaml index fde4934af..c41bedd25 100644 --- a/pkg/api/controllers/swagger.yaml +++ b/pkg/api/controllers/swagger.yaml @@ -165,6 +165,11 @@ paths: required: true schema: type: string + - name: preview + in: query + description: Preview mode + schema: + type: boolean requestBody: description: script content: @@ -479,6 +484,8 @@ components: enum: - INTERNAL - INSUFFICIENT_FUND + - COMPILATION_FAILED + - NO_SCRIPT error_message: type: string transaction: