| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
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
add the type name with schema schema
If schema isn't specified, use a default schema.
Add schemas which is an object with keys the name of the schemas and values the schema definitions.
validates a type definition type
throws an exception if the type isn't correct
validates a protocol definition protocol
throws an exception if the protocol isn't correct
| Back | FazBrowse Home | New Git URL |