Movatterモバイル変換


[0]ホーム

URL:


Hackage :: [Package]

hjsonschema:JSON Schema library

[data,deprecated,library,mit ] [Propose Tags ] [Report a vulnerability ]
Deprecated

[Skip to Readme]

Modules

[Index]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions[RSS]0.1.0.0,0.1.1.0,0.2.0.0,0.3.0.0,0.4.0.0,0.5.0.0,0.5.1.0,0.5.1.1,0.5.1.2,0.5.1.3,0.5.2.0,0.5.2.1,0.5.2.2,0.5.3.0,0.5.3.1,0.5.3.2,0.6.0.0,0.6.0.1,0.6.0.2,0.7.0.0,0.7.1.0,0.8.0.0,0.8.0.1,0.9.0.0,0.10.0.0,0.10.0.1,0.10.0.2,0.10.0.3,1.0.0.0,1.1.0.0,1.1.0.1,1.2.0.0,1.2.0.1,1.2.0.2,1.3.0.0,1.3.0.1,1.4.0.0,1.5.0.0,1.5.0.1,1.6.0,1.6.1,1.6.2,1.6.3,1.7.0,1.7.1,1.7.2,1.8.0,1.9.0,1.10.0 (info)
Change logchangelog.txt
Dependenciesaeson (>=0.7 && <0.12),base (>=4.7 && <4.10),bytestring (>=0.10 && <0.11),containers (>=0.5 && <0.6),file-embed (>=0.0.8 && <0.1),filepath (>=1.3 && <1.5),hjsonpointer (>=0.3 && <0.4),http-client (>=0.4.30 && <0.6),http-types (>=0.8 && <0.10),pcre-heavy (>=1.0 && <1.1),profunctors (>=5.0 && <5.3),QuickCheck (>=2.8 && <2.10),scientific (>=0.3 && <0.4),semigroups (>=0.18 && <0.19),text (>=1.1 && <1.3),unordered-containers (>=0.2 && <0.3),vector (>=0.10 && <0.12) [details]
Tested with ghc ==7.8.4, ghc ==7.10.2
LicenseMIT
AuthorIan Grant Jeffries
Maintainerian@housejeffries.com
CategoryData
Home pagehttps://github.com/seagreen/hjsonschema
Source repohead: git clonegit://github.com/seagreen/hjsonschema.git
Uploadedbyseagreen at2016-07-11T17:13:00Z
Distributions
Reverse Dependencies6 direct, 1 indirect [details]
Downloads33442 total (48 in the last 30 days)
Rating(no votes yet)[estimated byBayesian average]
Your Rating
  • λ
  • λ
  • λ
StatusDocs available[build log]
Last success reported on 2016-07-11[all 1 reports]

Readme for hjsonschema-1.0.0.0

[back to package description]

hjsonschema logo

A Haskell implementation of the currentJSON Schema specification (Draft 4).

Hackage /GitHub /Travis CI

Requirespcre (pkgs.pcre in Nixpkgs).

NOTE: Schemas with circular references can cause infinite loops. hjsonschema does loop detection but it may not be solid yet -- please open an issue if you find a situation where it fails.

Example

Seehere.

Tests

Run all tests:

stack test

Run only local tests:

stack test hjsonschema:local

Run remote tests (makes GETs to json-schema.org, also temporarily starts an HTTP server on port 1234):

stack test hjsonschema:remote

Details

Goals

  • Be a correct and fast implementation of the spec.

  • Be a useful reference for implementers in other languages. Haskell's high level nature, expressive type system and referential transparency suit this purpose well.

Good Parts

  • Passes all the required tests in thelanguage agnostic test suite.

  • Very modular, which should make it easy to support future versions of the specification.

Bad Parts

  • Uses thepcre-heavy regular expression library for the "pattern" validator. It should use a library based on the ECMA 262 regex dialect, which thespec requires.

  • Currently doesn't support the optional"format" validators.

Notes

  • JSON-Schema-Test-Suite is vendored from commit # aabcb3427745ade7a0b4d49ff016ad7eda8b898bhere.

  • src/draft4.json is from commit # f3d5aeb5ffbe9d9a5a0ceb761dc47c7c4c2efa68here.

Credits

TJ Weigel created the logo.

Tim Baumann wroteaeson-schema, on which hjsonschema's test code and its implementation ofSchemaGraph were based.

Julian Berman maintains the fantasticlanguage agnostic test suite.

Produced byhackage andCabal 3.12.1.0.


[8]ページ先頭

©2009-2025 Movatter.jp