kompendium icon indicating copy to clipboard operation
kompendium copied to clipboard

TypeEnrichment impossible for generics

Open oSumAtrIX opened this issue 1 year ago • 1 comments

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") {
    // ?
}

oSumAtrIX avatar Jan 05 '25 01:01 oSumAtrIX