Skip to content

Commit a05f7d0

Browse files
committed
move schema source to support folder
1 parent 748b153 commit a05f7d0

File tree

4 files changed

+24
-8
lines changed

4 files changed

+24
-8
lines changed

schemas/src/op.conf

Lines changed: 0 additions & 7 deletions
This file was deleted.

support/runfile/schema.runfile

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
summary 'Run json-schema checks on all examples'
22

3-
help 'Run all the actions in this runfile'
3+
help 'Generate the bashly.json schema from the bashly.yml template'
4+
action :generate do
5+
cmd = 'yq -p yaml -o json support/schema/bashly.yml > schemas/bashly.json'
6+
say "gb`$` #{cmd}"
7+
success = system cmd
8+
abort 'Failed' unless success
9+
end
10+
11+
help 'Run all the test actions in this runfile'
412
action :all do
513
check_examples
614
check_settings

support/schema/README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
This is the source file for the `schemas/bashly.json` schema.
2+
3+
To regenerate the bashly.json schema, simply run:
4+
5+
```
6+
$ run scheme generate
7+
```
8+
9+
from the root directory of the project.
10+
11+
Alternatively, run the `yq` command directly:
12+
13+
```
14+
$ yq -p yaml -o json support/schema/bashly.yml > schemas/bashly.json
15+
```

0 commit comments

Comments
 (0)