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

Implemented encoding constraints in SwissQRCode and GiroCode payloads #533

Conversation

codebude
Copy link
Owner

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 codebude marked this pull request as draft May 22, 2024 22:53
@Shane32
Copy link
Contributor

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
Owner 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
3 checks passed
@codebude codebude deleted the add-missing-ecimode-and-ecclevel-overrides-in-payload-generator branch June 2, 2024 10:52
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.

Some Payload generators miss overriding EciMode and EccLevel
2 participants