Skip to content

wingedfox/openapi-mockk

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

npm version Build Status downloads js-standard-style

openapi-mockk

  • 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

About

Generates data based on OpenAPI 3.0 specification

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%