/zafiro-openapi3

ZafiroJS plugin for exposing OpenAPI v. 3.0 compliant API contracts

Primary LanguageTypeScriptMIT LicenseMIT

zafiro-openapi3

npm version Build Status Dependencies img Known Vulnerabilities Greenkeeper badge

Zafiro plugin providing OpenAPI v 3.x service description.

Installation

npm install zafiro-openapi3 reflect-metadata

⚠️ The reflect-metadata polyfill should be imported only once in your entire application because the Reflect object is mean to be a global singleton. More details about this can be found here.

The basics

First you need to declare an entity:

``