0.14.0 • Published 1 year ago

@huma-shan/data-format v0.14.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@huma-shan/data-format

@huma-shan/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 @huma-shan/data-format

Usage

import dataFormat from '@huma-shan/data-format';

let result = data - format.validate(A_JSON_OBJECT);

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

Available JSON Schema

NameLast versionLast versionDescription
Invoicernf_invoice0.0.3Format to create an invoice

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change. Read the contributing guide

License

MIT