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

fix(): fix #71 and more #88

Closed
wants to merge 5 commits into from
Closed

fix(): fix #71 and more #88

wants to merge 5 commits 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
  7. Fix: When a third-party tag exists, the schema required fields are incorrect.

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
7. Fix: When a third-party tag exists, the schema required fields are incorrect.
1. fix operation level consumes
2. refactor schema properties collection codes.
@akalittle
Copy link

Still under review ?

@jayvynl
Copy link
Author

jayvynl commented Mar 27, 2024

Still under review ?

This repository does not appear to be maintained. So I create a new project that generates openapi3 files. https://github.com/jayvynl/goctl-openapi

@jayvynl jayvynl closed this Mar 27, 2024
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 正常能生成接口
2 participants