A

Fences: Systematic Sample Generation for JSON Schemas using Boolean Algebra and Flow Graphs

Abstract

In this work, we present Fences, a tool to generate sample data for arbitrary JSON Schemas. Fences generates these samples in three basic steps: First, the schema is simplified and normalized using boolean algebra. Second, the schema is mapped to a flow graph. And third, the flow graph is analyzed to obtain the final sets of JSON data. Besides valid samples, Fences also generates invalid samples it knows to be rejected by the schema. By combining these sets, all degrees of freedom offered by the schema are covered systematically. We assess the feasibility and correctness of our approach using synthetic schemas from the official JSON Schema test suite and a real-world use case from the Industry 4.0 domain. Additionally, we introduce schema coverage as metric to assess the completeness of our approach.

Authors 2

  1. Otto-von-Guericke-Universität Magdeburg · Institut für Automation und Kommunikation

    Affiliation as printed

    Institute for Automation and Communication, OVGU Magdeburg, Magdeburg, Germany

  2. RWTH Aachen University

    Affiliation as printed

    Chair of Information and Automation Systems for Process and Material Technology, RWTH Aachen, Aachen, Germany

Cited by 1 stored of 1

1 result

No patents citing this paper on Lens.org (checked 2026-10-06).

References 11

11 results