1.0.1 • Published 4 years ago
stapigen-plugin-openapi v1.0.1
Table of Contents
About
This is a plugin for stapigen that generates OpenAPI 3 definitions.
Install
yarn add stapigen
yarn add stapigen-plugin-openapiUsage
Add it to the list of plugins in your stapigen.conf.js:
const { default: pluginOpenAPI } = require('stapigen-plugin-openapi');
module.exports = {
// ... other configuration options ...
plugins: [
pluginOpenAPI({
dir: './',
fileName: 'spec.json',
spec: {
info: {
title: 'Test',
version: '1.0.0',
},
openapi: '3.0.0',
},
}),
],
};Development / Contributing
Run tests
yarn run testCommit messages
This project uses semantic-release for automated release versions. So commits in this project follow the Conventional Commits guidelines. I recommend using commitizen for automated commit messages.