{
	"$schema" : "http://json-schema.org/draft-04/schema#",
	"title" : "LayerSpaceConfiguration",
	"type" : "object",
	"additionalProperties" : false,
	"description" : "It is a configuration for mapping of layer-spacific spaceIDs to dataService spaceIDs.  This configuration is absolutely required for any trueDelta update for that specific layer's space.  If a lyer decide to not update a specific space, they don't need to add that space in the mapping",
	"properties" : {
		"layer_id" : {
			"$ref" : "/resources/schema/data/api/denali/DataLayer.json",
			"description" : "The Layer this mapping belongs to"
		},

		"layer_spaces" : {
			"type" : "array",
			"description" : "Mapping of the layer-specific spaces to spcaeID",
			"items" : {
				"$ref" : "/resources/schema/data/api/denali/LayerDefinition.json",
				"description" : "Each element has to be instance of LayerDefinition Object"
			}
		},

		"space_layers" : {
			"type" : "array",
			"description" : "Mapping of the spaceID to layer-specific spaces",
			"items" : {
				"$ref" : "/resources/schema/data/api/denali/SpaceDefinition.json",
				"description" : "Each element has to be instance of LayerDefinition Object"
			}
		}
	},

	"required" : 
	[
		"layer_id",
		"layer_spaces",
		"space_layers"
	]
}