Skip to content

Commit

Permalink
fix: minItems and update snapshots (#226)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpoehnelt authored Apr 12, 2021
1 parent 236b1be commit 6423eb4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions docs/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"properties": {
"ignore": {
"type": "array",
"minitems": 1,
"minItems": 1,
"items": {
"type": "string"
}
Expand Down Expand Up @@ -237,4 +237,4 @@
}
}
}
}
}
8 changes: 4 additions & 4 deletions src/config.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ test("should throw for invalid regex pattern", async () => {
[Error: configuration is invalid: [
{
"keyword": "required",
"dataPath": ".rules['foo']",
"dataPath": "/rules/foo",
"schemaPath": "#/properties/rules/additionalProperties/required",
"params": {
"missingProperty": "level"
Expand All @@ -92,7 +92,7 @@ test("should throw for invalid regex pattern", async () => {
},
{
"keyword": "pattern",
"dataPath": ".rules['foo'].regex[0]",
"dataPath": "/rules/foo/regex/0",
"schemaPath": "#/definitions/regex/items/pattern",
"params": {
"pattern": "^/.+/[giu]*$"
Expand Down Expand Up @@ -120,7 +120,7 @@ test("should throw for empty regex array", async () => {
[Error: configuration is invalid: [
{
"keyword": "minItems",
"dataPath": ".rules['foo'].regex",
"dataPath": "/rules/foo/regex",
"schemaPath": "#/definitions/regex/minItems",
"params": {
"limit": 1
Expand Down Expand Up @@ -218,7 +218,7 @@ test("should throw for invalid flags", async () => {
[Error: configuration is invalid: [
{
"keyword": "pattern",
"dataPath": ".rules['foo'].regex[0]",
"dataPath": "/rules/foo/regex/0",
"schemaPath": "#/definitions/regex/items/pattern",
"params": {
"pattern": "^/.+/[giu]*$"
Expand Down
2 changes: 1 addition & 1 deletion src/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export const schema = {
properties: {
ignore: {
type: "array",
minitems: 1,
minItems: 1,
items: { type: "string" },
},
ignoreDefaults: {
Expand Down

0 comments on commit 6423eb4

Please sign in to comment.