jacksmith15 / statham-schema

Statham is a Python Model Parsing Library for JSON Schema.
https://statham-schema.readthedocs.io/en/latest/
MIT License
39 stars 10 forks source link

Add validators for built-in formats #6

Open jacksmith15 opened 4 years ago

jacksmith15 commented 4 years ago

JSONSchema specifies several preset values for the "format" keyword for validating strings, along with the validation logic they should perform. "uuid" and "date-time" are already implemented, the following are not:

The correct validation logic for each is specified here.

Currently only validation for "date-time" and "uuid" is enabled (see here).

The remaining format validators should be implemented here.

An example test for "uuid" can be found here.