Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] fastjson2 输出 openapi3 api数据出错 #1318

Closed
zeroxiao opened this issue Apr 4, 2023 · 3 comments
Closed

[BUG] fastjson2 输出 openapi3 api数据出错 #1318

zeroxiao opened this issue Apr 4, 2023 · 3 comments
Labels
bug Something isn't working fixed
Milestone

Comments

@zeroxiao
Copy link

zeroxiao commented Apr 4, 2023

问题描述

简要描述您碰到的问题。

环境信息

请填写以下信息:

  • OS信息: [e.g.:MAC M1 /win10 I7 7700 16 GB]
  • JDK信息: [e.g.:jdk 1.8.0_322]
  • 版本信息:[e.g.:Fastjson2 2.0.26]

重现步骤

如何操作可以重现该问题:

com.github.xiaoymin
knife4j-openapi3-spring-boot-starter
4.1.0

openapi3 API文档数据不能输出,ERR:Could not write JSON: JSON#writeTo cannot serialize '[B@578ec0f7' to 'OutputStream'

image

转为String 可以看到是API文档JSON数据

image

出错的地方

image

@zeroxiao zeroxiao added the bug Something isn't working label Apr 4, 2023
@zeroxiao zeroxiao changed the title [BUG] fastjson2 [BUG] fastjson2 输出 openapi3 api数据出错 Apr 4, 2023
@wenshao
Copy link
Member

wenshao commented Apr 4, 2023

https://oss.sonatype.org/content/repositories/snapshots/com/alibaba/fastjson2/fastjson2/2.0.27-SNAPSHOT/
问题已修复,请帮忙用2.0.27-SNAPSHOT版本验证

@wenshao wenshao added the fixed label Apr 4, 2023
@wenshao wenshao added this to the 2.0.27 milestone Apr 4, 2023
@wenshao
Copy link
Member

wenshao commented Apr 8, 2023

https://github.com/alibaba/fastjson2/releases/tag/2.0.27
问题已修复,请用新版本

@wenshao wenshao closed this as completed Apr 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fixed
Projects
None yet
Development

No branches or pull requests

3 participants