api-helper

A tool to help developers in generating code for interfaces, classes, objects, form templates, and more.

MIT License

Downloads
1.7K
Stars
54
Committers
1

Bot releases are visible (Hide)

api-helper - Latest Release

Published by ztz2 4 months ago

🐞 问题修复

  • 修复兼容非标准字段语法的类型丢失问题
api-helper -

Published by ztz2 4 months ago

🆕 新增功能

  • 增加swagger文档解析:当请求参数在body中,每个单独字段定义都是用in body,而不在body对象实例中时,这是一个非标准的写法,实际上HTTP请求只能有一个body,内置解析器将会对这些零散的单独字段进行收集,整理合并成一个完整的body对象实例。
api-helper -

Published by ztz2 5 months ago

🐞 问题修复

  • 修复dot参数属性重复获取问题
api-helper -

Published by ztz2 6 months ago

🆕 新增功能

  • 国际化
api-helper -

Published by ztz2 6 months ago

🆕 新增功能

  • 增加CLI操作生成API
  • 增加API文件分组功能
api-helper -

Published by ztz2 7 months ago

🆕 新增功能

  • web模块中增加请求参数比对功能.
  • 增加 "long long"以及"bigdecimal"类型解析.

🐞 问题修复

  • 修复integer类型无法解析问题.
  • 修复null类型解析成unknown问题.
api-helper -

Published by ztz2 8 months ago

🐞 问题修复

  • 修复:uniapp中调用window, navigator等对象错误问题。
api-helper - v2.4.3

Published by ztz2 8 months ago

🆕 Feature

  • 增加mock数据生成功能
  • 增加pnpm包管理器环境检测
api-helper - v2.4.2

Published by ztz2 8 months ago

🐞 问题修复

  • 修复:检测到“不支持FormData”时候,警告提示不准确问题。

💎 功能优化

  • 路径参数获取优先级提升到最高。
api-helper - v2.4.1

Published by ztz2 8 months ago

💎 功能优化

  • 优化类型生成策略
  • processRequestFunctionConfig 增加 sourcePath 属性
api-helper - v2.4.0

Published by ztz2 9 months ago

🐞 问题修复

  • 修复:swagger2.0 文件类型识别失败问题。
  • 修复:swagger3.0 中 array 多个类型丢失问题。
  • 修复:request extra data 参数丢失问题。
  • 其他已知问题修复。

💎 功能优化

  • swagger3.1.0的兼容策略:多个类型,只取第一个。
api-helper - v2.3.19

Published by ztz2 9 months ago

🐞 问题修复

  • 修复:dot参数为数组结尾时候,识别失败问题。
  • 修复:临时文件在某些情况下,CLI已经执行完毕,没有自动清除临时文件问题。
api-helper - v2.3.18

Published by ztz2 9 months ago

🐞 问题修复

  • Swagger文档解析,对象属性为空,导致代码生成失败问题(解析将忽略该对象)。
  • Swagger文档解析,对象属性为不规范值,如(2021-20-31),导致生成代码失败问题。
api-helper - v2.3.17

Published by ztz2 11 months ago

🐞 问题修复

  • 文件上传,对File参数识别错误问题

💎 功能优化

  • 优化生成的request.ts模版文件,增加了处理文件类型的请求
api-helper - v2.3.16

Published by ztz2 12 months ago

🐞 问题修复

  • 修复web包中依赖的类型申明文件引用错误问题
api-helper - v2.3.2

Published by ztz2 12 months ago

🐞 问题修复

  • 修复macOS系统换行符问题。#2
api-helper - v2.3.1

Published by ztz2 12 months ago

🐞 问题修复

  • 修复读取本地swagger文档(JSON文件)失败问题
api-helper - v2.3.0

Published by ztz2 12 months ago

🆕 新增功能

  • 当生成Javascript代码文件也可以生成与之对于的.d.ts类型定义文件

⚠️ 功能调整

  • 生成的Interface代码,移除使用"I"前缀
api-helper - v2.2.5

Published by ztz2 12 months ago

🐞 问题修复

  • 修复解析swagger后url丢失问题
api-helper - v2.2.4

Published by ztz2 12 months ago

🐞 问题修复

  • 修复使用dot方式的属性参数异常问题
Package Rankings
Top 9.34% on Npmjs.org
Badges
Extracted from project README
license
Related Projects