Skip to content

Conversation

kesonan
Copy link
Collaborator

@kesonan kesonan commented May 5, 2025

  1. fix About goctl not working after upgrade #4818
  2. remove example for swagger parameters

kesonan added 3 commits May 4, 2025 22:56
Copy link

codecov bot commented May 5, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.82%. Comparing base (8690859) to head (1c47649).
Report is 321 commits behind head on master.

Additional details and impacted files

see 18 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@kesonan kesonan requested a review from Copilot May 5, 2025 14:14
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes issue #4818 and removes examples for swagger parameters by updating the version build and adjusting related API generation logic. Key changes include:

  • Bumping the BuildVersion from "1.8.3" to "1.8.4-beta".
  • Removing the “Example” fields from swagger parameter definitions.
  • Updating functions related to type generation and handler imports to pass an additional rootPkg parameter and to adjust default grouping logic.

Reviewed Changes

Copilot reviewed 7 out of 8 changed files in this pull request and generated no comments.

Show a summary per file
File Description
tools/goctl/internal/version/version.go Update BuildVersion to "1.8.4-beta".
tools/goctl/api/swagger/parameter.go Remove example values from swagger parameters per issue fix.
tools/goctl/api/gogen/vars.go Change default group type from "types" to an empty string.
tools/goctl/api/gogen/gentypes.go Update functions to include rootPkg and add helper functions for grouping logic.
tools/goctl/api/gogen/genlogic.go Adjust logic import generation to account for group annotations.
tools/goctl/api/gogen/genhandlers.go Update handler import resolution to use updated group info.
tools/goctl/api/gogen/gen.go Update genTypes invocation to include the rootPkg parameter.
Files not reviewed (1)
  • tools/goctl/api/gogen/types.tpl: Language not supported
Comments suppressed due to low confidence (2)

tools/goctl/api/gogen/vars.go:14

  • Changing groupTypeDefault from "types" to an empty string may affect the default grouping logic. Please verify that downstream processing handles empty groups as intended.
groupTypeDefault = ""

tools/goctl/api/gogen/gentypes.go:69

  • The addition of the 'rootPkg' parameter in genTypesWithGroup requires consistent handling in all calls. Please ensure that all invocations and usages are updated accordingly and that this change is documented if needed.
func genTypesWithGroup(dir, rootPkg string, cfg *config.Config, api *spec.ApiSpec) error {

@kesonan kesonan closed this May 8, 2025
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.

About goctl not working after upgrade
1 participant