Skip to content

Commit

Permalink
fix: disallow extra keys in schema objects
Browse files Browse the repository at this point in the history
  • Loading branch information
omissis committed Aug 16, 2022
1 parent 1080cd5 commit 7a74aea
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions api/config_schema.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"title": "goarkitect config",
"type": "object",
"additionalProperties": false,
"properties": {
"rules": {
"type": "array",
Expand All @@ -21,6 +22,7 @@
"definitions": {
"fileExceptThis": {
"type": "object",
"additionalProperties": false,
"properties": {
"kind": {
"type": "string",
Expand All @@ -37,6 +39,7 @@
},
"fileThatAreInFolder": {
"type": "object",
"additionalProperties": false,
"properties": {
"kind": {
"type": "string",
Expand All @@ -57,6 +60,7 @@
},
"fileThatEndWith": {
"type": "object",
"additionalProperties": false,
"properties": {
"kind": {
"type": "string",
Expand All @@ -73,6 +77,7 @@
},
"fileMatcherAll": {
"type": "object",
"additionalProperties": false,
"properties": {
"kind": {
"type": "string",
Expand All @@ -85,6 +90,7 @@
},
"fileMatcherSet": {
"type": "object",
"additionalProperties": false,
"properties": {
"kind": {
"type": "string",
Expand All @@ -106,6 +112,7 @@
},
"fileMatcherOne": {
"type": "object",
"additionalProperties": false,
"properties": {
"kind": {
"type": "string",
Expand All @@ -122,6 +129,7 @@
},
"fileRule": {
"type": "object",
"additionalProperties": false,
"properties": {
"name": {
"type": "string"
Expand Down Expand Up @@ -223,6 +231,7 @@
},
"fileShouldBeGitencrypted": {
"type": "object",
"additionalProperties": false,
"properties": {
"kind": {
"type": "string",
Expand All @@ -238,6 +247,7 @@
},
"fileShouldBeGitignored": {
"type": "object",
"additionalProperties": false,
"properties": {
"kind": {
"type": "string",
Expand All @@ -253,6 +263,7 @@
},
"fileShouldContainValue": {
"type": "object",
"additionalProperties": false,
"properties": {
"kind": {
"type": "string",
Expand All @@ -272,6 +283,7 @@
},
"fileShouldEndWith": {
"type": "object",
"additionalProperties": false,
"properties": {
"kind": {
"type": "string",
Expand All @@ -291,6 +303,7 @@
},
"fileShouldExist": {
"type": "object",
"additionalProperties": false,
"properties": {
"kind": {
"type": "string",
Expand All @@ -306,6 +319,7 @@
},
"fileShouldHaveContentMatchingRegex": {
"type": "object",
"additionalProperties": false,
"properties": {
"kind": {
"type": "string",
Expand All @@ -325,6 +339,7 @@
},
"fileShouldHaveContentMatching": {
"type": "object",
"additionalProperties": false,
"properties": {
"kind": {
"type": "string",
Expand All @@ -344,6 +359,7 @@
},
"fileShouldHavePermissions": {
"type": "object",
"additionalProperties": false,
"properties": {
"kind": {
"type": "string",
Expand All @@ -363,6 +379,7 @@
},
"fileShouldMatchGlob": {
"type": "object",
"additionalProperties": false,
"properties": {
"kind": {
"type": "string",
Expand All @@ -382,6 +399,7 @@
},
"fileShouldMatchRegex": {
"type": "object",
"additionalProperties": false,
"properties": {
"kind": {
"type": "string",
Expand All @@ -401,6 +419,7 @@
},
"fileShouldStartWith": {
"type": "object",
"additionalProperties": false,
"properties": {
"kind": {
"type": "string",
Expand All @@ -420,6 +439,7 @@
},
"fileShouldOptionNegated": {
"type": "object",
"additionalProperties": false,
"properties": {
"kind": {
"type": "string",
Expand All @@ -432,6 +452,7 @@
},
"fileShouldOptionIgnoreCase": {
"type": "object",
"additionalProperties": false,
"properties": {
"kind": {
"type": "string",
Expand All @@ -444,6 +465,7 @@
},
"fileShouldOptionIgnoreNewLinesAtTheEndOfFile": {
"type": "object",
"additionalProperties": false,
"properties": {
"kind": {
"type": "string",
Expand All @@ -456,6 +478,7 @@
},
"fileShouldOptionMatchSingleLines": {
"type": "object",
"additionalProperties": false,
"properties": {
"kind": {
"type": "string",
Expand Down

0 comments on commit 7a74aea

Please # to comment.