diff options
Diffstat (limited to 'schemas_json')
| -rw-r--r-- | schemas_json/messages.yaml | 59 | ||||
| -rw-r--r-- | schemas_json/params.yaml | 46 | ||||
| -rw-r--r-- | schemas_json/result.yaml | 59 |
3 files changed, 0 insertions, 164 deletions
diff --git a/schemas_json/messages.yaml b/schemas_json/messages.yaml deleted file mode 100644 index b1a3169..0000000 --- a/schemas_json/messages.yaml +++ /dev/null @@ -1,59 +0,0 @@ ---- -"$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 - - panel - properties: - result: - "$ref": "opcut://result.yaml#" - output_type: - enum: - - PDF - - SVG - panel: - type: - - "null" - - string - response: - type: object - required: - - data - properties: - result: - type: - - string - - "null" -... diff --git a/schemas_json/params.yaml b/schemas_json/params.yaml deleted file mode 100644 index 24d687f..0000000 --- a/schemas_json/params.yaml +++ /dev/null @@ -1,46 +0,0 @@ ---- -"$schema": "http://json-schema.org/schema#" -id: "opcut://params.yaml#" -type: object -required: - - cut_width - - panels - - items -properties: - cut_width: - type: number - panels: - type: object - patternProperties: - "(.)+": - "$ref": "opcut://params.yaml#/definitions/panel" - items: - type: object - patternProperties: - "(.)+": - "$ref": "opcut://params.yaml#/definitions/item" -definitions: - panel: - type: object - required: - - width - - height - properties: - width: - type: number - height: - type: number - item: - type: object - required: - - width - - height - - can_rotate - properties: - width: - type: number - height: - type: number - can_rotate: - type: boolean -... diff --git a/schemas_json/result.yaml b/schemas_json/result.yaml deleted file mode 100644 index ceb3f42..0000000 --- a/schemas_json/result.yaml +++ /dev/null @@ -1,59 +0,0 @@ ---- -"$schema": "http://json-schema.org/schema#" -id: "opcut://result.yaml#" -type: object -required: - - params - - used - - unused -properties: - params: - "$ref": "opcut://params.yaml#" - used: - type: array - items: - "$ref": "opcut://result.yaml#/definitions/used" - unused: - type: array - items: - "$ref": "opcut://result.yaml#/definitions/unused" -definitions: - used: - type: object - required: - - panel - - item - - x - - y - - rotate - properties: - panel: - type: string - item: - type: string - x: - type: number - y: - type: number - rotate: - type: boolean - unused: - type: object - required: - - panel - - width - - height - - x - - y - properties: - panel: - type: string - width: - type: number - height: - type: number - x: - type: number - y: - type: number -... |
