@condenast/flyway-schema-validator

A joi schema validator for flyways types


Keywords
flyway, migration, schema, joi
License
MIT
Install
npm install @condenast/flyway-schema-validator@10.1.0

Documentation

Flyway schema validator

Does what it says on the tin.

Example Usage

const validator = require('@condenast/flyway-schema-validator');

const isValid = validator(someFlywayAPIObject);

try {
  // invalid
  const invalidThrows = validator({ invalid: true });
} catch (err) {
  // error describes the validation issues.
}

License

MIT.