stapigen-plugin-openapi
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

🧩
stapigen-plugin-openapi

A stapigen plugin that generates OpenAPI 3 definitions.

License: MIT

· Report Bug / Request Feature ·

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.

Package Sidebar

Install

npm i stapigen-plugin-openapi

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

20.3 kB

Total Files

9

Last publish

Collaborators

  • timobechtel