{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "type": "object",
  "properties": {
    "inv": {
      "title": "Inverted",
      "description": "Inverted Mask flag",
      "type": "boolean",
      "default": false
    },
    "nm": {
      "title": "Name",
      "description": "Mask name. Used for expressions and effects.",
      "type": "string"
    },
    "pt": {
      "title": "Points",
      "description": "Mask vertices",
      "oneOf": [
        {
          "$ref": "../properties/shape.json"
        },
        {
          "$ref": "../properties/shapeKeyframed.json"
        }
      ],
      "type": "object"
    },
    "o": {
      "title": "Opacity",
      "description": "Mask opacity.",
      "type": "object",
      "oneOf": [
        {
          "$ref": "../properties/value.json"
        },
        {
          "$ref": "../properties/valueKeyframed.json"
        }
      ],
      "default": {"a":0, "k":100}
    },
    "mode": {
      "title": "Mode",
      "description": "Mask mode. Not all mask types are supported.",
      "type": "string",
      "oneOf": [
        {
          "type": "string",
          "description": "None",
          "enum": [ "n"]
        },
        {
          "type": "string",
          "description": "Additive",
          "enum": [ "a"]
        },
        {
          "type": "string",
          "description": "Subtract",
          "enum": [ "s"]
        },
        {
          "type": "string",
          "description": "Intersect",
          "enum": [ "i"]
        },
        {
          "type": "string",
          "description": "Lighten",
          "enum": [ "l"]
        },
        {
          "type": "string",
          "description": "Darken",
          "enum": [ "d"]
        },
        {
          "type": "string",
          "description": "Difference",
          "enum": [ "f"]
        }
      ],
      "default": "a"
    }
  }
}
