Created
July 17, 2026 17:37
-
-
Save potfur/99edc4a1dae9fca4a1f1d5d216c8cd2e to your computer and use it in GitHub Desktop.
SchemaModelNamer
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import org.http4k.contract.jsonschema.v3.SchemaModelNamer | |
| import org.http4k.contract.jsonschema.v3.SchemaModelNamer.Companion.Simple | |
| fun interface SchemaModelNamerChain : (Any) -> String? | |
| fun SchemaModelNamerChain.then(next: SchemaModelNamerChain) = | |
| SchemaModelNamerChain { this(it) ?: next(it) } | |
| fun SchemaModelNamerChain.then(next: SchemaModelNamer) = | |
| SchemaModelNamer { this(it) ?: next(it) } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment