{
    "$id": "editProduct",
    "type": "object",
    "properties": {
        "productId": {
            "type": "string"
        },
        "productPermalink": {
            "type": "string",
            "isNotEmpty": true,
            "minLength": 2
        },
        "productTitle": {
            "type": "string",
            "isNotEmpty": true,
            "minLength": 5
        },
        "productPrice": {
            "type": "string",
            "format": "amount"
        },
        "productDescription": {
            "type": "string",
            "isNotEmpty": true,
            "minLength": 25
        },
        "productPublished": {
            "type": "boolean"
        },
        "productTags": {
            "type": "string"
        },
        "productComment": {
            "type": "boolean"
        },
        "productStock": {
            "type": ["number", "null"]
        },
        "productStockDisable": {
            "type": "boolean"
        }
    },
    "errorMessage": {
        "isNotEmpty": "This is my custom error message",
        "properties": {
            "productPrice": "Should be a full 2 decimal value. Eg: 10.99",
            "productPublished": "Should be either true or false",
            "productComment": "Should be either true or false"
        }
    },
    "required": [
        "productId"
    ]
}