Skip to content

feat: add crypto address string format rules - #257

Open
nieomylnieja wants to merge 15 commits into
mainfrom
format-crypto-addresses
Open

feat: add crypto address string format rules#257
nieomylnieja wants to merge 15 commits into
mainfrom
format-crypto-addresses

Conversation

@nieomylnieja

@nieomylnieja nieomylnieja commented Jul 8, 2026

Copy link
Copy Markdown
Collaborator

Motivation

pkg/rules was missing common cryptocurrency address string format validators that users otherwise had to reimplement in application code.

Summary

Added BTC and ETH address string format rules with exported error codes, message templates, validation-plan descriptions, and focused tests.

Testing

Added rule tests covering accepted examples, invalid messages, and error-code assertions.

Release Notes

Added rules.StringBTCAddress, rules.StringBTCBech32Address, and rules.StringETHAddress.

@github-actions github-actions Bot added enhancement New feature or request go Pull requests that update Go code minor New functionality with at most minor brekaing changes labels Jul 8, 2026
@github-actions

github-actions Bot commented Jul 8, 2026

Copy link
Copy Markdown

Test coverage changes:

Package Before After Diff
github.com/nobl9/govy/cmd/govy 0% 0% ✔️
github.com/nobl9/govy/internal 73% 73% ✔️
github.com/nobl9/govy/internal/collections 100% 100% ✔️
github.com/nobl9/govy/internal/inferpath 76% 76% ✔️
github.com/nobl9/govy/internal/messagetemplates 89% 89% ✔️
github.com/nobl9/govy/internal/stringconvert 86% 86% ✔️
github.com/nobl9/govy/internal/typeinfo 94% 94% ✔️
github.com/nobl9/govy/pkg/govy 93% 93% ✔️
github.com/nobl9/govy/pkg/govytest 100% 100% ✔️
github.com/nobl9/govy/pkg/jsonpath 85% 85% ✔️
github.com/nobl9/govy/pkg/rules 99% 98%

@nieomylnieja nieomylnieja changed the title feat: add cryptocurrency address rules feat: add crypto address string format rules Jul 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request go Pull requests that update Go code minor New functionality with at most minor brekaing changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant