go-playground / validator

:100:Go Struct and Field validation, including Cross Field, Cross Struct, Map, Slice and Array diving
MIT License
16.07k stars 1.29k forks source link

Conventional Commit validator #1227

Open leodido opened 4 months ago

leodido commented 4 months ago

Package version eg. v9, v10:

v10

Issue, Question or Enhancement:

Enable validation of a string value as a conventional commit according to Conventional Commits v1.0 spec.

Code sample, to showcase or reproduce:

type Change struct {
    Message string `validate:"conventionalcommit"`
}