Runtime Support for Node Library chai-json-schema
I need to be able to validate the various schema.org schemas on the pages of my site. Checkly runtimes support chai, but not chai-json-schema: Runtime specification | Checkly (checklyhq.com)
% npx checkly test
Parsing your project... !
Error: Encountered an error parsing check files for /Users/johndoe/Development/projects/site-synthetic-tests/src/__checks__/validate-product-schema.spec.ts.
The following NPM dependencies were used, but aren't supported in the runtimes.
For more information, see https://www.checklyhq.com/docs/runtimes/.
/Users/johndoe/Development/projects/site-synthetic-tests/src/__checks__/validate-product-schema.spec.ts imports unsupported dependencies:
chai-json-schema
Log in to comment and vote
Comments2
Tim Nolet
Nov 7, 2023
Hey @Zach Selby I've tagged this so we can have a look during our next round of updates.
Zach Selby
Nov 4, 2023
Based on the supported runtime libraries,
zodwould be the nearest to useful lib for JSON schema validation. However, that would require manual conversion of the existing JSON-LD schemas from schema.org to Zod schemas. This process involves understanding the structure of the original (massive) schema, creating corresponding Zod schemas for each type defined, and handling any relationships within the schema accurately.This manual conversion poses a significant demand around cognitive overhead and technical inventory for my team. I hope this highlights clearly the convenience of enabling
chai-json-schemasupport.