Skip to content

add "required" struct tag#36

Merged
jannotti merged 3 commits into
masterfrom
required-struct-tag
Jun 8, 2026
Merged

add "required" struct tag#36
jannotti merged 3 commits into
masterfrom
required-struct-tag

Conversation

@cce

@cce cce commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

This allows for the msgpack generator to recognize a codec:"name,required" struct tag and require that field appear while decoding, returning an error otherwise.

The PR also adds new support for testing generated output in the tests/ directory; they didn't work before because the generated output has go-algorand dependencies.

@jannotti jannotti merged commit 7af0971 into master Jun 8, 2026
2 checks passed
@cce cce deleted the required-struct-tag branch June 8, 2026 15:44
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