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

@cfworker/json-schema #332

Merged
merged 3 commits into from
May 24, 2020
Merged

@cfworker/json-schema #332

merged 3 commits into from
May 24, 2020

Conversation

jdanyow
Copy link
Contributor

@jdanyow jdanyow commented May 8, 2020

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.

jdanyow added 2 commits May 7, 2020 21:58
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.
@netlify
Copy link

netlify bot commented May 8, 2020

Deploy preview for condescending-hopper-c3ed30 ready!

Built with commit 6c0cd88

https://deploy-preview-332--condescending-hopper-c3ed30.netlify.app

@Relequestual Relequestual merged commit c7a9c3f into json-schema-org:master May 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants