Coder Social home page Coder Social logo

yywill / json-schema-validator Goto Github PK

View Code? Open in Web Editor NEW

This project forked from java-json-tools/json-schema-validator

0.0 1.0 0.0 4.69 MB

A JSON Schema validation implementation in pure Java, which aims for correctness and performance, in that order

Home Page: http://json-schema.org

json-schema-validator's Introduction

Read me first

The license of this project is LGPLv3 or later. See file src/main/resources/LICENSE for the full text.

Versions:

Note to 1.0.x users or above: this implementation does not cover the full set of format attributes defined by the currently active draft, and this is on purpose. See json-schema-formats (FWIW, at the Maven level, json-schema-formats depends on json-schema-validator).

Note: the javadoc contains code samples.

Versioning scheme policy

The versioning scheme is defined by the middle number of the version number:

  • if this number is even, then this is the stable version; no new features will be added to such versions, and the user API will only see incremental changes, never modifications;
  • if this number is odd, then this is the development version; new features will be added to those versions only, and the user API may change.

What it is

This is an implementation of the JSON Schema specification written in pure Java. This allows pure server side JSON schema validation if this is what you are looking for.

This implementation has the following features:

  • thread safe, concurrent-friendly validation;
  • very fast;
  • full draft v3 validation (however, see above for format);
  • full $ref support, including id resolving and loop detection;
  • validation of numeric JSON instances of arbitrary scale/precision;
  • ECMA 262 regexes (using Rhino);
  • ability to register/unregister URI handlers for arbitrary URI schemes;
  • ability to set a default URI namespace;
  • ability to define URI redirections;
  • ability to register/unregister keywords and format specifiers.

Relevant documents

Currently, JSON Schema is not an official RFC. In fact, the existing draft is obsolete -- but it is used on the Internet nonetheless. This implementation is based on the following drafts:

More...

For a detailed discussion of the implementation, see here. For a list of planned features for next versions, see here.

Please see the wiki for more details.

json-schema-validator's People

Contributors

fge avatar csciuto avatar gitgrimbo avatar

Watchers

William Yang avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.