Skip to content

Commit

Permalink
fix(schemas): add missing schemas
Browse files Browse the repository at this point in the history
BREAKING CHANGE: missing schemas
  • Loading branch information
Ahmad Nassri committed Dec 4, 2016
1 parent 85d1771 commit 2f4f631
Show file tree
Hide file tree
Showing 7 changed files with 49 additions and 7 deletions.
19 changes: 19 additions & 0 deletions lib/browser.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"id": "browser.json#",
"type": "object",
"required": [
"name",
"version"
],
"properties": {
"name": {
"type": "string"
},
"version": {
"type": "string"
},
"comment": {
"type": "string"
}
}
}
2 changes: 1 addition & 1 deletion lib/record.json → lib/header.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"id": "record.json#",
"id": "header.json#",
"type": "object",
"required": [
"name",
Expand Down
8 changes: 6 additions & 2 deletions lib/index.js
Original file line number Diff line number Diff line change
@@ -1,36 +1,40 @@
'use strict'

const browser = require('./browser.json')
const cache = require('./cache.json')
const cacheEntry = require('./cacheEntry.json')
const content = require('./content.json')
const cookie = require('./cookie.json')
const creator = require('./creator.json')
const entry = require('./entry.json')
const har = require('./har.json')
const header = require('./header.json')
const index = require('./index.js')
const log = require('./log.json')
const page = require('./page.json')
const pageTimings = require('./pageTimings.json')
const postData = require('./postData.json')
const record = require('./record.json')
const query = require('./query.json')
const request = require('./request.json')
const response = require('./response.json')
const timings = require('./timings.json')

module.exports = {
browser,
cache,
cacheEntry,
content,
cookie,
creator,
entry,
har,
header,
index,
log,
page,
pageTimings,
postData,
record,
query,
request,
response,
timings
Expand Down
2 changes: 1 addition & 1 deletion lib/log.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"$ref": "creator.json#"
},
"browser": {
"$ref": "creator.json#"
"$ref": "browser.json#"
},
"pages": {
"type": "array",
Expand Down
19 changes: 19 additions & 0 deletions lib/query.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"id": "query.json#",
"type": "object",
"required": [
"name",
"value"
],
"properties": {
"name": {
"type": "string"
},
"value": {
"type": "string"
},
"comment": {
"type": "string"
}
}
}
4 changes: 2 additions & 2 deletions lib/request.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@
"headers": {
"type": "array",
"items": {
"$ref": "record.json#"
"$ref": "header.json#"
}
},
"queryString": {
"type": "array",
"items": {
"$ref": "record.json#"
"$ref": "query.json#"
}
},
"postData": {
Expand Down
2 changes: 1 addition & 1 deletion lib/response.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"headers": {
"type": "array",
"items": {
"$ref": "record.json#"
"$ref": "header.json#"
}
},
"content": {
Expand Down

0 comments on commit 2f4f631

Please sign in to comment.