{
  "title": "polylineGeometry",
  "type": "object",
  "$schema": "http://json-schema.org/draft-04/schema",
  "description": "Contains an array of paths and a spatialReference.",
  "properties": {
    "hasM": {
      "type": "boolean",
      "description": "Indicates whether the geometry contains M coordinate values."
    },
    "hasZ": {
      "type": "boolean",
      "description": "Indicates whether the geometry contains Z coordinate values."
    },
    "paths": {
      "type": "array",
      "description": "Three nested array levels describing a polyline. The first level describes individual paths; the second describes the points of these paths; and the third gives the coordinates of the points.",
      "items": {
        "type": "array",
        "items": {
          "type": "array",
          "items": {
            "type": "number"
          },
          "minItems": 2,
          "maxItems": 4
        },
        "minItems": 2
      }
    },
    "spatialReference": {
      "type": "object",
      "description": "The spatial reference can be defined using a well-known ID (WKID) or well-known text (WKT).",
      "$ref": "spatialReference_schema.json"
    }
  },
  "required": [
    "paths"
  ],
  "additionalProperties": false,
  "esriDocumentation": {
    "examples": [
      {
        "title": "polylineGeometry",
        "code": {
          "geometry": {
            "paths": [
              [
                [
                  -97.06138,
                  32.837
                ],
                [
                  -97.06133,
                  32.836
                ],
                [
                  -97.06124,
                  32.834
                ],
                [
                  -97.06127,
                  32.832
                ]
              ],
              [
                [
                  -97.06326,
                  32.759
                ],
                [
                  -97.06298,
                  32.755
                ]
              ]
            ],
            "spatialReference": {
              "wkid": 4326
            }
          }
        }
      }
    ]
  }
}
