0.1.6 • Published 5 years ago

requestnetwork-data-format v0.1.6

Weekly downloads
114
License
MIT
Repository
github
Last release
5 years ago

Request Network Data Format

Introduction

Welcome to the Request Network Data Format documentation! Request Network Data Format 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.

Warning

This is still an alpha version which will evolve significantly before the main net release.

Request Hub Slack

If you need help, join the Request Hub Slack.

Available JSON Schema

NameLast versionLast versionDescription
Invoicernf_invoice0.0.1Format to create an invoice

Javascript entry point

Install with NPM

npm install requestnetwork-data-format --save

Install with Yarn

yarn add requestnetwork-data-format

Using

import RequestNetworkDataFormat from 'requestnetwork-data-format';

let result = RequestNetworkDataFormat.validate(A_JSON_OBJECT);

if (!result.valid) {
    // use the errors from result.errors
}