1.0.12 • Published 3 years ago

@kth/furano-npm v1.0.12

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

furano-npm Continous Integration

An npm package for usage with a json validation service. In KTHs case that's a project called furano.

How to use

  • Add furano-npm to your package.json

  • Call using:

const furano-npm = require('furano-npm')

furano-npm.validate('app/schema', {'my': 'data'})
    .then(result => console.log(`Validation was: ${result.valid} with optional error ${result.error}`))
    .catch(err => console.log(`Caught error: ${err}`));
  When a bad schema path is passed, an error should be returned.

    ✔ An error message was found in the return object.

  When a json is unvalid, mark as unvalid and add an error message.

    ✔ Marked as invalid.
    ✔ An error message was found in the return object.

  When a json is valid, mark as valid and set error message to 'null'

    ✔ Marked as valid
    ✔ No error message is added.
1.0.11

3 years ago

1.0.12

3 years ago

1.0.10

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago

0.1.2

6 years ago

0.1.1

6 years ago