Update YAML schema validation documentation

Fix typos
pull/656/head
Buddhika Chathuranga 2020-08-23 22:16:14 +05:30
parent 9615cf2586
commit 81bce5e41b
1 changed files with 10 additions and 3 deletions

View File

@ -7,7 +7,7 @@ Actual samples are also being published as part of releases on GitHub and NuGet.
## File structure
YAML Configuration file shuold be in following format
YAML Configuration file should be in following format
Example:
@ -28,6 +28,13 @@ log:
mode: roll
```
## YAML configuration schema validation
Users can validate YAML configurations file against JSON schema.
First you should convert YAML file into JSON and then you can
validate the JSON file against JSON schema.
[Find the JSON schema in this link.](yamlConfigurationSchema.json)
## Environment variable expansion
Configuration YAML files can include environment variable expansions of the form `%Name%`.
@ -110,7 +117,7 @@ See the [Logging and error reporting](loggingAndErrorReporting.md) page for more
arguments: arg1 arg2 arg3
```
Also user can specify the arguemtns in more structured way with YAML multline strings.
Also user can specify the arguments in more structured way with YAML multiline strings.
```yaml
arguments: >
@ -239,7 +246,7 @@ onFailure:
This optional element controls the timing in which Windows SCM resets the failure count.
For example, if you specify `resetfailure: 1 hour` and your service continues to run longer than one hour, then the failure count is reset to zero.
This affects the behaviour of the failure actions (see `onfailure` above).
This affects the behavior of the failure actions (see `onfailure` above).
In other words, this is the duration in which you consider the service has been running successfully.
Defaults to 1 day.