When a Schema must forbid a field combination or require at least one array item to match a condition, express it with not and contains, then validate a short sample locally. Use not to block risky combinations such as production plus testMode=true, and contains to require an active admin role or a billing feature entry.
JSON Schema not / contains array constraint debugging tools
A local workflow for not rules, contains array constraints, production test-mode blocking, role arrays, and pre-release API Schema checks.
Common lookup scenarios
Block production with testMode=true
Confirm a features array is missing billing
Check whether roles include an active admin
Find why contains matched no array item
Review forbidden combinations and array-member rules before release
Recommended workflow
- Format the Schema and JSON sample
- Put forbidden combinations in not and include required fields
- Put array-member requirements in contains
- Run Schema validation and inspect keyword plus instancePath
- Use JSONPath, Pointer, and Deep Diff to confirm array shape changes
Related tool entries
A local workflow for not rules, contains array constraints, production test-mode blocking, role arrays, and pre-release API Schema checks.
JSON Schema validator
Use this json schema validator tool to inspect, convert, or generate a clear result directly in your browser.
LookupToolChakanJSON Schema generator
Infer a JSON Schema draft from example JSON so you can model payloads, configs, and interface docs faster.
LookupToolChakanJSON key path extractor
Extract JSON key paths with node types, depth, and path formats to speed up field inventory and mapping preparation.
LookupToolChakanJSON Pointer viewer
Resolve a JSON Pointer against pasted JSON to inspect one exact field, array item, or root node with a path trace.
LookupToolChakanJSONPath viewer
Use this jsonpath viewer tool to inspect, convert, or generate a clear result directly in your browser.
LookupToolChakanJSON deep diff
Use this json deep diff tool to inspect, convert, or generate a clear result directly in your browser.
LookupToolChakanJSON formatter
Use this json formatter tool to inspect, convert, or generate a clear result directly in your browser.
LookupToolChakanFAQ
When a Schema must forbid a field combination or require at least one array item to match a condition, express it with not and contains, then validate a short sample locally. Use not to block risky combinations such as production plus testMode=true, and contains to require an active admin role or a billing feature entry.
What problems do not and contains solve?
not rejects data that matches a forbidden subschema. contains requires at least one array item to satisfy a condition.
Do these examples upload API data?
No. Schema validation runs in the browser. The sitemap only includes short demo examples, not user input.
Continue with these topics
Searchable topic pages that group related tools, answer specific lookup intents, and make Chakan easier for search engines and AI systems to understand.
CSV data cleaning, filtering, and import-readiness tools
A focused tool set for CSV column extraction, header normalization, row filtering, type inference, schema drafts, and import checks.
Open topicJSON API field inventory, path extraction, and mapping tools
Structured entry points for API responses, nested JSON, field mapping, path extraction, and schema validation.
Open topicJSON data conversion, formatting, and API debugging tools
A practical workflow for converting CSV, XML, YAML, INI, TOML, and JSONL into JSON, then formatting, extracting paths, and checking diffs.
Open topic