Skip to content

Conversation

@codebude
Copy link
Collaborator

Summary

If a payload type needs a specific eci mode/ecc level/version it should override the respecting parameters in the PayloadGenerator base class. Thus users don't have to set these values manually. Unfortunately some payload generators weren't updated after this feature (encoding parameters via payload) was added. This PR brings in the necessary changes/constraints.

This PR fixes/implements the following bugs/features:

  • Added EccLevel and EciMode constraints in SwissQRCode payload generator
  • Added EccLevel constraint in Girocode payload generator

Test plan

PR contains test cases.

Closing issues

Fixes #525

@codebude
Copy link
Collaborator Author

codebude commented May 22, 2024

@codebude codebude marked this pull request as draft May 22, 2024 22:53
@Shane32
Copy link
Owner

Shane32 commented May 22, 2024

Looks good. API approvals change because of the overridden members; just run API tests locally and it should update the API approval files.

@codebude codebude marked this pull request as ready for review May 23, 2024 21:20
@codebude
Copy link
Collaborator Author

Looks good. API approvals change because of the overridden members; just run API tests locally and it should update the API approval files.

Worked like a charm. :-)

@codebude codebude merged commit 923dbe5 into master May 23, 2024
@codebude codebude deleted the add-missing-ecimode-and-ecclevel-overrides-in-payload-generator branch June 2, 2024 10:52
@Shane32 Shane32 added this to the 1.6.0 milestone Oct 8, 2025
@Shane32 Shane32 added the enhancement A new feature or feature request label Oct 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement A new feature or feature request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Some Payload generators miss overriding EciMode and EccLevel

3 participants