Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

TypeEnrichment impossible for generics #677

Open
oSumAtrIX opened this issue Jan 5, 2025 · 1 comment
Open

TypeEnrichment impossible for generics #677

oSumAtrIX opened this issue Jan 5, 2025 · 1 comment

Comments

@oSumAtrIX
Copy link

While this is possible:

private val enrichment = TypeEnrichment<Schema>(id = "EnrichedSchema") {
    Schema::field {
        deprecated = true
    }
}

There is no way to set Schema::field when you want to enrich Set<Schema> for example:

private val enrichment = TypeEnrichment<Set<Schema>>(id = "EnrichedSetSchema") {
    // ?
}
@brizzbuzz
Copy link
Contributor

thanks for reporting the issue. my time to work on this lib is extremely limited at the moment since I no longer use kotlin day to day but would welcome a PR to add this functionality.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants