Skip to content

Commit 009a178

Browse files
committed
[new release] jsonschema (0.1.0)
CHANGES: ### Features - Initial release with support for JSON Schema drafts 4, 6, 7, 2019-09, and 2020-12 - Complete type validation system (null, boolean, number, integer, string, array, object) - Schema composition with allOf, anyOf, oneOf, not, and if/then/else - Full object validation including properties, patternProperties, and additionalProperties - Array validation with items, contains, and uniqueItems support - JSON Reference resolution with $ref, $id, and $anchor support - Format validation for common formats (email, date, time, ipv4, ipv6, uri, uuid, etc.) - JSON Pointer implementation (RFC 6901) - Content validation with base64 encoding and JSON media type support
1 parent f326cf7 commit 009a178

File tree

1 file changed

+45
-0
lines changed
  • packages/jsonschema/jsonschema.0.1.0

1 file changed

+45
-0
lines changed
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
opam-version: "2.0"
2+
synopsis: "JSON Schema validator for OCaml"
3+
description:
4+
"A comprehensive JSON Schema validator implementation for OCaml supporting drafts 4, 6, 7, 2019-09, and 2020-12. This library provides full validation of JSON documents against JSON Schema definitions with detailed error reporting, support for all standard validation keywords, format validators, and content encoding/decoding. It includes features like remote schema resolution, custom format validators, and multiple output formats for validation results."
5+
maintainer: ["Thibaut Mattio <[email protected]>"]
6+
authors: ["Thibaut Mattio <[email protected]>"]
7+
license: "ISC"
8+
tags: ["json" "jsonschema"]
9+
homepage: "https://github.com/tmattio/ocaml-jsonschema"
10+
bug-reports: "https://github.com/tmattio/ocaml-jsonschema/issues"
11+
depends: [
12+
"ocaml" {>= "4.08"}
13+
"dune" {>= "3.19"}
14+
"re"
15+
"yojson"
16+
"ppx_deriving_yojson"
17+
"base64"
18+
"uri"
19+
"odoc" {with-doc}
20+
]
21+
build: [
22+
["dune" "subst"] {dev}
23+
[
24+
"dune"
25+
"build"
26+
"-p"
27+
name
28+
"-j"
29+
jobs
30+
"@install"
31+
"@runtest" {with-test}
32+
"@doc" {with-doc}
33+
]
34+
]
35+
dev-repo: "git+https://github.com/tmattio/ocaml-jsonschema.git"
36+
x-maintenance-intent: ["(latest)"]
37+
url {
38+
src:
39+
"https://github.com/tmattio/ocaml-jsonschema/releases/download/0.1.0/jsonschema-0.1.0.tbz"
40+
checksum: [
41+
"sha256=21a3ff475202fe598f639c4dc5b03355f169d9d77b4f17ecd5a1aca9b475b93e"
42+
"sha512=ce90853ca15dfe5e52289f4fb5ce92275dcde931114312f77fd6e817c0727708ebb006546a6b5ce05332a9c1a49c07d7c6a8131e54a02085cc999a6d823a06e8"
43+
]
44+
}
45+
x-commit-hash: "30de41f2c0a58d57424c2b2d46304274adfd3cf3"

0 commit comments

Comments
 (0)