fix: References for for protobuf objects (#466)

This commit is contained in:
Jasper van Gelder
2023-06-05 22:12:31 +02:00
committed by GitHub
parent 592c116c3b
commit 68bae4918e
9 changed files with 709 additions and 10 deletions

View File

@ -8,7 +8,7 @@ import kotlin.reflect.KType
object Helpers {
private const val COMPONENT_SLUG = "#/components/schemas"
const val COMPONENT_SLUG = "#/components/schemas"
fun KType.getSlug(enrichment: Enrichment? = null) = when (enrichment) {
is TypeEnrichment<*> -> getEnrichedSlug(enrichment)