Open GillesInnov35 opened 3 weeks ago
hi @all,
in order to explain in more details see below code example with a enum MatchResult which should be referenced by all attribute schema description in the response.
MatchResult: type: string description: enumeration of match result enum:
- 'true'
- 'false'
- 'not_available'
KYC_MatchResponse:
type: object
properties:
idDocumentMatch:
$ref: '#/components/schemas/MatchResult'
nameMatch:
$ref: '#/components/schemas/MatchResult'
givenNameMatch:
$ref: '#/components/schemas/MatchResult'
BR Gilles
Problem description a dedicated enum (True/Flasi/not-available) is declared for each attributeMatch result
Expected behavior Declare a common enum as a schema and referred in each attribute description
Additional context This should strongly facilitate developers' API implementation.
Thanks