| github_token | The GitHub token used to create an authenticated client - Provided for you by default! | no | ${{ github.token }} |
| mode | The mode to run the action in "warn" or "fail" - Default is "fail" | no | fail |
| comment | Whether or not to comment on a PR with the validation results - "true" or "false" - Default is "false" | no | false |
| comment_on_success | Whether or not to comment on a PR when all validation checks pass - "true" or "false" - Default is "false" | no | false |
| update_comment | Whether or not to update an existing validation results PR comment authored by github-actions[bot] instead of creating a new one - "true" or "false" - Default is "false" | no | false |
| base_dir | The base directory to search for JSON and YAML files (e.g. ./src) - Default is "." which searches the entire repository. The directory must resolve inside the workspace. | no | . |
| files | List of file paths to validate. File paths may be newline-delimited or provided as a single space-separated line. Matched files must resolve to regular files inside the workspace. | no | "" |
| schema_mappings | YAML list that maps JSON or YAML schema files to explicit file patterns for multi-schema validation. | no | "" |
| use_inline_schema | Whether or not to use local inline JSON Schema references in JSON files and YAML language-server schema comments when YAML is validated as JSON - "true" or "false" - Default is "false" | no | false |
| use_dot_match | Whether or not to use dot-matching when searching for files - "true" or "false" - Default is "true" - If this is true, directories like .github, etc will be searched | no | true |
| json_schema | The full path to the JSON schema file (e.g. ./schemas/schema.json) - Default is "" which doesn't enforce a strict schema | no | "" |
| json_schema_version | The version of the JSON schema to use - "draft-07", "draft-04", "draft-2019-09", "draft-2020-12" | no | draft-07 |
| json_extension | The file extension for JSON files (e.g. .json) - Default is ".json" | no | .json |
| json_exclude_regex | A regex to exclude JSON files from validation (e.g. .*\.schema\.json$) - Default is "" which doesn't exclude any files | no | "" |
| use_ajv_formats | Whether or not to use the AJV formats - "true" or "false" | no | true |
| yaml_schema | The full path to the YAML schema file (e.g. ./schemas/schema.yml) - Default is "" which doesn't enforce a strict schema | no | "" |
| yaml_extension | The file extension for YAML files (e.g. .yaml) - Default is ".yaml" | no | .yaml |
| yaml_extension_short | The "short" file extension for YAML files (e.g. .yml) - Default is ".yml" | no | .yml |
| yaml_exclude_regex | A regex to exclude YAML files from validation (e.g. .*\.schema\.yaml$) - Default is "" which doesn't exclude any files | no | "" |
| yaml_as_json | Whether or not to treat and validate YAML files as JSON files - "true" or "false" - Default is "false". If this is true, the JSON schema will be used to validate YAML files. Any YAML schemas will be ignored. For this context, a YAML file is any file which matches the yaml_extension or yaml_extension_short inputs. | no | false |
| exclude_file | The full path to a file in the repository where this Action is running that contains a list of '.gitignore'-style patterns to exclude files from validation (e.g. ./exclude.txt) | no | "" |
| exclude_file_required | Whether or not the exclude_file must exist if it is used. If this is true and the exclude_file does not exist, the Action will fail - "true" or "false" - Default is "true" | no | true |
| use_gitignore | Whether or not to use the .gitignore file in the root of the repository to exclude files from validation - "true" or "false" - Default is "true" | yes | true |
| git_ignore_path | The full path to the .gitignore file to use if use_gitignore is set to "true" (e.g. ./src/.gitignore) - Default is ".gitignore" which uses the .gitignore file in the root of the repository | no | .gitignore |
| allow_multiple_documents | Whether or not to allow multiple documents in a single YAML file - "true" or "false" - Default is "true" | no | true |
| ajv_strict_mode | Whether or not to use strict mode for AJV - "true" or "false" - Default is "true" | no | true |
| ajv_custom_regexp_formats | List of key value pairs of format_name=regexp. Each pair must be on a newline. (e.g. lowercase_chars=^[a-z]*$ ) | no | "" |