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

No way to send biometrics step by step #82

Open
williamT13 opened this issue Nov 19, 2024 · 0 comments
Open

No way to send biometrics step by step #82

williamT13 opened this issue Nov 19, 2024 · 0 comments

Comments

@williamT13
Copy link

williamT13 commented Nov 19, 2024

In the existing OSIA API, there's no way to send biometrics modality by modality, e.g:

  • send face(s)
  • send FP
  • send Iris
  • send signature
  • send …

Each Update (PartialUpdate) will overwrite the whole biometrics block due to the following constraints:
PartialUpdate (PATCH):

  • In OSIA, all biometrics are stored in a generic array of biometric data sets
        biometricData:
          type: array
          items:
            $ref: '#/components/schemas/BiometricData'
  • PartialUpdate is based on RFC7396 (JSON merge patch) which allows to merge at object level, so no way to update only a part of an array
    https://www.rfc-editor.org/rfc/pdfrfc/rfc7396.txt.pdf
    There are a few things to note about the function. If the patch is anything other than an object, the result will always be to replace the entire target with the entire patch. Also, it is not possible to patch part of a target that is not an object, such as to replace just some of the values in an array.

It means that any change on a part of the biometrics in this array (e.g. update the signature) requires to send ALL biometrics or only this part (e.g. signature) will be kept................

The same for other entities like documents...

I think it is a problem if we consider to send data (biometrics, scanned documents...) step by step.

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

No branches or pull requests

1 participant