Skip to content
Novus Examples
json1.3 KB

Invalid Form Schema (intentionally corrupt JSON)

Intentionally corrupt. A form schema breaking seven rules at once: an unknown version, a field with no name, an unknown type, an empty option list, a default outside its options, bounds the wrong way round and a duplicated id.

Preview — first 50 linesjson
{
  "schemaVersion": 99,
  "generatedBy": "generation/forms_p7.py",
  "note": "INTENTIONALLY CORRUPT SAMPLE form schema. Every entry below breaks one rule on purpose.",
  "defects": [
    "an unknown schemaVersion",
    "a field with no name",
    "a field type outside the vocabulary",
    "a select with no options",
    "a default value that is not among the options",
    "min greater than max",
    "two fields sharing an id"
  ],
  "fields": [
    {
      "id": "a",
      "name": "",
      "type": "text",
      "label": "A field with no name"
    },
    {
      "id": "b",
      "name": "colour",
      "type": "colour-picker",
      "label": "An unknown type"
    },
    {
      "id": "c",
      "name": "region",
      "type": "select",
      "label": "A select with no options",
      "options": []
    },
    {
      "id": "d",
      "name": "tier",
      "type": "select",
      "label": "A default outside the options",
      "options": [
        "bronze",
        "silver"
      ],
      "default": "platinum"
    },
    {
      "id": "e",
      "name": "seats",
      "type": "number",
      "label": "Bounds the wrong way round",
      "min": 100,
61 lines total — download for the full file.

Specifications

Corrupt
true
Defects
7
Schema Version
99
Defect
seven schema rules broken at once

What is a .json file?

JSON (JavaScript Object Notation) is a lightweight, text-based data-interchange format representing objects, arrays, strings, numbers, booleans, and null. It is language-independent, human-readable, and the dominant format for web APIs and configuration. It requires a single well-formed root value.

How to use this file

Use an example JSON file to test parsers and serializers, schema validation, Unicode and number-precision handling, and API request or response processing.

How to use this file for testing

“Invalid Form Schema (intentionally corrupt JSON)” is a deterministic Novus Examples fixture for Form parsing, Form testing, JSON parsing. PDF AcroForms with documented fields and live HTML forms for testing form parsers and fillers.

Documented properties for this file: JSON · 1,325 bytes. Compare results against paired or grouped companions on this page when present (clean↔damaged, searchable↔scanned, or format twins) so scores stay reproducible across runs.

Download the file once, keep the path stable in CI or local scripts, and treat the spec table as the contract: dimensions, seeds, field lists, and roles are intentional. Corrupt or invalid samples are labelled as such — expect parsers to fail loudly rather than silently accept them.

This form is fictional SAMPLE content for tooling tests (autofill, scrapers, PDF fillers). It is not an official government, bank, or clinic form. Open the HTML offline or fill the PDF in any viewer; the demo submit path never stores data.

Code examples

import json

with open("broken-form-schema.json") as f:
    data = json.load(f)
print(type(data), len(data))

Generated by generation/forms_p7.py. Free for any use, no attribution required — license.