RAML Data Type System
This module contains a lightweight implementation of the type system that was introduced with RAML 1.0.
It allows you to to parse, validate , modify RAML types, as well as store them back to JSON.
Installation
npm install raml-typesystem --save
Usage
Parsing and validating a single type:
var personType = ts var isValid = personType;
Parsing and validating a types
collection:
var typeCollection = tsvar isValid = typeCollection
Validating object against type:
var typeCollection = tsvar isValid = typeCollection
Contribute
The raml-typesystem repo is an open source project and any contribution is always welcome. Please follow these simple steps when contributing to this project:
- Check for open issues or open a fresh issue to start a discussion around an idea or a bug.
- Fork the repository on Github and make your changes on the develop branch (or branch off of it).
- Send a pull request (with the develop branch as the target).
- One of the main contributor or admin will review the PR and merge.
A big thank you goes out to everyone who helped with the project, the contributors and everyone who took the time to report issues and give feedback.
You can also directly get in touch with us. Simply send us an email to: info@raml.org