Skip to content

Commit be3a184

Browse files
author
Mrunal Patel
authored
Merge pull request #681 from wking/valid-values
config: Move valid-value rules to their own section
2 parents 57a5876 + c763e64 commit be3a184

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

config.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,6 @@ For Windows based systems the user structure has the following fields:
324324

325325
[**`platform.os`**](#platform) is used to specify platform-specific configuration.
326326
Runtime implementations MAY support any valid values for platform-specific fields as part of this configuration.
327-
Implementations MUST error out when invalid values are encountered and MUST generate an error message and error out when encountering valid values it chooses to not support.
328327

329328
* **`linux`** (object, OPTIONAL) [Linux-specific configuration](config-linux.md).
330329
This MAY be set if **`platform.os`** is `linux` and MUST NOT be set otherwise.
@@ -444,6 +443,11 @@ Values MAY be an empty string.
444443
Implementations that are reading/processing this configuration file MUST NOT generate an error if they encounter an unknown property.
445444
Instead they MUST ignore unknown properties.
446445

446+
## Valid values
447+
448+
Implementations that are reading/processing this configuration file MUST generate an error when invalid or unsupported values are encountered.
449+
Unless support for a valid value is explicitly required, runtimes MAY choose which subset of the valid values it will support.
450+
447451
## Configuration Schema Example
448452

449453
Here is a full example `config.json` for reference.

0 commit comments

Comments
 (0)