@microfleet/apidoc-plugin-json-schema
TypeScript icon, indicating that this package has built-in type declarations

0.1.3 • Public • Published

Microfleet JSON Schema apidoc plugin

The apidoc plugin that provides @jsonSchema keyword.

Install

yarn add @microfleet/apidoc-plugin-json-schema

Additional apidoc configuration

// apidoc.config.js
const { resolve } = require('path')

module.exports = {
  schemas: {
    path: resolve(__dirname, './schemas') // path to the schemas folder
  }
}

Usage

@apiSchema {jsonschema={relative path to schemas folder}} api{Request|Response}

Example:

/**
 * @apiSchema {jsonschema=path/to/schema.json} apiRequest
 * @apiSchema {jsonschema=path/to/response/schema.json} apiResponse
 */
export function DoWork() {}

Readme

Keywords

none

Package Sidebar

Install

npm i @microfleet/apidoc-plugin-json-schema

Weekly Downloads

1

Version

0.1.3

License

MIT

Unpacked Size

22.2 kB

Total Files

24

Last publish

Collaborators

  • torinasakura
  • avvs