validator.js icon indicating copy to clipboard operation
validator.js copied to clipboard

feat(isXsdAnyURI): add XML Schema anyURI validator

Open MazenSamehR opened this issue 1 month ago • 2 comments

fixes: https://github.com/validatorjs/validator.js/issues/920

Summary

  • adds isXsdAnyURI, covering XML Schema anyURI requirements (whitespace collapse, percent-encoding, RFC 3986 validation, IPv6/IPvFuture authority parsing)
  • wires the validator into src/index.js and documents usage in README.md
  • introduces extensive tests for valid/invalid absolute and relative references, malformed authorities, percent-encoding errors, and encodeURI failure scenarios

References

Checklist

  • [x] PR contains only changes related; no stray files, etc.
  • [x] README updated (where applicable)
  • [x] Tests written (where applicable)
  • [x] References provided in PR (where applicable)

MazenSamehR avatar Nov 30 '25 12:11 MazenSamehR