{ "type":"object", "$schema": "http://json-schema.org/draft-04/schema", "title" : "VCMI map object format", "description" : "Description of map object class", "required": [ "handler", "name" ], "additionalProperties" : false, "properties":{ "index": { "type":"number", }, "name": { "type":"string", }, "handler": { "type":"string", }, "sounds": { "type":"object", "additionalProperties" : false, "description": "Sounds used by this object", "properties" : { "ambient": { "type":"array", "description": "Background sound of an object", "items": { "type": "string" } }, "visit": { "type":"array", "description": "Sound that played on object visit", "items": { "type": "string" } }, "removal": { "type":"array", "description": "Sound that played on object removal", "items": { "type": "string" } } } }, "base": { "type" : "object" }, "types": { "type":"object", "additionalProperties": { "$ref" : "vcmi:objectType" } } } }