Skip to content

Conversation

@cblecker
Copy link

@cblecker cblecker commented Sep 9, 2025

The current format of candidate bios is strange in that it uses an array to store individual discrete fields. This causes issues when parsing this yaml using other libraries, such as golang's gopkg.in/yaml.v3.

This adds tests for both formats, so that elekto is able to maintain backwards compatibility, as well as ensure the proper yaml syntax can be used going forward.

@jberkus
Copy link
Member

jberkus commented Sep 10, 2025

Oh, that also explains one of the bugs I was having problems fixing. Thanks.

@cblecker
Copy link
Author

No problem! Yeah, this doesn't actually change any functionality so it won't fix a bug.. but I would be supportive of more strict yaml loading even if it breaks backwards compatibility.

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.

2 participants