Skip to main content
Version: Next

SchemaValidEntityPolicy

Home > @backstage/catalog-model > SchemaValidEntityPolicy

Ensures that the entity spec is valid according to a schema.

Signature:

class SchemaValidEntityPolicy implements EntityPolicy 

Implements: EntityPolicy

Remarks

This should be the first policy in the list, to ensure that other downstream policies can work with a structure that is at least valid in therms of the typescript type.

Methods

Method

Modifiers

Description

enforce(entity)