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.
TDEE, BMR, sleep-cycle, and daily water-intake planning
A local-first planning topic that connects TDEE, BMR, BMI, healthy-weight range, sleep-cycle timing, and daily water-intake estimates without medical claims.
Open topicStock profit, dividend yield, savings-goal, compound interest, and inflation planning
A safe formula-based topic for stock profit, dividend yield, savings-goal backsolving, monthly compounding, retirement gaps, inflation-adjusted purchasing power, ROI, CAGR, and target-price planning.
Open topicChina AI search answer-source and citation readiness checklist
A public-page readiness checklist for China AI search and answer systems: source visibility, title alignment, structured data, FAQ, internal links, keyword coverage, robots, sitemap, llms.txt, and log evidence without citation guarantees.
Open topic