lib/har/viewer/scripts/preview/harSchema.js in har-0.0.9 vs lib/har/viewer/scripts/preview/harSchema.js in har-0.1.0
- old
+ new
@@ -92,11 +92,11 @@
"description": "Request and Response related info",
"optional": true,
"properties": {
"pageref": {"type": "string", "optional": true},
"startedDateTime": {"type": "string", "format": "date-time", "pattern": dateTimePattern},
- "time": {"type": "integer", "min": 0},
+ "time": {"type": "number", "min": 0},
"request" : {"$ref": "requestType"},
"response" : {"$ref": "responseType"},
"cache" : {"$ref": "cacheType"},
"timings" : {"$ref": "timingsType"},
"serverIPAddress" : {"type": "string", "optional": true},
@@ -242,17 +242,17 @@
var timingsType = {
"timingsType": {
"id": "timingsType",
"description": "Info about request-response timing.",
"properties": {
- "dns": {"type": "integer", "min": -1},
- "connect": {"type": "integer", "min": -1},
- "blocked": {"type": "integer", "min": -1},
- "send": {"type": "integer", "min": -1},
- "wait": {"type": "integer", "min": -1},
- "receive": {"type": "integer", "min": -1},
- "ssl": {"type": "integer", "optional": true, "min": -1},
+ "dns": {"type": "number", "optional": true, "min": -1},
+ "connect": {"type": "number", "optional": true, "min": -1},
+ "blocked": {"type": "number", "optional": true, "min": -1},
+ "send": {"type": "number", "min": -1},
+ "wait": {"type": "number", "min": -1},
+ "receive": {"type": "number", "min": -1},
+ "ssl": {"type": "number", "optional": true, "min": -1},
"comment": {"type": "string", "optional": true}
}
}
};
@@ -263,10 +263,10 @@
Schema.prototype =
{
registerType: function()
{
var doIt = function(my, obj){
- for (name in obj) {
+ for (var name in obj) {
if (obj.hasOwnProperty(name) && name != "prototype") {
my[name] = obj[name];
}
}
}