@hyperjump/json-schema-formats
v1.0.1
Published
A collection of validation functions for the JSON Schema `format` keyword.
Downloads
101,506
Maintainers
Readme
Hyperjump - JSON Schema Formats
A collection of validation functions for the JSON Schema format keyword.
Install
This module is designed for Node.js (ES Modules, TypeScript) and browsers. It should work in Bun and Deno as well, but the test runner doesn't work in these environments, so this module may be less stable in those environments.
Node.js
npm install @hyperjump/json-schema-formatsTypeScript
This package uses the package.json "exports" field. TypeScript understands
"exports",
but you need to change a couple settings in your tsconfig.json for it to work.
"module": "Node16", // or "NodeNext"
"moduleResolution": "Node16", // or "NodeNext"API
https://json-schema-formats.hyperjump.io/modules.html
Contributing
Contributions are welcome! Please create an issue to propose and discuss any changes you'd like to make before implementing it. If it's an obvious bug with an obvious solution or something simple like a fixing a typo, creating an issue isn't required. You can just send a PR without creating an issue. Before submitting any code, please remember to first run the following tests.
npm test(Tests can also be run continuously usingnpm test -- --watch)npm run lintnpm run type-check
