Skip to content

fix(): fix #71 and more #87

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

Closed
wants to merge 1 commit into from
Closed

fix(): fix #71 and more #87

wants to merge 1 commit into from

Conversation

jayvynl
Copy link

@jayvynl jayvynl commented Nov 23, 2023

  1. Fix: When a third-party tag exists, the generated parameter name is incorrect.
  2. Fix: When the structure in api file is nested more than 2 levels, the parameters cannot be generated correctly.
  3. Fix: When both form and json tag exist, the request body contains redundant fields.
  4. Feature: support obtaining parameter constraints from validate tag
  5. Upgrade goctl and go-zero to v1.6.0, fix swagger插件使用嵌套api失败,但是goctl api 正常能生成接口 #71
  6. When the request method is POST/PUT/PATCH, if the request field does not contain json tag and contains form tag, add "multipart/form-data", "application/x-www-form-urlencoded" to the content-type of the request

1. Fix: When a third-party tag exists, the generated parameter name is incorrect.
2. Fix: When the structure in api file is nested more than 2 levels, the parameters cannot be generated correctly.
3. Fix: When both form and json tag exist, the request body contains redundant fields.
4. Feature: support obtaining parameter constraints from [validate](https://github.com/go-playground/validator) tag
5. Upgrade goctl and go-zero to v1.6.0, fix #71
6. When the request method is POST/PUT/PATCH, if the request field does not contain json tag and contains form tag, add "multipart/form-data", "application/x-www-form-urlencoded" to the content-type of the request
@jayvynl jayvynl closed this Nov 23, 2023
@jayvynl jayvynl reopened this Nov 23, 2023
@jayvynl jayvynl closed this Nov 23, 2023
@jayvynl jayvynl deleted the fix-71-and-more branch November 23, 2023 13:07
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

Successfully merging this pull request may close these issues.

swagger插件使用嵌套api失败,但是goctl api 正常能生成接口
1 participant