diff options
Diffstat (limited to 'vnfmarket/src/main/webapp/vnfmarket/node_modules/har-validator/lib/schemas')
16 files changed, 520 insertions, 0 deletions
diff --git a/vnfmarket/src/main/webapp/vnfmarket/node_modules/har-validator/lib/schemas/cache.json b/vnfmarket/src/main/webapp/vnfmarket/node_modules/har-validator/lib/schemas/cache.json new file mode 100644 index 00000000..a3ab682d --- /dev/null +++ b/vnfmarket/src/main/webapp/vnfmarket/node_modules/har-validator/lib/schemas/cache.json @@ -0,0 +1,13 @@ +{ + "properties": { + "beforeRequest": { + "$ref": "#cacheEntry" + }, + "afterRequest": { + "$ref": "#cacheEntry" + }, + "comment": { + "type": "string" + } + } +} diff --git a/vnfmarket/src/main/webapp/vnfmarket/node_modules/har-validator/lib/schemas/cacheEntry.json b/vnfmarket/src/main/webapp/vnfmarket/node_modules/har-validator/lib/schemas/cacheEntry.json new file mode 100644 index 00000000..a397439f --- /dev/null +++ b/vnfmarket/src/main/webapp/vnfmarket/node_modules/har-validator/lib/schemas/cacheEntry.json @@ -0,0 +1,31 @@ +{ + "oneOf": [{ + "type": "object", + "optional": true, + "required": [ + "lastAccess", + "eTag", + "hitCount" + ], + "properties": { + "expires": { + "type": "string" + }, + "lastAccess": { + "type": "string" + }, + "eTag": { + "type": "string" + }, + "hitCount": { + "type": "integer" + }, + "comment": { + "type": "string" + } + } + }, { + "type": null, + "additionalProperties": false + }] +} diff --git a/vnfmarket/src/main/webapp/vnfmarket/node_modules/har-validator/lib/schemas/content.json b/vnfmarket/src/main/webapp/vnfmarket/node_modules/har-validator/lib/schemas/content.json new file mode 100644 index 00000000..3710d793 --- /dev/null +++ b/vnfmarket/src/main/webapp/vnfmarket/node_modules/har-validator/lib/schemas/content.json @@ -0,0 +1,27 @@ +{ + "type": "object", + "required": [ + "size", + "mimeType" + ], + "properties": { + "size": { + "type": "integer" + }, + "compression": { + "type": "integer" + }, + "mimeType": { + "type": "string" + }, + "text": { + "type": "string" + }, + "encoding": { + "type": "string" + }, + "comment": { + "type": "string" + } + } +} diff --git a/vnfmarket/src/main/webapp/vnfmarket/node_modules/har-validator/lib/schemas/cookie.json b/vnfmarket/src/main/webapp/vnfmarket/node_modules/har-validator/lib/schemas/cookie.json new file mode 100644 index 00000000..57681818 --- /dev/null +++ b/vnfmarket/src/main/webapp/vnfmarket/node_modules/har-validator/lib/schemas/cookie.json @@ -0,0 +1,34 @@ +{ + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + }, + "path": { + "type": "string" + }, + "domain": { + "type": "string" + }, + "expires": { + "type": ["string", "null"], + "format": "date-time" + }, + "httpOnly": { + "type": "boolean" + }, + "secure": { + "type": "boolean" + }, + "comment": { + "type": "string" + } + } +} diff --git a/vnfmarket/src/main/webapp/vnfmarket/node_modules/har-validator/lib/schemas/creator.json b/vnfmarket/src/main/webapp/vnfmarket/node_modules/har-validator/lib/schemas/creator.json new file mode 100644 index 00000000..50586006 --- /dev/null +++ b/vnfmarket/src/main/webapp/vnfmarket/node_modules/har-validator/lib/schemas/creator.json @@ -0,0 +1,18 @@ +{ + "type": "object", + "required": [ + "name", + "version" + ], + "properties": { + "name": { + "type": "string" + }, + "version": { + "type": "string" + }, + "comment": { + "type": "string" + } + } +} diff --git a/vnfmarket/src/main/webapp/vnfmarket/node_modules/har-validator/lib/schemas/entry.json b/vnfmarket/src/main/webapp/vnfmarket/node_modules/har-validator/lib/schemas/entry.json new file mode 100644 index 00000000..8a9c022b --- /dev/null +++ b/vnfmarket/src/main/webapp/vnfmarket/node_modules/har-validator/lib/schemas/entry.json @@ -0,0 +1,51 @@ +{ + "type": "object", + "optional": true, + "required": [ + "startedDateTime", + "time", + "request", + "response", + "cache", + "timings" + ], + "properties": { + "pageref": { + "type": "string" + }, + "startedDateTime": { + "type": "string", + "format": "date-time", + "pattern": "^(\\d{4})(-)?(\\d\\d)(-)?(\\d\\d)(T)?(\\d\\d)(:)?(\\d\\d)(:)?(\\d\\d)(\\.\\d+)?(Z|([+-])(\\d\\d)(:)?(\\d\\d))" + }, + "time": { + "type": "number", + "min": 0 + }, + "request": { + "$ref": "#request" + }, + "response": { + "$ref": "#response" + }, + "cache": { + "$ref": "#cache" + }, + "timings": { + "$ref": "#timings" + }, + "serverIPAddress": { + "type": "string", + "oneOf": [ + { "format": "ipv4" }, + { "format": "ipv6" } + ] + }, + "connection": { + "type": "string" + }, + "comment": { + "type": "string" + } + } +} diff --git a/vnfmarket/src/main/webapp/vnfmarket/node_modules/har-validator/lib/schemas/har.json b/vnfmarket/src/main/webapp/vnfmarket/node_modules/har-validator/lib/schemas/har.json new file mode 100644 index 00000000..b542782d --- /dev/null +++ b/vnfmarket/src/main/webapp/vnfmarket/node_modules/har-validator/lib/schemas/har.json @@ -0,0 +1,11 @@ +{ + "type": "object", + "required": [ + "log" + ], + "properties": { + "log": { + "$ref": "#log" + } + } +} diff --git a/vnfmarket/src/main/webapp/vnfmarket/node_modules/har-validator/lib/schemas/index.js b/vnfmarket/src/main/webapp/vnfmarket/node_modules/har-validator/lib/schemas/index.js new file mode 100644 index 00000000..7b6db7da --- /dev/null +++ b/vnfmarket/src/main/webapp/vnfmarket/node_modules/har-validator/lib/schemas/index.js @@ -0,0 +1,49 @@ +'use strict' + +var schemas = { + cache: require('./cache.json'), + cacheEntry: require('./cacheEntry.json'), + content: require('./content.json'), + cookie: require('./cookie.json'), + creator: require('./creator.json'), + entry: require('./entry.json'), + har: require('./har.json'), + log: require('./log.json'), + page: require('./page.json'), + pageTimings: require('./pageTimings.json'), + postData: require('./postData.json'), + record: require('./record.json'), + request: require('./request.json'), + response: require('./response.json'), + timings: require('./timings.json') +} + +// is-my-json-valid does not provide meaningful error messages for external schemas +// this is a workaround +schemas.cache.properties.beforeRequest = schemas.cacheEntry +schemas.cache.properties.afterRequest = schemas.cacheEntry + +schemas.page.properties.pageTimings = schemas.pageTimings + +schemas.request.properties.cookies.items = schemas.cookie +schemas.request.properties.headers.items = schemas.record +schemas.request.properties.queryString.items = schemas.record +schemas.request.properties.postData = schemas.postData + +schemas.response.properties.cookies.items = schemas.cookie +schemas.response.properties.headers.items = schemas.record +schemas.response.properties.content = schemas.content + +schemas.entry.properties.request = schemas.request +schemas.entry.properties.response = schemas.response +schemas.entry.properties.cache = schemas.cache +schemas.entry.properties.timings = schemas.timings + +schemas.log.properties.creator = schemas.creator +schemas.log.properties.browser = schemas.creator +schemas.log.properties.pages.items = schemas.page +schemas.log.properties.entries.items = schemas.entry + +schemas.har.properties.log = schemas.log + +module.exports = schemas diff --git a/vnfmarket/src/main/webapp/vnfmarket/node_modules/har-validator/lib/schemas/log.json b/vnfmarket/src/main/webapp/vnfmarket/node_modules/har-validator/lib/schemas/log.json new file mode 100644 index 00000000..0c91d38b --- /dev/null +++ b/vnfmarket/src/main/webapp/vnfmarket/node_modules/har-validator/lib/schemas/log.json @@ -0,0 +1,34 @@ +{ + "type": "object", + "required": [ + "version", + "creator", + "entries" + ], + "properties": { + "version": { + "type": "string" + }, + "creator": { + "$ref": "#creator" + }, + "browser": { + "$ref": "#creator" + }, + "pages": { + "type": "array", + "items": { + "$ref": "#page" + } + }, + "entries": { + "type": "array", + "items": { + "$ref": "#entry" + } + }, + "comment": { + "type": "string" + } + } +} diff --git a/vnfmarket/src/main/webapp/vnfmarket/node_modules/har-validator/lib/schemas/page.json b/vnfmarket/src/main/webapp/vnfmarket/node_modules/har-validator/lib/schemas/page.json new file mode 100644 index 00000000..ef64abe5 --- /dev/null +++ b/vnfmarket/src/main/webapp/vnfmarket/node_modules/har-validator/lib/schemas/page.json @@ -0,0 +1,30 @@ +{ + "type": "object", + "optional": true, + "required": [ + "startedDateTime", + "id", + "title", + "pageTimings" + ], + "properties": { + "startedDateTime": { + "type": "string", + "format": "date-time", + "pattern": "^(\\d{4})(-)?(\\d\\d)(-)?(\\d\\d)(T)?(\\d\\d)(:)?(\\d\\d)(:)?(\\d\\d)(\\.\\d+)?(Z|([+-])(\\d\\d)(:)?(\\d\\d))" + }, + "id": { + "type": "string", + "unique": true + }, + "title": { + "type": "string" + }, + "pageTimings": { + "$ref": "#pageTimings" + }, + "comment": { + "type": "string" + } + } +} diff --git a/vnfmarket/src/main/webapp/vnfmarket/node_modules/har-validator/lib/schemas/pageTimings.json b/vnfmarket/src/main/webapp/vnfmarket/node_modules/har-validator/lib/schemas/pageTimings.json new file mode 100644 index 00000000..adc83ccc --- /dev/null +++ b/vnfmarket/src/main/webapp/vnfmarket/node_modules/har-validator/lib/schemas/pageTimings.json @@ -0,0 +1,16 @@ +{ + "type": "object", + "properties": { + "onContentLoad": { + "type": "number", + "min": -1 + }, + "onLoad": { + "type": "number", + "min": -1 + }, + "comment": { + "type": "string" + } + } +} diff --git a/vnfmarket/src/main/webapp/vnfmarket/node_modules/har-validator/lib/schemas/postData.json b/vnfmarket/src/main/webapp/vnfmarket/node_modules/har-validator/lib/schemas/postData.json new file mode 100644 index 00000000..91958b64 --- /dev/null +++ b/vnfmarket/src/main/webapp/vnfmarket/node_modules/har-validator/lib/schemas/postData.json @@ -0,0 +1,41 @@ +{ + "type": "object", + "optional": true, + "required": [ + "mimeType" + ], + "properties": { + "mimeType": { + "type": "string" + }, + "text": { + "type": "string" + }, + "params": { + "type": "array", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + }, + "fileName": { + "type": "string" + }, + "contentType": { + "type": "string" + }, + "comment": { + "type": "string" + } + } + }, + "comment": { + "type": "string" + } + } +} diff --git a/vnfmarket/src/main/webapp/vnfmarket/node_modules/har-validator/lib/schemas/record.json b/vnfmarket/src/main/webapp/vnfmarket/node_modules/har-validator/lib/schemas/record.json new file mode 100644 index 00000000..04acd519 --- /dev/null +++ b/vnfmarket/src/main/webapp/vnfmarket/node_modules/har-validator/lib/schemas/record.json @@ -0,0 +1,18 @@ +{ + "type": "object", + "required": [ + "name", + "value" + ], + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + }, + "comment": { + "type": "string" + } + } +} diff --git a/vnfmarket/src/main/webapp/vnfmarket/node_modules/har-validator/lib/schemas/request.json b/vnfmarket/src/main/webapp/vnfmarket/node_modules/har-validator/lib/schemas/request.json new file mode 100644 index 00000000..639af06d --- /dev/null +++ b/vnfmarket/src/main/webapp/vnfmarket/node_modules/har-validator/lib/schemas/request.json @@ -0,0 +1,55 @@ +{ + "type": "object", + "required": [ + "method", + "url", + "httpVersion", + "cookies", + "headers", + "queryString", + "headersSize", + "bodySize" + ], + "properties": { + "method": { + "type": "string" + }, + "url": { + "type": "string", + "format": "uri" + }, + "httpVersion": { + "type": "string" + }, + "cookies": { + "type": "array", + "items": { + "$ref": "#cookie" + } + }, + "headers": { + "type": "array", + "items": { + "$ref": "#record" + } + }, + "queryString": { + "type": "array", + "items": { + "$ref": "#record" + } + }, + "postData": { + "$ref": "#postData" + }, + "headersSize": { + "type": "integer" + }, + "bodySize": { + "type": "integer" + }, + "comment": { + "type": "string" + } + } +} diff --git a/vnfmarket/src/main/webapp/vnfmarket/node_modules/har-validator/lib/schemas/response.json b/vnfmarket/src/main/webapp/vnfmarket/node_modules/har-validator/lib/schemas/response.json new file mode 100644 index 00000000..de99c55b --- /dev/null +++ b/vnfmarket/src/main/webapp/vnfmarket/node_modules/har-validator/lib/schemas/response.json @@ -0,0 +1,52 @@ +{ + "type": "object", + "required": [ + "status", + "statusText", + "httpVersion", + "cookies", + "headers", + "content", + "redirectURL", + "headersSize", + "bodySize" + ], + "properties": { + "status": { + "type": "integer" + }, + "statusText": { + "type": "string" + }, + "httpVersion": { + "type": "string" + }, + "cookies": { + "type": "array", + "items": { + "$ref": "#cookie" + } + }, + "headers": { + "type": "array", + "items": { + "$ref": "#record" + } + }, + "content": { + "$ref": "#content" + }, + "redirectURL": { + "type": "string" + }, + "headersSize": { + "type": "integer" + }, + "bodySize": { + "type": "integer" + }, + "comment": { + "type": "string" + } + } +} diff --git a/vnfmarket/src/main/webapp/vnfmarket/node_modules/har-validator/lib/schemas/timings.json b/vnfmarket/src/main/webapp/vnfmarket/node_modules/har-validator/lib/schemas/timings.json new file mode 100644 index 00000000..066ef71a --- /dev/null +++ b/vnfmarket/src/main/webapp/vnfmarket/node_modules/har-validator/lib/schemas/timings.json @@ -0,0 +1,40 @@ +{ + "required": [ + "send", + "wait", + "receive" + ], + "properties": { + "dns": { + "type": "number", + "min": -1 + }, + "connect": { + "type": "number", + "min": -1 + }, + "blocked": { + "type": "number", + "min": -1 + }, + "send": { + "type": "number", + "min": -1 + }, + "wait": { + "type": "number", + "min": -1 + }, + "receive": { + "type": "number", + "min": -1 + }, + "ssl": { + "type": "number", + "min": -1 + }, + "comment": { + "type": "string" + } + } +} |