{
    "title": "Table DataSource",
    "type": "object",
    "$schema": "http://json-schema.org/draft-04/schema",
    "description": "Table data source is a table, feature class, or raster that resides in a registered workspace (either a folder or geodatabase). In the case of a geodatabase, if versioned, use version to switch to an alternate geodatabase version. If version is empty or missing, the registered geodatabase version will be used.",
    "properties": {
        "dataSourceName": {
            "type": "string",
            "description": "The fully-qualified string value used to specify where the dataSource is derived."
        },
        "gdbVersion": {
            "type": "string",
            "description": "If applicable, the value indicating the version of the geodatabase."
        },
        "type": {
            "type": "string",
            "description": "String value indicating the type for the dataSource. The value for a Table DataSource is `table`.",
            "enum": [
                "table"
            ]
        },
        "workspaceId": {
            "type": "string",
            "description": "The unique string value used to identify the datasource's workspace."
        }
    },
    "required": [
        "type"
    ],
    "additionalProperties": false,
    "esriDocumentation": {
        "examples": [
            {
                "title": "Table DataSource",
                "code": {
                    "dataSource": {
                        "type": "table",
                        "workspaceId": "MyDatabaseWorkspaceIDSSR2",
                        "dataSourceName": "ss6.gdb.Lakes"
                    }
                }
            }
        ]
    }
}