Skip to content

Releases: goodluckxu-go/goapi

v0.1.5

14 Oct 02:14
Compare
Choose a tag to compare
  1. 将Router的标签获取修改为const常量
  2. 加SetStructTagVariableMapping方法可设置结构体标签summary和desc的映射变量
  3. 修复No operations defined in spec!时运行抛出异常的bug
  4. 将openapi的json序列化无序排列改为按照键升序排列
  5. 将swagger的js,css合并成一个路由
  6. 将pprof的非首页路由合并成一个路由
  7. 取消pprof的docs文档展示
  8. swagger常量替换

v0.1.4

08 Oct 03:43
Compare
Choose a tag to compare

默认日志输出格式修改

v0.1.3

27 Sep 08:37
Compare
Choose a tag to compare

紧急修复非子项目出现的bug

v0.1.2

27 Sep 01:23
Compare
Choose a tag to compare
  1. 实现jwt加密和security中jwt认证
  2. 增加IncludeChildAPI方法,可以创建子项目,每个子项目文档不相同
  3. 优化代码

v0.1.1

18 Sep 02:51
Compare
Choose a tag to compare
  1. 修改中间件下一个中间件截断后,上一个中间件没有返回值的bug
  2. 将openapi验证时integer的int8,uint8,int16,uint16的最大最小值修改为系统值
  3. 修复response.HTTPException方法的httpCode设置后恒等于200的bug
  4. 修改response.HTTPException方法,删除headers参数
  5. 修改response.HTMLResponse方法中的Html为string类型,使其变为可使用模板参数
  6. 修改response.TextResponse方法使header可以覆盖Content-Type类型
  7. 给openapi的Extensions扩展字段增加验证必须以x-开头

v0.1.0

09 Sep 01:12
Compare
Choose a tag to compare
  1. 修改由于[]byte和[]uint8类型相等引起的展示类型混乱的bug,使[]byte只支持非json,xml的其他媒体的body类型
  2. openapi兼容int8,uint8,int16,uint16的integer类型(定义区间);兼容int类型判断系统是否为64位使用format为int32或int64
  3. 修复httpResponse中类型为string无法获取值的bug;
  4. 添加textResponse结构
  5. 修复非json,xml格式识别[]byte为数组的bug
  6. 增加swagger配置项DocExpansion和DeepLinking的修改
  7. 处理openapi时将allOf改为ref
  8. 处理openapi的Schema对象的example改为examples
  9. 优化代码

v0.0.13

02 Sep 07:12
Compare
Choose a tag to compare
  1. 优化基准测试的Post,file提交
  2. 替换原生json为github.com/json-iterator/go库
  3. 修复请求和返回类型单一时,处理openapi展示混乱的bug
  4. 修改go.mod使其符合引用规范
  5. 修改为只有默认日志才需要颜色
  6. 修改接口类型只判断json和xml类型

v0.0.12

26 Aug 02:06
Compare
Choose a tag to compare
  1. 在Context上面增加RemoteIP和ClientIP的方法
  2. 修改基准测试的writer
  3. 优化代码

v0.0.11

19 Aug 02:34
Compare
Choose a tag to compare
  1. 修复HTTPBearer, HTTPBasic的tag不存在抛出异常的bug
  2. 增加在security的接口中可传入*Context让用户使用
  3. 在Context中增加FullPath方法获取完整path,如/user/{id}_{name}
  4. 修复security接口中ApiKey接口传入多个该接口只运行第一个接口的bug
  5. 将http的路由改为前缀树结构
  6. 优化bytes.Buffer为strings.Builder
  7. 修改多语言名称zh->zh_cn, en->en_us
  8. 增加中文md文档
  9. 修复中间件设置Request后无法验证通过的bug
  10. 添加普通get, 返回数据,中间件设置后验证,post数据,post文件五个接口的基准测试
  11. 优化性能,去掉chan同步方式
  12. 给Context使用sync.Pool节约内存
  13. 优化默认日志
  14. 优化代码

v0.0.10

12 Aug 01:11
Compare
Choose a tag to compare
  1. 增加HTML返回
  2. 将其他返回的继承response的接口迁移到response文件夹
  3. 修复泛型为any时的bug
  4. 设置cookie时提示Read the value of document.cookie
  5. 修改xml注释的 attr , innerxml , > 三个个属性
  6. 修改中间件逻辑