You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be great if there was an easy way to register custom types. For example, I find it fairly common that I need to add the ability to allow datetime objects to pass through validation rather than just a string formatted as a date.
While this is clearly achievable if one were clever enough to discern all the details of schema compilation, it would be nice if there was a concise API for this instead. Maybe something like:
Similarly, but also less importantly, jsonschema also made it possible to extend schemas with custom syntax. One could imagine a magic $apply key in a schema which would call a function referenced by it's import path:
It would be great if there was an easy way to register custom types. For example, I find it fairly common that I need to add the ability to allow
datetime
objects to pass through validation rather than just a string formatted as a date.While this is clearly achievable if one were clever enough to discern all the details of schema compilation, it would be nice if there was a concise API for this instead. Maybe something like:
Similarly, but also less importantly,
jsonschema
also made it possible to extend schemas with custom syntax. One could imagine a magic$apply
key in a schema which would call a function referenced by it's import path:The text was updated successfully, but these errors were encountered: