{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://rig.works/schemas/rig.geometry.path.schema.json",
  "title": "rig.geometry.path",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "commands": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "move-to",
              "line-to",
              "cubic-to",
              "quad-to",
              "close"
            ]
          },
          "point": {
            "$ref": "./_defs.schema.json#/$defs/vec2"
          },
          "control1": {
            "$ref": "./_defs.schema.json#/$defs/vec2"
          },
          "control2": {
            "$ref": "./_defs.schema.json#/$defs/vec2"
          }
        }
      }
    },
    "fillRule": {
      "type": "string",
      "enum": [
        "nonzero",
        "evenodd"
      ]
    }
  },
  "required": [
    "commands"
  ]
}
