@lionweb/validation
TypeScript icon, indicating that this package has built-in type declarations

0.6.3 • Public • Published

The validation package

license CI npm

The code in this package implements validators that check serialization chunks against the serialization specification. This package is intentionally kept very lightweight, e.g. it uses types instead of classes and has zero dependencies on external libraries/packages.

It's tested by running the validators against the test set in lionweb-integration-testing/testset.

To make the testset available in this propject, run

npm run setup

To build from soure:

npm run build

To run the tests:

npm run test

This will run the tests in the respective folders in the testset/ folder of lionweb-integration-testing.

The commands npm run publish-local and npm run unpublish-local are used to do a release on a local npm registry (in our case verdaccio), for use in other local projects. This ensures that we do not have to do contineous releases when we develop two packages depending on aech other.

The test runner runs tests at various levels similar (but probably not quite) as described in the model correctness document. These two should converge in the future.

Changelog

0.6.3

  • Made validation aware that the value field of a property serialization is allowed to be null.

0.6.2

  • Don't rely on the JavaScript features – import assertions – that are still marked as experimental. (This necessitates explicitly copying the relevant JSON files.)

(For earlier versions no changelog was maintained.)

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i @lionweb/validation

      Weekly Downloads

      395

      Version

      0.6.3

      License

      Apache 2.0

      Unpacked Size

      611 kB

      Total Files

      238

      Last publish

      Collaborators

      • ftomassetti
      • jwarmer
      • dslmeinte