开发者社区> 镜像站> NPM> @condenast/flyway-schema-validator
@condenast/flyway-schema-validator
A joi schema validator for flyways types
Last updated 9 days ago by cnid_engineering .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @condenast/flyway-schema-validator 
SYNC missed versions from official npm registry.

Flyway schema validator

Does what it says on the tin.

See https://condenast.github.io/flyway-api-docs/.

Installation

To use as a node.js module, make sure you're in your project source and run:

npm i --save @condenast/flyway-schema-validator

To use as a command line module, install globally with the following command:

npm i -g @condenast/flyway-schema-validator

Example Javascript 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.
}

Example Command Line Usage

*nix Piping:

cat someObj.json | flyway-schema-validator

Reading from a file directly:

flyway-schema-validator -f ./someObj.json

Publishing Updates

To publish updates, you must bump the version number using npm version major|minor|patch, and push the generated commit and tag to github.

CI will detect a new tag push and automatically build and publish it.

Generally the workflow after merging a PR should be

git checkout origin/master -b publish-clean
npm version patch # <--- this also generates a git commit and tags it based on the new version
git push origin master # push that commit to master
git push origin --tags
git branch -D publish-clean

CI will now pickup and build your changes.

NOTE: we use a new branch that tracks origin master so if you have accidentally commited to master locally, that doesn't get published without any PR. If you're confident that your master matches origin EXACTLY feel free to do this on your local master branch.

License

MIT.

Current Tags

  • 9.17.1                                ...           latest (9 days ago)

107 Versions

  • 9.17.1                                ...           9 days ago
  • 9.17.0                                ...           22 days ago
  • 9.16.0                                ...           2 months ago
  • 9.15.1                                ...           2 months ago
  • 9.15.0                                ...           a year ago
  • 9.14.0                                ...           a year ago
  • 9.13.0                                ...           a year ago
  • 9.12.0                                ...           a year ago
  • 9.11.0                                ...           a year ago
  • 9.10.1                                ...           a year ago
  • 9.10.0                                ...           a year ago
  • 9.9.0                                ...           a year ago
  • 9.8.2                                ...           2 years ago
  • 9.8.1                                ...           2 years ago
  • 9.8.0                                ...           2 years ago
  • 9.7.0                                ...           2 years ago
  • 9.6.1                                ...           2 years ago
  • 9.6.0                                ...           2 years ago
  • 9.5.3                                ...           2 years ago
  • 9.5.2                                ...           2 years ago
  • 9.5.0                                ...           2 years ago
  • 9.4.1                                ...           2 years ago
  • 9.4.0                                ...           2 years ago
  • 9.3.4                                ...           2 years ago
  • 9.3.3                                ...           2 years ago
  • 9.3.2                                ...           2 years ago
  • 9.3.1                                ...           2 years ago
  • 9.3.0                                ...           2 years ago
  • 9.2.0                                ...           2 years ago
  • 9.1.1                                ...           2 years ago
  • 9.0.13                                ...           2 years ago
  • 9.0.12                                ...           2 years ago
  • 9.0.11                                ...           2 years ago
  • 9.0.10                                ...           2 years ago
  • 9.0.8                                ...           2 years ago
  • 9.0.7                                ...           2 years ago
  • 9.0.6                                ...           2 years ago
  • 9.0.5                                ...           2 years ago
  • 9.0.4                                ...           2 years ago
  • 9.0.3                                ...           2 years ago
  • 9.0.2                                ...           2 years ago
  • 9.0.1                                ...           2 years ago
  • 9.0.0                                ...           2 years ago
  • 8.0.10                                ...           2 years ago
  • 8.0.9                                ...           2 years ago
  • 8.0.7                                ...           2 years ago
  • 8.0.6                                ...           2 years ago
  • 8.0.5                                ...           2 years ago
  • 8.0.4                                ...           2 years ago
  • 8.0.3                                ...           2 years ago
  • 8.0.2                                ...           2 years ago
  • 8.0.1                                ...           2 years ago
  • 8.0.0                                ...           2 years ago
  • 7.1.0                                ...           2 years ago
  • 7.0.1                                ...           2 years ago
  • 6.2.1                                ...           2 years ago
  • 6.5.0                                ...           2 years ago
  • 6.5.1                                ...           2 years ago
  • 6.4.0                                ...           2 years ago
  • 6.3.1                                ...           2 years ago
  • 6.3.0                                ...           2 years ago
  • 6.1.0                                ...           2 years ago
  • 6.0.7                                ...           2 years ago
  • 6.0.6                                ...           2 years ago
  • 6.0.5                                ...           2 years ago
  • 6.0.4                                ...           2 years ago
  • 6.0.3                                ...           3 years ago
  • 6.0.2                                ...           3 years ago
  • 6.0.1                                ...           3 years ago
  • 5.2.0                                ...           3 years ago
  • 5.1.0                                ...           3 years ago
  • 5.0.0                                ...           3 years ago
  • 4.1.0                                ...           3 years ago
  • 4.0.2                                ...           3 years ago
  • 4.0.1                                ...           3 years ago
  • 4.0.0                                ...           3 years ago
  • 3.0.3                                ...           3 years ago
  • 3.0.2                                ...           3 years ago
  • 3.0.1                                ...           3 years ago
  • 3.0.0                                ...           3 years ago
  • 0.5.6                                ...           3 years ago
  • 2.0.0                                ...           3 years ago
  • 1.0.0                                ...           3 years ago
  • 0.7.3                                ...           3 years ago
  • 0.7.2                                ...           3 years ago
  • 0.7.1                                ...           3 years ago
  • 0.7.0                                ...           3 years ago
  • 0.6.1                                ...           3 years ago
  • 0.6.0                                ...           3 years ago
  • 0.5.5                                ...           3 years ago
  • 0.5.4                                ...           3 years ago
  • 0.5.3                                ...           3 years ago
  • 0.5.2                                ...           3 years ago
  • 0.5.1                                ...           3 years ago
  • 0.5.0                                ...           3 years ago
  • 0.4.1                                ...           3 years ago
  • 0.4.0                                ...           3 years ago
  • 0.3.0                                ...           3 years ago
  • 0.2.0                                ...           3 years ago
  • 0.1.2                                ...           3 years ago
  • 0.1.1                                ...           3 years ago
  • 0.1.0                                ...           3 years ago
  • 0.0.4                                ...           3 years ago
  • 0.0.3                                ...           3 years ago
  • 0.0.2                                ...           3 years ago
  • 0.0.1                                ...           3 years ago
  • 0.0.0                                ...           3 years ago
Maintainers (223)
Downloads
Today 0
This Week 9
This Month 8
Last Day 0
Last Week 14
Last Month 138
Dependencies (5)
Dev Dependencies (10)
Dependents (0)
None