kompendium
kompendium copied to clipboard
TypeEnrichment impossible for generics
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") {
// ?
}