{
  "$ref": "#/definitions/Events",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "definitions": {
    "Events": {
      "additionalProperties": false,
      "properties": {
        "getValues": {
          "$ref": "#/definitions/FormSubmitLikeDetail"
        },
        "submit": {
          "$ref": "#/definitions/FormSubmitLikeDetail"
        },
        "submitinvalid": {
          "additionalProperties": {
            "not": {}
          },
          "description": "Fired when validation fails after a submit attempt (including `submitted=\"yes\"`).",
          "type": "object"
        },
        "update": {
          "properties": {
            "_id": {
              "type": "string"
            },
            "_valid": {
              "type": "boolean"
            }
          },
          "required": [
            "_id",
            "_valid"
          ],
          "type": "object"
        }
      },
      "required": [
        "submitinvalid",
        "submit",
        "getValues",
        "update"
      ],
      "type": "object"
    },
    "FormSubmitLikeDetail": {
      "description": "`submit` / `getValues`: flat merge of `{ _valid }` and field ids → values.",
      "properties": {
        "_valid": {
          "type": "boolean"
        }
      },
      "required": [
        "_valid"
      ],
      "type": "object"
    }
  }
}
