{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/chemaxon/json-schema/chemaxon-form-schema.json",
  "title": "Form",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/chemaxon-forms-api-openapi.yml#/components/schemas/Form",
  "type": "object",
  "properties": {
    "source": {
      "type": "string"
    },
    "title": {
      "type": "string"
    },
    "expanded": {
      "type": "boolean"
    },
    "type": {
      "type": "string"
    },
    "fields": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Field"
      }
    }
  },
  "$defs": {
    "Field": {
      "type": "object",
      "properties": {
        "label": {
          "type": "string"
        },
        "renderer": {
          "type": "string"
        },
        "placeholder": {
          "type": "string"
        },
        "defaultValue": {
          "type": "string"
        },
        "mappable": {
          "type": "boolean"
        },
        "values": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "valuesURL": {
          "type": "string"
        },
        "valuesType": {
          "type": "string",
          "enum": [
            "DICTIONARY",
            "PROJECT",
            "REMOTE_URL"
          ]
        },
        "valuesId": {
          "type": "string"
        },
        "idBased": {
          "type": "boolean"
        },
        "validators": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "readOnlyForSubmissions": {
          "type": "boolean"
        },
        "levels": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/LevelAssociation"
          },
          "uniqueItems": true
        },
        "appendOnParent": {
          "type": "boolean"
        },
        "appendOnVersion": {
          "type": "boolean"
        },
        "generator": {
          "type": "string"
        },
        "generatorParameters": {
          "type": "string"
        },
        "fieldName": {
          "type": "string"
        },
        "additional": {
          "type": "boolean"
        },
        "isDisabled": {
          "type": "boolean"
        },
        "isList": {
          "type": "boolean"
        }
      }
    },
    "LevelAssociation": {
      "type": "object",
      "properties": {
        "level": {
          "type": "string"
        },
        "readOnly": {
          "type": "boolean"
        },
        "storageType": {
          "type": "string",
          "enum": [
            "STORE",
            "INHERIT_FROM_PARENT"
          ]
        }
      }
    }
  }
}