@beland/content-validator
v1.0.1
Published
Catalyst content validations
Downloads
1
Readme
@dcl/content-validator
Contains all validations to run against entity deployments.
Getting Started
Install dependencies and run tests:
> yarn
> yarn build
> yarn test
Debugging tests
In case you are using VS Code, you can install recommended extensions and debug them using Jest extension which adds UI support.
Adding new entities
Before adding any validation to new entities, ensure you have defined a schema on @beland/schemas and added the relation on catalyst-commons.
To make Catalysts accept deployments of new entity types, they must have defined how access is checked and that means to add them in access.ts.
In steps
- Create entity schema on @beland/schemas.
- Add entity type and schema on catalyst-commons.
- Add entity type and access checker in access.ts. a. Verify entity pointers can be resolved. If required add a new resolver in @beland/urn-resolver.