@zqbflynn/content-validator
TypeScript icon, indicating that this package has built-in type declarations

4.0.7 • Public • Published

@dcl/content-validator

Contains all validations to run against entity deployments.

Getting Started

Install dependencies and run tests:

> yarn
> make build
> make 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 @dcl/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

  1. Create entity schema on @dcl/schemas.
  2. Add entity type and schema on catalyst-commons.
  3. Add entity type and access checker in access.ts.
    a. Verify entity pointers can be resolved. If required add a new resolver in @dcl/urn-resolver.

Readme

Keywords

none

Package Sidebar

Install

npm i @zqbflynn/content-validator

Weekly Downloads

0

Version

4.0.7

License

Apache-2.0

Unpacked Size

164 kB

Total Files

110

Last publish

Collaborators

  • zqbflynn