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

Commit

Permalink
fix: define the types of the option using anyOf
Browse files Browse the repository at this point in the history
  • Loading branch information
EslamHiko committed Apr 7, 2020
1 parent f287bfd commit cd198d4
Showing 1 changed file with 16 additions and 12 deletions.
28 changes: 16 additions & 12 deletions src/options.json
Expand Up @@ -7,18 +7,22 @@
},
"encoding": {
"description": "Specify the encoding which the file will be in-lined with.",
"type": ["boolean", "string"],
"enum": [
"utf8",
"utf16le",
"latin1",
"base64",
"hex",
"ascii",
"binary",
"ucs2",
true,
false
"oneOf": [
{
"enum": [
"utf8",
"utf16le",
"latin1",
"base64",
"hex",
"ascii",
"binary",
"ucs2"
]
},
{
"type": "boolean"
}
]
},
"generator": {
Expand Down

0 comments on commit cd198d4

Please sign in to comment.