@devtin/schema-validator-doc

1.0.5 • Public • Published

@devtin/schema-validator-doc

Version

Converts a `@devtin/schema-validator` instance into JSON

Installation

$ npm i @devtin/schema-validator-doc --save
# or
$ yarn add @devtin/schema-validator-doc


schemaValidatorToJSON(schema, [options]) ⇒ JSONSchema

Param Type Description
schema Schema
[options] Object
[options.$name] String Name of the schema

Returns: JSONSchema - JSON representation of given schema
Description:

Converts given schema in JSON format


schemaValidatorToMarkdown(jsonSchema) ⇒ String

Param Type
jsonSchema Array.<JSONSchema>, JSONSchema

Returns: String - Markdown representation


License

MIT

© 2020-present Martin Rafael Gonzalez tin@devtin.io

/@devtin/schema-validator-doc/

    Package Sidebar

    Install

    npm i @devtin/schema-validator-doc

    Weekly Downloads

    2

    Version

    1.0.5

    License

    MIT

    Unpacked Size

    28.9 kB

    Total Files

    16

    Last publish

    Collaborators

    • tin_r