davishmcclurg / json_schemer

JSON Schema validator. Supports drafts 4, 6, 7, 2019-09, 2020-12, OpenAPI 3.0, and OpenAPI 3.1.
MIT License
408 stars 64 forks source link

Fix: Update UUID_REGEX #183

Closed kevin-glare closed 6 months ago

kevin-glare commented 6 months ago

The current format (/\A\h{8}-\h{4}-\h{4}-[89AB]\h{3}-\h{12}\z/i) supports only the UUID variant DCE Security (89AB). So I've updated the regular expression to support more uuid variants. I also noticed that in the tests there is an option using such a regular expression.

davishmcclurg commented 6 months ago

Thanks @kevin-glare! I just released as this in 2.3.0