You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2-4Lines changed: 2 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,19 +4,17 @@
4
4
5
5
# Validate JSON Github Action
6
6
7
-
Easy to use GitHub Action to validates JSON files based on a JSON Schema.
7
+
Easy to use GitHub Action to validate JSON files based on a JSON Schema.
8
8
9
9
This project uses [`ajv`](https://github.com/epoberezkin/ajv), fast JSON schema validator, to perform the validation.
10
10
11
11
## Usage
12
12
13
13
### Inputs
14
14
15
-
-`schema`: Relative file path under the repository of a JSON schema file to validate the other JSON files with. Default is: `'./schema.json'`.
15
+
-`schema`: Relative file path in the repository to a JSON schema file to validate the other JSON files with. If no value is provided `./schema.json` will be used.
16
16
-`jsons`: One or more relative file paths under the repository (separated by commas) of the JSON files to validate with the schema provided. Glob paths can be used as well (wildcard matching).
17
17
18
-
> Note: `schema` is **required**, otherwise default will be used.
19
-
20
18
### Outputs
21
19
22
20
-`invalid`: One or more of relative file paths of the invalid JSON files, found in the repository (separated by commas).
0 commit comments