{
    "title": "Dynamic map layer",
    "type": "object",
    "$schema": "http://json-schema.org/draft-04/schema",
    "description": "A dynamic map layer refers to a layer in the current map service. More information on this can be found in the [ArcGIS REST API help](http://resources.arcgis.com/en/help/rest/apiref/layersource.html).",
    "properties": {
        "gdbVersion": {
            "type": "string",
            "description": "If applicable, specify this to use an alternate geodatabase version."
        },
        "mapLayerId": {
            "type": "integer",
            "description": "The current map layer's id."
        },
        "type": {
            "type": "string",
            "description": "A string value indicating the type.",
            "enum": [
                "mapLayer"
            ]
        }
    },
    "required": [
        "mapLayerId",
        "type"
    ],
    "additionalProperties": false,
    "esriDocumentation": {
        "examples": [
            {
                "title": "dynamicMapLayer",
                "code": {
                    "source": {
                        "type": "mapLayer",
                        "mapLayerId": 3,
                        "gdbVersion": "SDE.dynamicLayers"
                    }
                }
            }
        ]
    }
}