Validate ProtoDef protocol definition in node
npm install protodef-validator





Validate ProtoDef protocol definition in node
```
npm install protodef-validator
See example
You can install this package globally with npm install -g protodef-validator and then run protodef-validator someProtocol.json to validate it.
Class to make validator instances
#### Validator.addType(name [,schema])
add the type name with schema schema
If schema isn't specified, use a default schema.
#### Validator.addTypes(schemas)
Add schemas which is an object with keys the name of the schemas and values the schema definitions.
#### Validator.validateType(type)
validates a type definition type
throws an exception if the type isn't correct
#### Validator.validateProtocol(protocol)
validates a protocol definition protocol`
throws an exception if the protocol isn't correct
* update protodef
* add .json suffix when requiring (for webpack)
* fix release
* update ajv and protodef
* allow : in switch keys
* properly define compareTo/compareToValue
* fix compareToValue switch property allowance
* properly normalize schema names
* normalize refs
* print errors again
* fix release
* recreate ajv instance to recompile if types were validated hence compiled
* check the datatypes have been defined
* make it possible to add types with a default schema
* better errors
* ignore already added types
* fix index.js
* can validate types and protocols