1.0.1 • Published 3 years ago

stapigen-plugin-openapi v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Table of Contents

About

This is a plugin for stapigen that generates OpenAPI 3 definitions.

Install

yarn add stapigen
yarn add stapigen-plugin-openapi

Usage

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 test

Commit 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.