-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathaction.yml
39 lines (39 loc) · 1.47 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: 'Ajv validate JSON(s)'
description: 'Validate JSON(s) by given schema using Ajv schema validator'
author: 'vanekj'
inputs:
schema:
description: 'Relative path to the JSON schema file'
required: true
additional_schema:
description: 'Relative path to additional JSON schema files references by `schema`. This can either be a single file or directory full of schemas (eg. schemas/ or schemas.schema.json)'
required: false
default: ""
additional_schema_extention:
description: 'The file extention of the additional schema used (This is required if you are using additional_schema to look for multiple schemas which are not schema.json) ( default: .schema.json ))'
required: false
default: ".schema.json"
pattern:
description: 'Glob pattern to the JSON(s) to validate (eg. data/**/*.json)'
required: true
use_ajv_formats:
description: 'Whether or not to use the AJV formats - "true" or "false"'
required: false
default: "false"
allow_matching_properties:
description: 'Whether or not to allow properties that also match patternProperties in objects - "true" or "false"'
required: false
default: "false"
show_result_in_summary:
description: 'Whether or not to allow the results to show in summary - "true" or "false"'
required: false
default: "false"
outputs:
result:
description: 'Relative paths to the invalid JSON(s)'
runs:
using: 'node16'
main: '.dist/index.js'
branding:
icon: 'search'
color: 'green'