{
	"$schema" : "http://json-schema.org/draft-04/schema#",
	"title" : "ChangesetFileCreateRequest",
	"type" : "object",
	"additionalProperties" : false,
	"description" : "Version v1 - Create API for ChangesetFile Request",
	"api_path" : "/v1/changesetfile/create",
	"properties" : {
		"release_bundle_id" : {
			"type" : "string",
			"description" : "Unique Identifier of the Release Bundle.  This parameter is for consistency and sanity check purpose.  ReleaseBundle must NOT be locked for this operation to succeed.  Publisher has to know exactly what they're publishing this file for.",
			"minLength" : 24,
			"maxLength" : 32
		},

		"changeset_id" : {
			"type" : "string",
			"description" : "Unique Identifier of the Change Set.  The file must belond to a valid changeset.",
			"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.  It's publisher's responsibility to maintain the uniqueness of file names.  Conflicting value of this name with existing file, will result in overwrite of this file over previous one, if the API succeed.",
			"minLength" : 1
		},

		"size_in_bytes" : {
			"type" : "integer",
			"description" : "This parameter indicates the size of the file in bytes.  Currently this value has to be >= 1 && <= 52428800 (50 MB)",
			"minimum" : 1,
			"maximum" : 52428800
		},

		"md5_checksum" : {
			"type" : "string",
			"description" : "The MD5 Hash (in hexadecimal format) for the file.  Publisher should be uploading this value to ensure the proper upload of file through the API",
			"minLength" : 24
		},
		
		"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" : 
	[
		"release_bundle_id",
		"changeset_id",
		"name",
		"size_in_bytes",
		"md5_checksum"
	]
}