-
Notifications
You must be signed in to change notification settings - Fork 10
/
rt-authenticity.yml
136 lines (123 loc) · 4.07 KB
/
rt-authenticity.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
openapi: 3.0.3
components:
schemas:
AuthenticityResult:
title: "Authenticity Checks"
allOf:
- type: object
required:
- AuthenticityCheckList
properties:
AuthenticityCheckList:
$ref: "#/components/schemas/AuthenticityCheckList"
- $ref: "./rt.yml#/components/schemas/ResultItem"
AuthenticityCheckList:
type: object
required:
- List
properties:
Count:
type: integer
description: "Count of items in List"
List:
type: array
description: "Authenticity Check"
items:
$ref: "#/components/schemas/AuthenticityCheckResult"
AuthenticityCheckResult:
type: object
required:
- Type
- Result
- List
properties:
Type:
$ref: "./authenticity/e-result-type.yml#/components/schemas/AuthenticityResultType"
Result:
$ref: "./common.yml#/components/schemas/CheckResult"
List:
type: array
items:
anyOf:
- $ref: "#/components/schemas/SecurityFeatureResult"
- $ref: "#/components/schemas/IdentResult"
- $ref: "#/components/schemas/FiberResult"
- $ref: "#/components/schemas/OCRSecurityTextResult"
- $ref: "#/components/schemas/PhotoIdentResult"
AuthenticityType:
type: integer
description: "Same as authenticity result type, but used for safe parsing of not-described values: https://docs.regulaforensics.com/develop/doc-reader-sdk/web-service/development/enums/authenticity-result-type/"
default: 0
AuthenticityCheckResultItem:
description: "Common fields for all authenticity result objects"
type: object
required:
- Type
properties:
Type:
$ref: "#/components/schemas/AuthenticityType"
ElementResult:
$ref: "./common.yml#/components/schemas/CheckResult"
ElementDiagnose:
$ref: "./authenticity/e-check-diagnose.yml#/components/schemas/CheckDiagnose"
PercentValue:
type: integer
format: double
discriminator:
propertyName: Type
mapping:
1: "SecurityFeatureResult"
2: "SecurityFeatureResult"
4: "IdentResult"
8: "SecurityFeatureResult"
16: "FiberResult"
32: "IdentResult"
64: "OCRSecurityTextResult"
128: "PhotoIdentResult"
256: "PhotoIdentResult"
512: "SecurityFeatureResult"
1024: "IdentResult"
2048: "IdentResult"
4096: "SecurityFeatureResult"
8192: "SecurityFeatureResult"
16384: "FiberResult"
32768: "IdentResult"
65536: "SecurityFeatureResult"
131072: "IdentResult"
262144: "IdentResult"
524288: "IdentResult"
1048576: "IdentResult"
8388608: "SecurityFeatureResult"
SecurityFeatureResult:
$ref: "./authenticity/rt-security-feature.yml#/components/schemas/SecurityFeatureResult"
IdentResult:
$ref: "./authenticity/rt-ident.yml#/components/schemas/IdentResult"
FiberResult:
$ref: "./authenticity/rt-fiber.yml#/components/schemas/FiberResult"
OCRSecurityTextResult:
$ref: "./authenticity/rt-ocr-security-text.yml#/components/schemas/OCRSecurityTextResult"
PhotoIdentResult:
$ref: "./authenticity/rt-photo-ident.yml#/components/schemas/PhotoIdentResult"
AreaContainer:
description: "Checked fragment coordinates"
type: object
properties:
Count:
type: integer
List:
type: array
items:
$ref: "./common.yml#/components/schemas/RectangleCoordinates"
Points:
type: array
items:
$ref: "#/components/schemas/PointsContainer"
PointsContainer:
type: object
properties:
PointCount:
type: integer
PointsList:
type: array
items:
$ref: "./common.yml#/components/schemas/Point"