validator icon indicating copy to clipboard operation
validator copied to clipboard

Added support for validating OCI tags

Open MadsRC opened this issue 10 months ago • 3 comments

Fixes Or Enhances

Added a new oci_tag to validate an OCI manifest tag as described in the OCI Distribution Spec: https://github.com/opencontainers/distribution-spec/blob/main/spec.md?plain=1#L164-L166

This is also more commonly referred to as a container tag or a docker tag.

Make sure that you've checked the boxes below before you submit PR:

  • [x] Tests exist or have been written that cover this particular change.

@go-playground/validator-maintainers

MadsRC avatar Feb 12 '25 10:02 MadsRC

Thank you for your contribution! Adding a new validation function requires updating the documentation and README. Otherwise, everything looks good to me.

nodivbyzero avatar Feb 17 '25 21:02 nodivbyzero

Coverage Status

coverage: 74.245% (+0.004%) from 74.241% when pulling 4a694d2f1f27c76c1b0e98ef94c2657282592ff1 on MadsRC:master into 859202275556dac82d4460234867c5c5988d06fd on go-playground:master.

coveralls avatar Mar 22 '25 12:03 coveralls

I've updated my branch with latest changes from upstream and added to the README.md and doc.go file.

MadsRC avatar Mar 22 '25 12:03 MadsRC