A test suite for JSON schema containment

  • Lyes Attouche
  • , Mohamed Amine Baazizi
  • , Dario Colazzo
  • , Yunchen Ding
  • , Michael Fruth
  • , Giorgio Ghelli
  • , Carlo Sartiani
  • , Stefanie Scherzinger

Research output: Contribution to journalConference articlepeer-review

Abstract

JSON is a very popular data exchange format, and JSON Schema an increasingly popular schema language for JSON. Evidently, schemas play an important role in implementing conceptual models. For JSON Schema, there is a first generation of tools for checking whether one schema is contained in another. This is an important task when comparing schemas, and ultimately, the conceptual models that they capture. Testing whether such tool implementations are correct is difficult, since writing test cases requires a deep understanding of the JSON Schema language. In this demo, we present the first systematically generated test suite for JSON Schema containment checking. This test suite consists of pairs of schemas where the containment relationship is known by construction. Our test suite aims at covering all language features of JSON Schema. Applying existing containment checkers (including our own implementation) to our test suite, we discovered implementation bugs not known to us. We offer our test suite to the research community as well as to tool developers, hoping to contribute to the development of JSON Schema containment checkers.

Original languageEnglish
Pages (from-to)19-25
Number of pages7
JournalCEUR Workshop Proceedings
Volume2958
Publication statusPublished - 1 Jan 2021
Externally publishedYes
Event2021 ER Demos and Posters, ER-Demos-Posters 2021, co-located with 40th International Conference on Conceptual Modeling, ER 2021 - St. John's, Canada
Duration: 18 Oct 202121 Oct 2021

Keywords

  • Comparing Conceptual Models
  • JSON Schema Containment Checking
  • Test Suite

Fingerprint

Dive into the research topics of 'A test suite for JSON schema containment'. Together they form a unique fingerprint.

Cite this