voxpupuli / json-schema

Ruby JSON Schema Validator
MIT License
1.52k stars 241 forks source link

UUID format support missing #436

Open ghost opened 5 years ago

ghost commented 5 years ago

Can "format": "uuid" be added for string types?

The regular expression to allow version 3 and 4 UUIDs is "[0-9a-f]{8}-[0-9a-f]{4}-[34][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}".