Skip to content

Commit

Permalink
Restored booleans instead of nulls.
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulDalek committed Apr 11, 2024
1 parent 8d88b4a commit 7e65874
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions lib/schemas/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,24 +149,24 @@ export const defaultConfig = {
},
export: {
infile: {
value: null,
value: false,
type: 'string',
description:
'The input file should include a name and a type (json or svg). It must be correctly formatted as a JSON or SVG file.'
},
instr: {
value: null,
value: false,
type: 'string',
description:
'Input, provided in the form of a stringified JSON or SVG file, will override the --infile option.'
},
options: {
value: null,
value: false,
type: 'string',
description: 'An alias for the --instr option.'
},
outfile: {
value: null,
value: false,
type: 'string',
description:
'The output filename along with a type (jpeg, png, pdf, or svg). This will ignore the --type flag.'
Expand Down Expand Up @@ -206,37 +206,37 @@ export const defaultConfig = {
'The default scale of the exported chart. Used when no value is set.'
},
height: {
value: null,
value: false,
type: 'number',
description:
'The height of the exported chart, overriding the option in the chart settings.'
},
width: {
value: null,
value: false,
type: 'number',
description:
'The width of the exported chart, overriding the option in the chart settings.'
},
scale: {
value: null,
value: false,
type: 'number',
description:
'The scale of the exported chart, overriding the option in the chart settings. Ranges between 0.1 and 5.0.'
},
globalOptions: {
value: null,
value: false,
type: 'string',
description:
'Either a stringified JSON or a filename containing options to be passed into the Highcharts.setOptions.'
},
themeOptions: {
value: null,
value: false,
type: 'string',
description:
'Either a stringified JSON or a filename containing theme options to be passed into the Highcharts.setOptions.'
},
batch: {
value: null,
value: false,
type: 'string',
description:
'Initiates a batch job with a string containing input/output pairs: "in=out;in=out;...".'
Expand Down Expand Up @@ -265,31 +265,31 @@ export const defaultConfig = {
'Controls the ability to inject resources from the filesystem. This setting has no effect when running as a server.'
},
customCode: {
value: null,
value: false,
type: 'string',
description:
'Custom code to execute before chart initialization. It can be a function, code wrapped within a function, or a filename with the .js extension.'
},
callback: {
value: null,
value: false,
type: 'string',
description:
'JavaScript code to run during construction. It can be a function or a filename with the .js extension.'
},
resources: {
value: null,
value: false,
type: 'string',
description:
'Additional resource in the form of a stringified JSON, which may contain files, js, and css sections.'
},
loadConfig: {
value: null,
value: false,
type: 'string',
legacyName: 'fromFile',
description: 'A file containing a pre-defined configuration to use.'
},
createConfig: {
value: null,
value: false,
type: 'string',
description:
'Enables setting options through a prompt and saving them in a provided config file.'
Expand Down Expand Up @@ -327,7 +327,7 @@ export const defaultConfig = {
},
proxy: {
host: {
value: null,
value: false,
type: 'string',
envLink: 'SERVER_PROXY_HOST',
cliName: 'proxyHost',
Expand Down Expand Up @@ -383,14 +383,14 @@ export const defaultConfig = {
description: 'Set this to true if the server is behind a load balancer.'
},
skipKey: {
value: null,
value: false,
type: 'string',
envLink: 'SERVER_RATE_LIMITING_SKIP_KEY',
description:
'Allows bypassing the rate limiter and should be provided with the skipToken argument.'
},
skipToken: {
value: null,
value: false,
type: 'string',
envLink: 'SERVER_RATE_LIMITING_SKIP_TOKEN',
description:
Expand Down Expand Up @@ -422,7 +422,7 @@ export const defaultConfig = {
description: 'The port on which to run the SSL server.'
},
certPath: {
value: null,
value: false,
type: 'string',
envLink: 'SERVER_SSL_CERT_PATH',
legacyName: 'sslPath',
Expand Down

0 comments on commit 7e65874

Please sign in to comment.