Skip to content
This repository was archived by the owner on Nov 2, 2023. It is now read-only.

Commit cfe270e

Browse files
authored
@cfworker/json-schema
A JSON schema validator that will run on Cloudflare workers. Supports drafts 4, 7, and 2019-09. Cloudflare workers do not have APIs required by Ajv schema compilation (eval or new Function(code)). Validators that don't use code generation are not up to date with the current spec so I built yet another validator... @cfworker/json-schema is currently the fastest among validators which do not use code generation (eval/new function): https://github.com/ebdrup/json-schema-benchmark#performance Pretty comparable to jsck and z-schema which do use code generation.
1 parent b91f633 commit cfe270e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

_data/validator-libraries-modern.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,12 @@
128128
date-draft:
129129
draft: [6]
130130
license: MIT
131+
- name: @cfworker/json-schema
132+
url: https://github.com/cfworker/cfworker/blob/master/packages/json-schema/README.md
133+
notes: "Built for Cloudflare workers, browsers, and Node.js"
134+
date-draft: [2019-09]
135+
draft: [7, 6, 4]
136+
license: MIT
131137
- name: Perl
132138
implementations:
133139
- name: JSON::Validator

0 commit comments

Comments
 (0)