{
	"$schema" : "http://json-schema.org/draft-04/schema#",
	"title" : "ChangesetFile",
	"type" : "object",
	"additionalProperties" : false,
	"description" : "Version v1 - This Object represent the ChangesetFile to release.",
	"properties" : {
		"id" : {
			"type" : "string",
			"description" : "Unique Identifier of a Changeset File.  This ID is used for all CRUD operations",
			"minLength" : 24,
			"maxLength" : 32
		},

		"changeset_id" : {
			"type" : "string",
			"description" : "The Changeset identifier of this file.  It is the same ID that was passed during the create file request.",
			"minLength" : 24,
			"maxLength" : 32
		},

		"name" : {
			"type" : "string",
			"description" : "Name of the file, as in on the filesystem.  The file will be downloaded as this filename on the reader end.",
			"minLength" : 1
		},

		"size_in_bytes" : {
			"type" : "integer",
			"description" : "This parameter indicates the size of the file in bytes",
			"minimum" : 1,
			"maximum" : 536870912
		},

		"md5_checksum" : {
			"type" : "string",
			"description" : "The MD5 Hash (in hexadecimal format) for the file",
			"minLength" : 24
		},

		"secure_signature" : {
			"type" : "string",
			"description" : "The Base64 encoded encrypted signature of 'md5_checksum' attribute of the file",
			"minLength" : 4
		},
		
		"secure_signature_key_id" : {
			"type" : "string",
			"description" : "ID of the key used to create the secure signature.",
			"minLength" : 4
		},
		
		"download_uri" : {
			"type" : "string",
			"description" : "The URI of the File/Part",
			"minLength" : 3
		},
		
		"is_meta_file" : {
			"type" : "boolean",
			"description" : "If exists AND true, tells that this file is a metedata file.  This is same value set by changeset publisher."
		}
		
	},

	"required" : 
	[
		"id",
		"changeset_id",
		"name",
		"size_in_bytes",
		"md5_checksum",
		"secure_signature",
		"secure_signature_key_id",
		"download_uri",
		"is_meta_file"
	]
}