diff options
| author | bozokopic <bozo.kopic@gmail.com> | 2018-04-12 15:40:26 +0200 |
|---|---|---|
| committer | bozokopic <bozo.kopic@gmail.com> | 2018-04-12 15:40:26 +0200 |
| commit | 8e3611c34f832fe6d9af67129e2930516d926e7e (patch) | |
| tree | aa34b94c42e179c94357dd2775758259dda4e033 /schemas_json | |
| parent | 2b6b2b429376d05931b67cd2009dd5aa93cc841f (diff) | |
backend web server
Diffstat (limited to 'schemas_json')
| -rw-r--r-- | schemas_json/messages.yaml | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/schemas_json/messages.yaml b/schemas_json/messages.yaml index 899f786..44b8c3a 100644 --- a/schemas_json/messages.yaml +++ b/schemas_json/messages.yaml @@ -1,4 +1,53 @@ --- "$schema": "http://json-schema.org/schema#" id: "opcut://messages.yaml#" +oneOf: + - "$ref": "opcut://messages.yaml#/definitions/calculate/request" + - "$ref": "opcut://messages.yaml#/definitions/calculate/response" + - "$ref": "opcut://messages.yaml#/definitions/generate_output/request" + - "$ref": "opcut://messages.yaml#/definitions/generate_output/response" +definitions: + calculate: + request: + type: object + required: + - params + - method + properties: + params: + "$ref": "opcut://params.yaml#" + method: + enum: + - GREEDY + - FORWARD_GREEDY + response: + type: object + required: + - result + properties: + result: + oneOf: + - type: "null" + - "$ref": "opcut://result.yaml#" + generate_output: + request: + type: object + required: + - result + - output_type + properties: + result: + "$ref": "opcut://result.yaml#" + output_type: + enum: + - PDF + response: + type: object + required: + - data + properties: + result: + type: + - string + - "null" ... |
