Validation of Modern JSON Schema: Formalization and Complexity
Lyes Attouche, Mohamed-Amine Baazizi, Dario Colazzo, Giorgio Ghelli,, Carlo Sartiani, Stefanie Scherzinger

TL;DR
This paper formalizes Modern JSON Schema, revealing that its data validation process is PSPACE-complete due to dynamic references, contrasting with the PTIME complexity of Classical JSON Schema.
Contribution
It provides the first formal description of Modern JSON Schema and proves its validation problem is PSPACE-complete, highlighting the impact of dynamic references on complexity.
Findings
Validation is PSPACE-complete with dynamic references.
Classical JSON Schema validation is PTIME.
Experimental results show complexity differences in small schemas.
Abstract
JSON Schema is the de-facto standard schema language for JSON data. The language went through many minor revisions, but the most recent versions of the language added two novel features, dynamic references and annotation-dependent validation, that change the evaluation model. Modern JSON Schema is the name used to indicate all versions from Draft 2019-09, which are characterized by these new features, while Classical JSON Schema is used to indicate the previous versions. These new "modern" features make the schema language quite difficult to understand, and have generated many discussions about the correct interpretation of their official specifications; for this reason we undertook the task of their formalization. During this process, we also analyzed the complexity of data validation in Modern JSON Schema, with the idea of confirming the PTIME complexity of Classical JSON Schema…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsSemantic Web and Ontologies · Data Quality and Management · Advanced Database Systems and Queries
