1. 首页
  2. 数据库
  3. 其它
  4. mongoose to swagger:用于将Mongoose模式对象转换为Swagger模式定义的转换库 源码

mongoose to swagger:用于将Mongoose模式对象转换为Swagger模式定义的转换库 源码

上传者: 2021-02-05 12:43:31上传 ZIP文件 1.1MB 热度 9次
猫鼬到招摇 用于将模式对象转换为模式定义的转换库。 安装 $ npm install --save mongoose-to-swagger 总览 将猫鼬模型转换为一般模式。 用法 const mongoose = require ( 'mongoose' ) ; const m2s = require ( 'mongoose-to-swagger' ) ; const Cat = mongoose . model ( 'Cat' , { name : String } ) ; const swaggerSchema = m2s ( Cat ) ; console . log ( swagger
下载地址
用户评论