This package has been deprecated

Author message:

No longer supported

openapi-mockk

0.1.0 • Public • Published

Build Status js-standard-style

openapi-mock

  • alpha version of a library providing mock data for Open API 3.0 specifications. Created due to swagger-parser dragging behind, and entire node-swagger ecosystem put on-hold, with no forseeable replacement. This is way simpler implementation, but enables specific use-case.

Example

const Mock = require('openapi-mockk')

Mock(args.api).responses({
  path,
  operation,
  response: '200',
  content,
}).then(mock => {
  console.log(mock[path][operation].responses)
})

License

  • Unlicense (~Public Domain)

Related Work

Package Sidebar

Install

npm i openapi-mockk

Weekly Downloads

2

Version

0.1.0

License

Unlicense

Unpacked Size

48.9 kB

Total Files

6

Last publish

Collaborators

  • unjello