Skip to content

Commit

Permalink
Merge pull request #1227 from brianphillips/yaml-schema-pt-2
Browse files Browse the repository at this point in the history
Use the CORE_SCHEMA when parsing entity YAML
  • Loading branch information
Xantier authored Jan 17, 2024
2 parents a4e058b + d60dc61 commit aee4af6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/thin-singers-brake.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@roadiehq/roadie-backstage-entity-validator': patch
---

use CORE_SCHEMA when parsing catalog YAML files for validation
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export const relativeSpaceValidation = async (
verbose,
) => {
try {
const data = yaml.loadAll(fileContents);
const data = yaml.loadAll(fileContents, { schema: yaml.CORE_SCHEMA });
if (verbose) {
console.log('Validating locally dependant catalog contents');
}
Expand Down

0 comments on commit aee4af6

Please sign in to comment.