Comments (6)
One alternative, which is what I've opted to do, is just use grep to find catalogue yaml files and pipe them into the entity validator.
grep -rnwl -e 'apiVersion: backstage.io' --include '*.yaml' | xargs -rt validate-entity -q
From there, we just have a shared CI task internally that you can add and it'll automatically lint catalogue entries as part of your CI pipeline
from backstage-entity-validator.
That's a good way to accomplish this. I will close this since there's no need to build this functionality into the validator itself.
from backstage-entity-validator.
https://app.shortcut.com/larder/story/5484
from backstage-entity-validator.
@kissmikijr could you close this issue if the work is complete please? GitHub and Shortcut are not kept in sync unfortunately.
from backstage-entity-validator.
@dtuite I'd close this issue since we decided that this feature gets the most value if we put it into the github app. So the opensource validator package did not get updated by this feature. However it wouldn't be that hard to add it here also to walk the directory structure and do the validations if we want. Wdyt?
from backstage-entity-validator.
Let's see how it goes on Roadie first. We can add the functionality here too if it works out well.
You can leave this issue open for now.
from backstage-entity-validator.
Related Issues (20)
- Possible unnecessary entry in schema HOT 6
- Follow links in Location files HOT 2
- The schema should be extendable HOT 2
- Referential integrity should be checked HOT 2
- Locations fail without `spec` attribute which is inconsistent with docs HOT 3
- No such file or directory error during CI build HOT 6
- [Question] Entity validator source HOT 3
- Support `$yaml` and `$json` fields in API Kind definitions HOT 5
- Circle CI Orb build not executing integration tests HOT 2
- Orb usage examples are wrong - recommend adding a job to the orb to make them right HOT 2
- Update action to use Node 16 HOT 3
- Validation fails when using `backstage.io/techdocs-ref: dir:.` annotation HOT 4
- Handle nunjucks syntax for template files HOT 1
- Is this maintained? HOT 5
- Support Gitlab Pipelines HOT 3
- techdocs default mkdoc.yaml
- Allow to pass custom spec -> definition for API entity HOT 1
- DependsOn resource syntax error not detected
- Update action to use Node 20
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from backstage-entity-validator.