Check Component type is valid

Published on October 6th, 2022

In Backstage, the spec.type is important to the build up your system model in the Catalog. However, spec.type can accept arbitrary strings. You can use Tech Insights to ensure all your components are following your desired schema.

Create a check with the following attributes:

FieldInput
NameBackstage Component type must be valid.
DescriptionOnly a small number of Component types are valid. service, website, library
Data sourceEntity Metadata (this is built-in).
FactType
Fact operatorIs One Of
Valuelibrary,website,service,documentation

Make sure to adapt the Value field according to the types you want to support.