All Projects β†’ vercel β†’ Schemas

vercel / Schemas

Licence: mit
All schemas used for validation that are shared between our projects

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Schemas

Noproto
Flexible, Fast & Compact Serialization with RPC
Stars: ✭ 138 (+170.59%)
Mutual labels:  json, schemas
Schema
πŸ“ Validating data structures against a given Schema.
Stars: ✭ 359 (+603.92%)
Mutual labels:  json, validation
Omniparser
omniparser: a native Golang ETL streaming parser and transform library for CSV, JSON, XML, EDI, text, etc.
Stars: ✭ 148 (+190.2%)
Mutual labels:  json, schemas
Scobot
SCORM API for Content. JavaScript library, QUnit tests and examples.
Stars: ✭ 128 (+150.98%)
Mutual labels:  json, schemas
Winterfell
Generate complex, validated and extendable JSON-based forms in React.
Stars: ✭ 787 (+1443.14%)
Mutual labels:  json, validation
Framework
Strongly-typed JavaScript object with support for validation and error handling.
Stars: ✭ 136 (+166.67%)
Mutual labels:  json, validation
Validation
validation api extracted from play
Stars: ✭ 194 (+280.39%)
Mutual labels:  json, validation
Mson React
React and Material-UI Rendering Layer for MSON
Stars: ✭ 74 (+45.1%)
Mutual labels:  json, validation
Encoding
Go package containing implementations of efficient encoding, decoding, and validation APIs.
Stars: ✭ 705 (+1282.35%)
Mutual labels:  json, validation
Specs
Technical specifications and guidelines for implementing Frictionless Data.
Stars: ✭ 403 (+690.2%)
Mutual labels:  json, validation
Typescript Runtime Type Benchmarks
Benchmark Comparison of Packages with Runtime Validation and TypeScript Support
Stars: ✭ 119 (+133.33%)
Mutual labels:  json, validation
Val
golang JSON validation library.
Stars: ✭ 37 (-27.45%)
Mutual labels:  json, validation
Dataclass factory
Modern way to convert python dataclasses or other objects to and from more common types like dicts or json-like structures
Stars: ✭ 116 (+127.45%)
Mutual labels:  json, schemas
Node Convict
Featureful configuration management library for Node.js
Stars: ✭ 1,855 (+3537.25%)
Mutual labels:  json, validation
Schema Registry
Confluent Schema Registry for Kafka
Stars: ✭ 1,647 (+3129.41%)
Mutual labels:  json, schemas
Json Schema Spec
The JSON Schema I-D sources
Stars: ✭ 2,441 (+4686.27%)
Mutual labels:  json, validation
Fhir.js
Node.JS library for serializing/deserializing FHIR resources between JS/JSON and XML using various node.js XML libraries
Stars: ✭ 61 (+19.61%)
Mutual labels:  json, validation
Schemasafe
A reasonably safe JSON Schema validator with draft-04/06/07/2019-09 support.
Stars: ✭ 67 (+31.37%)
Mutual labels:  json, validation
Mson
πŸ—οΈMSON Lang: Generate an app from JSON
Stars: ✭ 378 (+641.18%)
Mutual labels:  json, validation
Cti Stix Validator
OASIS TC Open Repository: Validator for STIX 2.0 JSON normative requirements and best practices
Stars: ✭ 24 (-52.94%)
Mutual labels:  json, validation

ZEIT's schemas

Build Status Join the community on Spectrum

The schemas contained within this package are used all across the ZEIT ecosystem to validate config files, requests to APIs and more. It ensures users always send just the right data.

Why?

It is important that these schemas stay in sync between projects, so that the validations are always performed in the same way for the same kind of object.

The files located in this repository are .js and not .json, because parsing JSON takes a little bit longer.

Usage

To get started, pick one of the schemas in this repository and load it:

const schema = require('@zeit/schemas/deployment/config');

Next, set up AJV (the validator) and run the schema through it:

const AJV = require('ajv');

const ajv = new AJV({ allErrors: true });
const isValid = ajv.validate(schema, <object-to-validate>);

if (!isValid) {
	console.error(`The following entries are wrong: ${JSON.stringify(ajv.errors)}`);
}

That is all! πŸŽ‰

Contributing

  1. Fork this repository to your own GitHub account and then clone it to your local device
  2. Link the package to the global module directory: npm link
  3. Within the module you want to test your local development instance of @zeit/schemas, just link it to the dependencies: npm link @zeit/schemas and load it!

Author

Leo Lamprecht (@notquiteleo) - ZEIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].