@toa.io/concise

0.24.0-alpha.0 • Public • Published

Concise Object Schema

Concise Object Schema (COS) is a human-friendly object schema description language. See features.

expand(cos, validate): JSONSchema

Expand function accepts COS-object as first argument and returns JSONSchema object.

One of the criteria to expand a node is if a node is valid JSONSchema already. As validation itself is out of the scope of this library, expand requires JSONSchema meta-schema validation function conforming toa.cos.Validate type as second argument. To keep things simple, consider using expand of @toa.io/schemas.

Readme

Keywords

none

Package Sidebar

Install

npm i @toa.io/concise

Homepage

toa.io

Weekly Downloads

695

Version

0.24.0-alpha.0

License

MIT

Unpacked Size

32.8 kB

Total Files

32

Last publish

Collaborators

  • agurtovoi