Skip to content

Conversation

@sahdasamier
Copy link
Contributor

Description

Please provide a brief summary of the changes in this PR.

Type of Change

  • Bug fix
  • New feature
  • Test case
  • Documentation update
  • Other (please describe)

Checklist

  • I have added tests that prove my fix is effective or that my feature works (optional)
  • I have added necessary documentation (if applicable)

4- steps to test ?

Please provide a brief summary of the steps required to test the changes in this PR.

5- results ?

Please provide a brief summary of the results after testing the changes in this PR.

7- screenshots ?

Please provide screenshots of the results after testing the changes in this PR.

@sahdasamier sahdasamier requested a review from gvelez17 August 16, 2025 23:25
});

// Enum validation
if (body.howKnown && !['FIRST_HAND', 'SECOND_HAND', 'WEB_DOCUMENT', 'VERIFIED_LOGIN', 'BLOCKCHAIN', 'SIGNED_DOCUMENT', 'PHYSICAL_DOCUMENT', 'INTEGRATION', 'RESEARCH', 'OPINION', 'OTHER'].includes(body.howKnown)) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should pull from the enum - otherwise we can get out of sync. Can you fix this in a follow on please?

field: 'howKnown',
issue: 'invalid_enum_value',
received: body.howKnown,
expected: ['FIRST_HAND', 'SECOND_HAND', 'WEB_DOCUMENT', 'VERIFIED_LOGIN', 'BLOCKCHAIN', 'SIGNED_DOCUMENT', 'PHYSICAL_DOCUMENT', 'INTEGRATION', 'RESEARCH', 'OPINION', 'OTHER']
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

again, we want list of values in exactly ONE place in the code, import in all other places

});
}

if (body.issuerIdType && !['DID', 'ETH', 'PUBKEY', 'URL'].includes(body.issuerIdType)) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here - please no string arrays, this should be pulled from one place

Copy link
Collaborator

@gvelez17 gvelez17 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lets ship it, please follow on to address comments, thanks

@gvelez17 gvelez17 merged commit 02d963c into dev Aug 17, 2025
@gvelez17 gvelez17 deleted the solve-image-issue branch August 17, 2025 06:42
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

Successfully merging this pull request may close these issues.

3 participants