23andMe / Yamale

A schema and validator for YAML.
MIT License
666 stars 88 forks source link

add semantic versioning (semver.org) validator #246

Closed thiagowfx closed 3 months ago

thiagowfx commented 4 months ago

https://semver.org/#is-there-a-suggested-regular-expression-regex-to-check-a-semver-string

thiagowfx commented 4 months ago

If you deem this PR worthwhile, please accept the workflow so that we can verify whether the tests pass.

cblakkan commented 3 months ago

Looks like you've got a typo in the test


      def test_semver():
          """
          - https://semver.org/#is-there-a-suggested-regular-expression-regex-to-check-a-semver-string
          - https://regex101.com/r/Ly7O1x/3/
          """
  >       v = val.Semver()
  E       AttributeError: module 'yamale.validators' has no attribute 'Semver'. Did you mean: 'SemVer'?
thiagowfx commented 3 months ago

Ooops! Fixed