Skip to content

Commit

Permalink
feat(schema): Migrate schemas to JSON-Schema draft-06
Browse files Browse the repository at this point in the history
BREAKING CHANGE: Migrate to JSON-Schema draft-06
  • Loading branch information
Evgeny Poberezkin authored and Ahmad Nassri committed Apr 18, 2017
1 parent 7dde6d4 commit d006b05
Show file tree
Hide file tree
Showing 19 changed files with 37 additions and 19 deletions.
3 changes: 2 additions & 1 deletion lib/afterRequest.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"id": "afterRequest.json#",
"$id": "afterRequest.json#",
"$schema": "http://json-schema.org/draft-06/schema#",
"type": "object",
"optional": true,
"required": [
Expand Down
3 changes: 2 additions & 1 deletion lib/beforeRequest.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"id": "beforeRequest.json#",
"$id": "beforeRequest.json#",
"$schema": "http://json-schema.org/draft-06/schema#",
"type": "object",
"optional": true,
"required": [
Expand Down
3 changes: 2 additions & 1 deletion lib/browser.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"id": "browser.json#",
"$id": "browser.json#",
"$schema": "http://json-schema.org/draft-06/schema#",
"type": "object",
"required": [
"name",
Expand Down
3 changes: 2 additions & 1 deletion lib/cache.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"id": "cache.json#",
"$id": "cache.json#",
"$schema": "http://json-schema.org/draft-06/schema#",
"properties": {
"beforeRequest": {
"oneOf": [
Expand Down
3 changes: 2 additions & 1 deletion lib/content.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"id": "content.json#",
"$id": "content.json#",
"$schema": "http://json-schema.org/draft-06/schema#",
"type": "object",
"required": [
"size",
Expand Down
3 changes: 2 additions & 1 deletion lib/cookie.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"id": "cookie.json#",
"$id": "cookie.json#",
"$schema": "http://json-schema.org/draft-06/schema#",
"type": "object",
"required": [
"name",
Expand Down
3 changes: 2 additions & 1 deletion lib/creator.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"id": "creator.json#",
"$id": "creator.json#",
"$schema": "http://json-schema.org/draft-06/schema#",
"type": "object",
"required": [
"name",
Expand Down
3 changes: 2 additions & 1 deletion lib/entry.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"id": "entry.json#",
"$id": "entry.json#",
"$schema": "http://json-schema.org/draft-06/schema#",
"type": "object",
"optional": true,
"required": [
Expand Down
3 changes: 2 additions & 1 deletion lib/har.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"id": "har.json#",
"$id": "har.json#",
"$schema": "http://json-schema.org/draft-06/schema#",
"type": "object",
"required": [
"log"
Expand Down
3 changes: 2 additions & 1 deletion lib/header.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"id": "header.json#",
"$id": "header.json#",
"$schema": "http://json-schema.org/draft-06/schema#",
"type": "object",
"required": [
"name",
Expand Down
3 changes: 2 additions & 1 deletion lib/log.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"id": "log.json#",
"$id": "log.json#",
"$schema": "http://json-schema.org/draft-06/schema#",
"type": "object",
"required": [
"version",
Expand Down
3 changes: 2 additions & 1 deletion lib/page.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"id": "page.json#",
"$id": "page.json#",
"$schema": "http://json-schema.org/draft-06/schema#",
"type": "object",
"optional": true,
"required": [
Expand Down
3 changes: 2 additions & 1 deletion lib/pageTimings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"id": "pageTimings.json#",
"$id": "pageTimings.json#",
"$schema": "http://json-schema.org/draft-06/schema#",
"type": "object",
"properties": {
"onContentLoad": {
Expand Down
3 changes: 2 additions & 1 deletion lib/postData.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"id": "postData.json#",
"$id": "postData.json#",
"$schema": "http://json-schema.org/draft-06/schema#",
"type": "object",
"optional": true,
"required": [
Expand Down
3 changes: 2 additions & 1 deletion lib/query.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"id": "query.json#",
"$id": "query.json#",
"$schema": "http://json-schema.org/draft-06/schema#",
"type": "object",
"required": [
"name",
Expand Down
3 changes: 2 additions & 1 deletion lib/request.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"id": "request.json#",
"$id": "request.json#",
"$schema": "http://json-schema.org/draft-06/schema#",
"type": "object",
"required": [
"method",
Expand Down
3 changes: 2 additions & 1 deletion lib/response.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"id": "response.json#",
"$id": "response.json#",
"$schema": "http://json-schema.org/draft-06/schema#",
"type": "object",
"required": [
"status",
Expand Down
3 changes: 2 additions & 1 deletion lib/timings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"id": "timings.json#",
"$id": "timings.json#",
"$schema": "http://json-schema.org/draft-06/schema#",
"required": [
"send",
"wait",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
}
},
"devDependencies": {
"ajv": "^4.9.1",
"ajv": "^5.0.0",
"codeclimate-test-reporter": "^0.4.0",
"cz-conventional-changelog": "^1.2.0",
"echint": "^2.1.0",
Expand Down

0 comments on commit d006b05

Please sign in to comment.