- 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.
const Mock = require('openapi-mockk')
Mock(args.api).responses({
path,
operation,
response: '200',
content,
}).then(mock => {
console.log(mock[path][operation].responses)
})
- Unlicense (~Public Domain)
- https://github.com/subeeshcbabu/swagmock/ - way more advanced mock, but for swagger 2.0 schema
- https://github.com/BigstickCarpet/swagger-parser - swagger 2.0 parser