Skip to content

Commit

Permalink
Updated package version and readme file to reflect the new change in …
Browse files Browse the repository at this point in the history
…package name
  • Loading branch information
Jacky Mo committed Sep 21, 2018
1 parent 5b7fa5c commit e2a78ab
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
##### This validation library allows user to validate wheather an object meets the declarative defined schema defintion. If the object satisfies the schema definition, an object is returned that confined to the schema.

## Installation and Usage
Install the library with `npm install --save schema-validator` or `yarn install schema-validator`
Install the library with `npm install --save @jackym/schema-validator` or `yarn add @jackym/schema-validator`

```javascript
import schemaValidator from 'schema-validator';
import schemaValidator from '@jackym/schema-validator';
const obj = {};
const defintion = {
name: { type: 'string' },
Expand Down Expand Up @@ -61,7 +61,7 @@ const definition = {

/*
* (Optional)
* if the field is required, and the value is null or underfined, then you can provide a default value
* if the field is required, and the value is null or underfined, then you can provide a default value
* to suppress the validation error message
*/
default: 'any value'
Expand Down
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "schema-validator",
"version": "1.0.0",
"name": "@jackym/schema-validator",
"version": "1.0.1",
"description": "Validate an object against an user defined schema. If the object satisfies the schema, then a copy of the object that conforms to the schema is returned",
"main": "dist/index-cjs.js",
"module": "dist/index-esm.js",
Expand All @@ -11,6 +11,8 @@
},
"keywords": [
"schema validator",
"object validator",
"object validation",
"validator",
"custom validator"
],
Expand Down

0 comments on commit e2a78ab

Please sign in to comment.