Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a common enum for attributeMatch result #96

Closed
GillesInnov35 opened this issue Jun 7, 2024 · 1 comment · Fixed by #104
Closed

Create a common enum for attributeMatch result #96

GillesInnov35 opened this issue Jun 7, 2024 · 1 comment · Fixed by #104

Comments

@GillesInnov35
Copy link
Collaborator

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

@GillesInnov35
Copy link
Collaborator Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant