https://github.com/geraintluff/tv5-experimental
A playground for potential v5 features
https://github.com/geraintluff/tv5-experimental
Last synced: about 1 month ago
JSON representation
A playground for potential v5 features
- Host: GitHub
- URL: https://github.com/geraintluff/tv5-experimental
- Owner: geraintluff
- License: other
- Created: 2013-09-19T21:07:41.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2013-09-23T21:23:58.000Z (over 12 years ago)
- Last Synced: 2025-01-28T21:18:23.282Z (over 1 year ago)
- Language: JavaScript
- Size: 1.28 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# tv5-experimental
### Experimental Validator for *hypothetical* v5 JSON Schema features
This is a variant of the `tv4` JSON Schema validator. It is intended as a playground to experiment with possible features for the next version of the draft, to provide a concrete example of how such features could work.
The features included in this package are **not guaranteed** to make it into the standard, and are highly likely to change.
## Currently supported features
* [`$data`](https://github.com/json-schema/json-schema/wiki/%24data-%28v5-proposal%29) - allow schemas to use values from the data, specified using Relative JSON Pointers
(`formatMinimum`/`formatMaximum` can actually already be used in `tv4` - basically, you can register a [custom validator] function for a particular format, and this can explore any other schema properties it likes.)