oson.annotation.js.test v1.0.2
oson.annotation compiler
==========
Abstract
This is a javascript version of compiler for the language oson.annotation. The oson.annotation data will be translated to JSON Schema
oson.annotation is small language which is used in language oson.
oson is a micro-language to describe the schema of JSON. It allows you to write down the JSON and the schema of JSON inside only one file(with annotation). oson is a subset of JSON-Schema, so it can be compiled to JSON-schema, it is inspired by "orderly" and annotation.
oson.annotation can be compiled to a JSON, which is also a part of JSON Schema with path: JSON Pointer (#/properties/somekey).
For more details, see oson.annotation/doc.md
how to use?
This public package expose the function parse
via npm:
npm i oson.annotation.js.test
let parse = require('oson.annotation.js.test');
console.log(parse("@String"));