Skip to content

Commit 3387e52

Browse files
SP-19172 - add format field to RawImageContainer
1 parent a2fe34b commit 3387e52

File tree

2 files changed

+18
-6
lines changed

2 files changed

+18
-6
lines changed

p-ping.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ paths:
1616
content:
1717
application/json:
1818
schema:
19-
$ref: "#/components/schemas/DeviceInfo"
19+
$ref: "#/components/schemas/DeviceInfoDeprecated"
2020

2121
components:
2222
schemas:
23-
DeviceInfo:
23+
DeviceInfoDeprecated:
2424
type: object
2525
properties:
2626
app-name:

rt-raw-image.yml

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,26 @@ components:
44

55
DocumentImageResult:
66
title: "Document Image"
7+
description: "Contains cropped and rotated with perspective compensation image of document.
8+
Single input image can contain multiple document side/pages, which will be returned as separated results.
9+
Most of coordinates in other types defined on that image"
710
allOf:
811
- type: object
9-
description: "Contains cropped and rotated with perspective compensation image of document.
10-
Single input image can contain multiple document side/pages, which will be returned as separated results.
11-
Most of coordinates in other types defined on that image"
1212
required:
1313
- RawImageContainer
1414
properties:
1515
RawImageContainer:
16-
$ref: "./common.yml#/components/schemas/ImageData"
16+
$ref: "#/components/schemas/RawImageContainerFieldList"
1717
- $ref: "./rt.yml#/components/schemas/ResultItem"
18+
19+
RawImageContainerFieldList:
20+
title: "RawImageContainerFieldList"
21+
allOf:
22+
- type: object
23+
required:
24+
- format
25+
properties:
26+
format:
27+
description: "Image format"
28+
type: string
29+
- $ref: "./common.yml#/components/schemas/ImageData"

0 commit comments

Comments
 (0)