Skip to content

Enhancement: Better generics support#102

Merged
marcizhu merged 3 commits intomasterfrom
enhancement/better-generic-support
Mar 18, 2026
Merged

Enhancement: Better generics support#102
marcizhu merged 3 commits intomasterfrom
enhancement/better-generic-support

Conversation

@marcizhu
Copy link
Copy Markdown
Member

This PR builds on top of #98. That PR introduced support for generics, but only same-package generics would work. This one expands that to support generic types defined in different packages, and generic types using other custom types for type substitutions.

I had to bump the golang.org/x/tools package to the newest version as it wouldn't work with Go 1.25. That update had some breaking changes, so I had to update some unrelated parts of the code as well.

As a side-note, we also need to migrate this project to Go 1.26; I might open another PR for that tomorrow morning.

@coveralls
Copy link
Copy Markdown

Pull Request Test Coverage Report for Build 23170454240

Details

  • 11 of 87 (12.64%) changed or added relevant lines in 2 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-1.4%) to 53.337%

Changes Missing Coverage Covered Lines Changed/Added Lines %
docparse/find.go 10 39 25.64%
docparse/jsonschema.go 1 48 2.08%
Totals Coverage Status
Change from base Build 20264597150: -1.4%
Covered Lines: 1119
Relevant Lines: 2098

💛 - Coveralls

@marcizhu marcizhu marked this pull request as ready for review March 16, 2026 23:51
Copy link
Copy Markdown
Contributor

@rafaeljusto rafaeljusto left a comment

Choose a reason for hiding this comment

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

Nice one!

@marcizhu marcizhu merged commit 53f9436 into master Mar 18, 2026
3 checks passed
@marcizhu marcizhu deleted the enhancement/better-generic-support branch March 18, 2026 10:17
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.

3 participants