Skip to content
This repository was archived by the owner on Mar 17, 2021. It is now read-only.

Commit 44374dc

Browse files
committed
fix: define the types of the option using oneOf
1 parent f287bfd commit 44374dc

File tree

1 file changed

+16
-12
lines changed

1 file changed

+16
-12
lines changed

src/options.json

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,22 @@
77
},
88
"encoding": {
99
"description": "Specify the encoding which the file will be in-lined with.",
10-
"type": ["boolean", "string"],
11-
"enum": [
12-
"utf8",
13-
"utf16le",
14-
"latin1",
15-
"base64",
16-
"hex",
17-
"ascii",
18-
"binary",
19-
"ucs2",
20-
true,
21-
false
10+
"oneOf": [
11+
{
12+
"enum": [
13+
"utf8",
14+
"utf16le",
15+
"latin1",
16+
"base64",
17+
"hex",
18+
"ascii",
19+
"binary",
20+
"ucs2"
21+
]
22+
},
23+
{
24+
"type": "boolean"
25+
}
2226
]
2327
},
2428
"generator": {

0 commit comments

Comments
 (0)