Releases: goodluckxu-go/goapi
Releases · goodluckxu-go/goapi
v0.1.5
v0.1.4
v0.1.3
v0.1.2
v0.1.1
- 修改中间件下一个中间件截断后,上一个中间件没有返回值的bug
- 将openapi验证时integer的int8,uint8,int16,uint16的最大最小值修改为系统值
- 修复response.HTTPException方法的httpCode设置后恒等于200的bug
- 修改response.HTTPException方法,删除headers参数
- 修改response.HTMLResponse方法中的Html为string类型,使其变为可使用模板参数
- 修改response.TextResponse方法使header可以覆盖Content-Type类型
- 给openapi的Extensions扩展字段增加验证必须以x-开头
v0.1.0
- 修改由于[]byte和[]uint8类型相等引起的展示类型混乱的bug,使[]byte只支持非json,xml的其他媒体的body类型
- openapi兼容int8,uint8,int16,uint16的integer类型(定义区间);兼容int类型判断系统是否为64位使用format为int32或int64
- 修复httpResponse中类型为string无法获取值的bug;
- 添加textResponse结构
- 修复非json,xml格式识别[]byte为数组的bug
- 增加swagger配置项DocExpansion和DeepLinking的修改
- 处理openapi时将allOf改为ref
- 处理openapi的Schema对象的example改为examples
- 优化代码
v0.0.13
v0.0.12
v0.0.11
- 修复HTTPBearer, HTTPBasic的tag不存在抛出异常的bug
- 增加在security的接口中可传入*Context让用户使用
- 在Context中增加FullPath方法获取完整path,如/user/{id}_{name}
- 修复security接口中ApiKey接口传入多个该接口只运行第一个接口的bug
- 将http的路由改为前缀树结构
- 优化bytes.Buffer为strings.Builder
- 修改多语言名称zh->zh_cn, en->en_us
- 增加中文md文档
- 修复中间件设置Request后无法验证通过的bug
- 添加普通get, 返回数据,中间件设置后验证,post数据,post文件五个接口的基准测试
- 优化性能,去掉chan同步方式
- 给Context使用sync.Pool节约内存
- 优化默认日志
- 优化代码