schema-tools icon indicating copy to clipboard operation
schema-tools copied to clipboard

Validate, sanitize and document JSON schemas

Results 35 schema-tools issues
Sort by recently updated
recently updated
newest added

Hi @bahmutov / maintainers, ## Summary The [`@bahmutov/is-my-json-valid`](https://www.npmjs.com/package/@bahmutov/is-my-json-valid) dependency of this repository contains (at least) one vulnerable sub-dependency - [`[email protected]`](https://www.npmjs.com/package/jsonpointer/v/4.1.0). See [this advisory about `CVE-2021-23807` in the GitHub Advisory Database](https://github.com/advisories/GHSA-282f-qqgm-c34q)...

All the given examples in this repo for sanitization are either json schemas representing objects with keys and string or integer values or a couple of examples where the key...

Instead of using two arguments name + version internally, normalize to single version + name type

**Summary:** Error message `format1.test is not a function` is thrown when `assertSchema` with a custom format. So could you please help me to check if there is an issue with...

The current JSON schema docs allow for some logic-based keywords, such as `allOf`, `oneOf`, and `anyOf`: https://json-schema.org/draft/2020-12/json-schema-core.html#logic In my experience, specifically with API Gateway, though it may apply elsewhere, a...

File: objects.ts Issue: JsonSchema currently only allows just 'object' as a type, but if a json response returns an array of objects. The only type that can be validated is...

Investigate if https://www.npmjs.com/package/json-schema-to-typescript can do this accurately for us

If we create a new schema by adding objects, we should have a good type of the result, which will allow us to know the available schemas and their versions...

enhancement
question

To mark fields `deprecated`

Like https://github.com/bahmutov/snap-shot-compare#use we can get a result similar to what `assertSchema` gets us, but not throw it This will allow the caller to decide what to do - throw an...