Skip to content

Commit b504c12

Browse files
SP-19172 - update schemas
1 parent 360a37a commit b504c12

File tree

4 files changed

+27
-29
lines changed

4 files changed

+27
-29
lines changed

common.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,9 @@ components:
122122
properties:
123123
image:
124124
$ref: "#/components/schemas/ImageBase64"
125+
format:
126+
description: "Image format"
127+
type: string
125128

126129
ImageTransactionData:
127130
type: object

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/DeviceInfoDeprecated"
19+
$ref: "#/components/schemas/DeviceInfo"
2020

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

rt-raw-image.yml

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,5 @@ components:
1313
- RawImageContainer
1414
properties:
1515
RawImageContainer:
16-
$ref: "#/components/schemas/RawImageContainerFieldList"
16+
$ref: "./common.yml#/components/schemas/ImageData"
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"

rt.yml

Lines changed: 21 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -110,28 +110,35 @@ components:
110110
discriminator:
111111
propertyName: result_type
112112
mapping:
113+
33: "StatusResult"
114+
36: "TextResult"
113115
1: "DocumentImageResult"
114-
3: "TextDataResult"
115-
5: "DocBarCodeInfo"
116-
6: "GraphicsResult"
117-
8: "DocumentTypesCandidatesResult"
116+
16: "DocumentImageResult"
117+
37: "ImagesResult"
118118
9: "ChosenDocumentTypeResult"
119-
15: "LexicalAnalysisResult"
119+
8: "DocumentTypesCandidatesResult"
120120
17: "TextDataResult"
121+
3: "TextDataResult"
121122
18: "TextDataResult"
123+
26: "TextDataResult"
124+
102: "TextDataResult"
125+
6: "GraphicsResult"
122126
19: "GraphicsResult"
127+
32: "GraphicsResult"
128+
35: "GraphicsResult"
129+
38: "GraphicsResult"
130+
103: "GraphicsResult"
131+
15: "LexicalAnalysisResult"
123132
20: "AuthenticityResult"
124-
30: "ImageQualityResult"
125-
33: "StatusResult"
126-
34: "AuthenticityResult"
127-
36: "TextResult"
128-
37: "ImagesResult"
129133
39: "AuthenticityResult"
130-
49: "EncryptedRCLResult"
131-
50: "LicenseResult"
134+
34: "AuthenticityResult"
135+
30: "ImageQualityResult"
132136
85: "DocumentPositionResult"
133-
102: "TextDataResult"
134-
103: "GraphicsResult"
137+
61: "DocumentPositionResult"
138+
62: "DocumentPositionResult"
139+
5: "DocBarCodeInfo"
140+
50: "LicenseResult"
141+
49: "EncryptedRCLResult"
135142

136143
ContainerList:
137144
type: object

0 commit comments

Comments
 (0)