Skip to content

Commit

Permalink
Use document-type enum for document upload (#107)
Browse files Browse the repository at this point in the history
  • Loading branch information
dvacca-onfido authored Oct 17, 2024
1 parent 0e2e584 commit ca8fa01
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions schemas/document_types/document_types.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,9 @@ enum:
- professional_qualification_card
- consular_id
- international_driving_licence
- home_office_letter
- birth_certificate
- vehicle_registration_certificate
- form_for_affixing_the_visa
- identification_number_document
type: string
2 changes: 2 additions & 0 deletions schemas/documents/definitions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ document_shared:
type:
type: string
description: The type of document
allOf:
- $ref: ../document_types/document_types.yaml
side:
type: string
enum:
Expand Down

0 comments on commit ca8fa01

Please sign in to comment.