Election-Tech-Initiative / Election-Tech-Initiative/electionguard

🗂. SubmittedBallot should serialize a readable state not number

Open
#222 0 comments 0 reactions 0 assignees View on GitHub
enhancement question
Dominant language
Python
Stars
872
Forks
131
PR merge metrics
No merged PRs in 30d

Description

### Is there an existing issue for this?

- [X] I have searched the existing issues

### Suggestion

SubmittedBallot.state: BallotBoxState is encoded as a number. This is the only place that indicates whether the ballot is cast or spoiled and is only a 0 or 1. Would be disastrous for this to be misinterpreted.

### Possible Implementation

Recommend that it be the name of the enum to remove ambiguity and language dependence.

### Anything else?

Original Issue by @JohnLCaron
https://github.com/microsoft/electionguard-python/issues/522

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.