{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "id": "#/definitions/response",
    "title": "Response",
    "description": "A response represents an HTTP response.",
    "properties": {
        "responseCode": {
            "type": "object",
            "properties": {
                "code": {
                    "type": "number",
                    "description": "Each HTTP response has a numeric response code (explained in [rfc-2616](http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html). This code is stored in this field by Postman."
                },
                "name": {
                    "type": "string",
                    "description": "Since it is rather hard to keep track of what a number means, responses can have a Human-friendly string describing the response code."
                },
                "detail": {
                    "type": "string",
                    "description": "Detailed explanation about the response code goes here."
                }
            },
            "required": [
                "code",
                "name"
            ]
        },
        "time": {
            "oneOf": [
                {
                    "type": "string"
                },
                {
                    "type": "number"
                }
            ],
            "description": "The time taken by the request to complete."
        },
        "headers": {
            "type": "array",
            "items": {
                "type": "object",
                "properties": {
                    "name": {
                        "type": "string",
                        "description": "Some headers can have names associated with them, which are stored in this field."
                    },
                    "key": {
                        "type": "string",
                        "description": "The left hand side (LHS) or 'key' of the header."
                    },
                    "value": {
                        "type": "string",
                        "description": "Value of the header, or the right hand side (RHS)."
                    },
                    "description": {
                        "type": "string",
                        "description": "An optional description about the header."
                    }
                },
                "required": [
                    "key",
                    "value"
                ]
            }
        },
        "cookies": {
            "type": "array",
            "items": {
                "type": "object",
                "title": "Cookie",
                "description": "A Cookie, that follows the [Google Chrome format](https://developer.chrome.com/extensions/cookies)",
                "properties": {
                    "domain": {
                        "type": "string",
                        "description": "The domain for which this cookie is valid."
                    },
                    "expirationDate": {
                        "type": "number",
                        "description": "The timestamp of the time when the cookie expires."
                    },
                    "hostOnly": {
                        "type": "boolean",
                        "description": "True if the cookie is a host-only cookie. (i.e. a request's URL domain must exactly match the domain of the cookie)."
                    },
                    "httpOnly": {
                        "type": "boolean",
                        "description": "Indicates if this cookie is HTTP Only. (if True, the cookie is inaccessible to client-side scripts)"
                    },
                    "name": {
                        "type": "string",
                        "description": "This is the name of the Cookie."
                    },
                    "path": {
                        "type": "string",
                        "description": "The path associated with the Cookie."
                    },
                    "secure": {
                        "type": "boolean",
                        "description": "Indicates if the 'secure' flag is set on the Cookie, meaning that it is transmitted over secure connections only. (typically HTTPS)"
                    },
                    "session": {
                        "type": "boolean",
                        "description": "True if the cookie is a session cookie."
                    },
                    "storeId": {
                        "type": "string",
                        "description": "The ID of the cookie store containing this cookie."
                    },
                    "value": {
                        "type": "string",
                        "description": "The value of the Cookie."
                    },
                    "expires": {
                        "type": "string",
                        "description": "Human readable expiration time."
                    }
                },
                "required": [
                    "domain",
                    "expirationDate",
                    "hostOnly",
                    "httpOnly",
                    "name",
                    "path",
                    "secure",
                    "session",
                    "storeId",
                    "value",
                    "expires"
                ]
            }
        },
        "mime": {
            "type": "string",
            "description": "Mimetype of the response."
        },
        "text": {
            "type": "string",
            "description": "The raw text of the response."
        },
        "rawDataType": {
            "type": "string",
            "description": "The data type of the raw response."
        }
    },
    "required": [
        "responseCode",
        "headers",
        "text"
    ]
}