Email on Acid API createtest JSON Schema




{
    "description" : "CreateTest",
    "type" : "object",
    "properties" : {
        "content" : {
            "type" : "object",
            "required" : true,
            "properties" : {
                "html" : {
                    "type" : "string",
                    "required" : false,
                    "pattern" : "/^[a-zA-Z0-9\\/\\r\\n+]*={0,2}$/"
                },
                "url" : {
                    "type" : "string",
                    "required" : false
                },
                "charset": {
                	"type" : "string",
                	"required" : true
                },
                "encoding" : {
                	"type" : "string",
                	"required" : true
                }
            }
        },
        "subject" : {
            "type" : "string",
            "required" : true
        },
        "test_id" : {
            "type" : "string",
            "required" : true
        },
        "user_guid" : {
            "type" : "string",
            "required" : true
        },

        "free_test" : {
            "type" : "boolean",
            "required" : false
        },
        "ios_fix" : {
            "type" : "string",
            "required" : false,
            "pattern" : "/[P|B|I]/"
        },
		"spam_analysis" : {
			"type" : "object",
            "required" : false,
            "properties" : {
                "subject" : {
                    "type" : "string",
                    "required" : true
                },
                "from_address" : {
                    "type" : "string",
                    "required" : false
                },
                "spam_type" : {
                    "type" : "string",
                    "required" : true,
                    "enum" : [ "seed", "smtp", "eoa" ]
                },
                "seed_key" : {
                    "type" : "string",
                    "required" : false
                },
                "smtp_info" : {
                	"type" : "object",
		            "required" : false,
		            "properties" : {
		                "smtp_host" : {
		                    "type" : "string",
		                    "required" : true
		                },
		                "smtp_port" : {
		                    "type" : "integer",
		                    "required" : true
		                },
		                "smtp_secure" : {
		                    "type" : "string",
		                    "required" : true,
                            "enum" : [ "ssl", "tls", "" ]
		                },
		                "smtp_acct" : {
		                    "type" : "string",
		                    "required" : true
		                },
		                "smtp_pass" : {
		                    "type" : "string",
		                    "required" : true
		                },
		                "smtp_from" : {
		                    "type" : "string",
		                    "required" : true
		                }
		            }
                }

            }
		},

        "clients" : {
            "type" : "array",
            "items": {
			    "type":"object",
			    "properties": {
			    	"client_code" : {
	                    "type" : "integer",
	                    "required" : true
                	},
			    	"browsers": {
			    		"type": "array",
			    		"required" : false,
			    		"items": {
						    "type":"object",
						    "properties": {
						    	"browser_code" : {
				                    "type" : "string",
				                    "required" : true
			                	}
			                }
					    }
			    	}
			    }

			},
            "required" : false,
            "minItems" : 1
        }
    }
}