0.0.9 • Published 9 years ago
apidoc-plugin-schema-myob v0.0.9
apidoc-plugin-schema
Generates and inject apidoc elements from api schemas.
@apiSchema {SCHEMA_TYPE=PATH_TO_SCHEMA} ELEMENT_TYPE
Install
npm install apidoc-plugin-schema --save-dev
Supported Schemas
jsonschema
descriptiontypearray:itemsobject:properties,requiredinteger:minimum,maximumnumber:minLength,maxLengthenumdefault- auto groups object of array/object
Example Use
/**
* @api {get} /api GetAPI
* @apiSchema {jsonschema=./schema/api.req.json} apiParam
* @apiSchema {jsonschema=./schema/api.res.json} apiSuccess
*/TODO
- Add in unit test for jsonschema
- Add in travis-ci
- add in xml/wsdl schema type
jsonschema
- add in support for exclusive number ranges
- add support for
"oneOf":[{"required":[...]},...] - add support for
"oneOf":[{"type":"string"},...] - add support for
allOf