Skip to content

Commit

Permalink
feat(json-schema-check): Allow for several schema files per package
Browse files Browse the repository at this point in the history
The goal is to allow one schema file per node in a package. And to allow
several configuration files per schema. The schema files have to follow
a NODE_NAME.schema.json naming convention and the configuration files
have to follow a NODE_NAME*.param.yaml naming convention.

Signed-off-by: Ambroise Vincent <[email protected]>
  • Loading branch information
ambroise-arm committed Jan 2, 2024
1 parent 2cd72c8 commit 8cf3e09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion json-schema-check/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ runs:

- name: Check configuration files
run: |
find -wholename '*/schema/*.schema.json' -printf '%p: ' -execdir bash -c 'check-jsonschema --schemafile "$1" ../config/*.param.yaml' bash '{}' +
find -wholename '*/schema/*.schema.json' -printf '%p: ' -execdir bash -c 'check-jsonschema --schemafile "$1" ../config/"${1:2:-12}"*.param.yaml' bash '{}' +
shell: bash

0 comments on commit 8cf3e09

Please sign in to comment.