Template Upload

This commit is contained in:
SOUTHERNCO\x2mjbyrn
2017-05-17 13:45:25 -04:00
parent 415b9c25f3
commit 7efe7605b8
11476 changed files with 2170865 additions and 34 deletions

13
node_modules/har-validator/lib/schemas/cache.json generated vendored Normal file
View File

@ -0,0 +1,13 @@
{
"properties": {
"beforeRequest": {
"$ref": "#cacheEntry"
},
"afterRequest": {
"$ref": "#cacheEntry"
},
"comment": {
"type": "string"
}
}
}

31
node_modules/har-validator/lib/schemas/cacheEntry.json generated vendored Normal file
View File

@ -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
}]
}

27
node_modules/har-validator/lib/schemas/content.json generated vendored Normal file
View File

@ -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"
}
}
}

34
node_modules/har-validator/lib/schemas/cookie.json generated vendored Normal file
View File

@ -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"
}
}
}

18
node_modules/har-validator/lib/schemas/creator.json generated vendored Normal file
View File

@ -0,0 +1,18 @@
{
"type": "object",
"required": [
"name",
"version"
],
"properties": {
"name": {
"type": "string"
},
"version": {
"type": "string"
},
"comment": {
"type": "string"
}
}
}

51
node_modules/har-validator/lib/schemas/entry.json generated vendored Normal file
View File

@ -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"
}
}
}

11
node_modules/har-validator/lib/schemas/har.json generated vendored Normal file
View File

@ -0,0 +1,11 @@
{
"type": "object",
"required": [
"log"
],
"properties": {
"log": {
"$ref": "#log"
}
}
}

49
node_modules/har-validator/lib/schemas/index.js generated vendored Normal file
View File

@ -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

34
node_modules/har-validator/lib/schemas/log.json generated vendored Normal file
View File

@ -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"
}
}
}

30
node_modules/har-validator/lib/schemas/page.json generated vendored Normal file
View File

@ -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"
}
}
}

View File

@ -0,0 +1,16 @@
{
"type": "object",
"properties": {
"onContentLoad": {
"type": "number",
"min": -1
},
"onLoad": {
"type": "number",
"min": -1
},
"comment": {
"type": "string"
}
}
}

41
node_modules/har-validator/lib/schemas/postData.json generated vendored Normal file
View File

@ -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"
}
}
}

18
node_modules/har-validator/lib/schemas/record.json generated vendored Normal file
View File

@ -0,0 +1,18 @@
{
"type": "object",
"required": [
"name",
"value"
],
"properties": {
"name": {
"type": "string"
},
"value": {
"type": "string"
},
"comment": {
"type": "string"
}
}
}

55
node_modules/har-validator/lib/schemas/request.json generated vendored Normal file
View File

@ -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"
}
}
}

52
node_modules/har-validator/lib/schemas/response.json generated vendored Normal file
View File

@ -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"
}
}
}

40
node_modules/har-validator/lib/schemas/timings.json generated vendored Normal file
View File

@ -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"
}
}
}