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

map类型支持 #36

Closed
HugoWw opened this issue Dec 1, 2023 · 5 comments
Closed

map类型支持 #36

HugoWw opened this issue Dec 1, 2023 · 5 comments

Comments

@HugoWw
Copy link
Contributor

HugoWw commented Dec 1, 2023

不能支持map类型的解析么

@zc2638
Copy link
Owner

zc2638 commented Dec 1, 2023

@HugoWw
是的,不支持。
因为map的key未知,swagger2 的定义中没有语法可以描述它。

@HugoWw
Copy link
Contributor Author

HugoWw commented Dec 1, 2023

那能否规定map的key为string类型来处理呢?最后这个map和struct在swagger中还是一个object

@HugoWw
Copy link
Contributor Author

HugoWw commented Dec 1, 2023

我本地改了一版本不知道是否能满足要求,本地解析常见的map类型是可以的

@HugoWw
Copy link
Contributor Author

HugoWw commented Dec 1, 2023

HugoWw pushed a commit to HugoWw/swag that referenced this issue Dec 1, 2023
@zc2638
Copy link
Owner

zc2638 commented Dec 4, 2023

这个库在没有特别声明的情况下,会长期维护

@zc2638 zc2638 closed this as completed Dec 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants