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

feat(net/goai): enhance openapi doc with responses and examples #3859

Merged
merged 32 commits into from
Oct 21, 2024

Conversation

UncleChair
Copy link
Contributor

@UncleChair UncleChair commented Oct 16, 2024

Fixes #3747

  • Added tags for response status and exampls
  • Added interface EnhancedResponse for other error response generation
  • Added coresponding test case
    • github.com/gogf/gf/v2/net/goai coverage: 80.0% of statements

net/goai/goai_example.go Outdated Show resolved Hide resolved
net/goai/goai_example.go Outdated Show resolved Hide resolved
net/goai/goai_response_ref.go Outdated Show resolved Hide resolved
@UncleChair UncleChair requested a review from oldme-git October 17, 2024 15:04
net/goai/goai_response.go Show resolved Hide resolved
net/goai/goai_response_ref.go Outdated Show resolved Hide resolved
net/goai/goai_response_ref.go Outdated Show resolved Hide resolved
net/goai/goai_response.go Outdated Show resolved Hide resolved
net/goai/goai_response_ref.go Outdated Show resolved Hide resolved
@gqcn gqcn merged commit 555bb3f into gogf:master Oct 21, 2024
20 checks passed
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.

net/goai: I want to customize the response 500 content
5 participants