Skip to content

Commit 4809137

Browse files
authored
Add options for custom validation schema location (#63)
* Add options for custom validation schema location * bump roadie-backstage-entity-validator version
1 parent b7123bc commit 4809137

File tree

7 files changed

+15710
-9951
lines changed

7 files changed

+15710
-9951
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ This package can be used as a GitHub action or a standalone node.js module
1414

1515
**Optional** Specify whether the output should be verbose. Default `true`.
1616

17+
### `validationSchemaFileLocation`
18+
**Optional** Specify the location of the validation schema file.
19+
1720
### Outputs
1821

1922
None. Prints out the validated YAML on success. Prints out errors on invalid YAML
@@ -37,6 +40,13 @@ None. Prints out the validated YAML on success. Prints out errors on invalid YAM
3740
path: 'catalog-info-*.yaml,services/**/*/catalog-info.yaml'
3841
```
3942

43+
```
44+
- uses: RoadieHQ/[email protected]
45+
with:
46+
path: 'catalog-info-*.yaml,services/**/*/catalog-info.yaml'
47+
validationSchemaFileLocation: 'custom-validation-schema.json'
48+
```
49+
4050
## CircleCI Orb
4151

4252
### Inputs
@@ -79,6 +89,7 @@ OPTION:
7989
-h display help
8090
-q minimal output while validating entities
8191
-i validate files provided over standard input
92+
-l location of custom validation schema file
8293
```
8394

8495
Examples:

action.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ inputs:
1313
description: 'Specify whether the output should be verbose'
1414
required: false
1515
default: "true"
16+
validationSchemaFileLocation:
17+
description: 'Specify the location of the validation schema file'
18+
required: false
1619
runs:
1720
using: 'node16'
1821
main: 'dist/index.js'

0 commit comments

Comments
 (0)