Skip to content

Commit 925ab70

Browse files
Merge pull request #151 from regulaforensics/Fix_image_transaction_data
Fix image transaction data
2 parents a826eab + 3cf4c22 commit 925ab70

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

common.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,10 @@ components:
123123
$ref: "#/components/schemas/ImageBase64"
124124

125125
ImageTransactionData:
126-
type: array
127-
items:
128-
$ref: './rt-images.yml#/components/schemas/ImagesFieldValue'
126+
type: object
127+
properties:
128+
image:
129+
$ref: './rt-images.yml#/components/schemas/ImagesFieldValue'
129130

130131
ImageBase64:
131132
description: "Base64 encoded image"

index.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ components:
9191
$ref: "./rt-images.yml#/components/schemas/Images"
9292
DocumentImage:
9393
$ref: "./common.yml#/components/schemas/ImageData"
94+
TransactionImage:
95+
$ref: "./common.yml#/components/schemas/ImageTransactionData"
9496
DocumentTypesCandidates:
9597
$ref: "./rt-doc-type-old.yml#/components/schemas/DocumentTypesCandidatesList"
9698
ChosenDocumentType:

0 commit comments

Comments
 (0)