@requestnetwork/data-format
@requestnetwork/data-format
is a typescript library part of the Request Network protocol.
It is a JSON Schema library providing standard for the data of the Request Network protocol. It also provide a javascript entry point to validate a given JSON.
Installation
npm install @requestnetwork/data-format
Usage
import dataFormat from '@requestnetwork/data-format';
let result = data - format.validate(A_JSON_OBJECT);
if (!result.valid) {
}
Available JSON Schema
Name | Last version | Last version | Description |
---|
Invoice | rnf_invoice | 0.0.2 | Format to create an invoice |