UNPKG

json-rest-schema

Version:

A flexible and extensible schema validation library for JavaScript objects, designed for REST APIs and beyond. Features include type casting, data transformation, and a pluggable architecture for custom rules.

65 lines (64 loc) 1.54 kB
{ "name": "json-rest-schema", "version": "1.0.8", "description": "A flexible and extensible schema validation library for JavaScript objects, designed for REST APIs and beyond. Features include type casting, data transformation, and a pluggable architecture for custom rules.", "keywords": [ "schema", "validation", "json", "rest-api", "data-validation", "type-casting", "data-transformation", "plugin", "javascript" ], "author": "Tony Mobily", "license": "GPL-3.0-only", "homepage": "https://mobily-enterprises/jsonrestapi-schema#readme", "repository": { "type": "git", "url": "git+https://mobily-enterprises/jsonrestapi-schema.git" }, "bugs": { "url": "https://mobily-enterprises/jsonrestapi-schema/issues" }, "type": "module", "main": "src/index.js", "exports": { ".": "./src/index.js" }, "files": [ "src/", "README.md", "ONBOARDING.md", "LICENSE" ], "scripts": { "test": "node --test tests.js test-knex-table-real.js", "example": "node example.js", "example:knex": "node knex-table-example.js", "start": "node example.js", "lint": "eslint src/", "lint:fix": "eslint src/ --fix" }, "dependencies": { "flatted": "^3.3.3" }, "devDependencies": { "eslint": "^8.57.0", "knex": "^3.1.0", "sqlite3": "^5.1.7" }, "engines": { "node": ">=18.0.0" }, "peerDependencies": { "knex": ">=2.0.0" }, "peerDependenciesMeta": { "knex": { "optional": true } } }