Skip to content

Commit

Permalink
Fix Request mapper and intellij ui (#123)
Browse files Browse the repository at this point in the history
  • Loading branch information
wilmveel authored Nov 16, 2023
1 parent 1f1a19e commit f6c0d17
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ class KotlinEmitter(

private fun List<Endpoint.Request>.emitRequestMapper() = """
|${SPACER}${SPACER}fun <B> REQUEST_MAPPER(contentMapper: Wirespec.ContentMapper<B>) = {
|${SPACER}${SPACER}${SPACER}request: Request<B> -> when {
|${SPACER}${SPACER}${SPACER}request: Wirespec.Request<B> -> when {
|${joinToString("\n") { it.emitRequestMapperCondition() }}
|${SPACER}${SPACER}${SPACER}${SPACER}else -> error("Cannot map request")
|${SPACER}${SPACER}${SPACER}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ class SyntaxHighlighter : SyntaxHighlighterBase() {
Types.CUSTOM_TYPE -> arrayOf(IDENTIFIER)
Types.BOOLEAN -> arrayOf(KEYWORD)
Types.INTEGER -> arrayOf(KEYWORD)
Types.NUMBER -> arrayOf(KEYWORD)
Types.STRING -> arrayOf(KEYWORD)
Types.TYPE_DEF -> arrayOf(KEYWORD)
Types.ENDPOINT_DEF -> arrayOf(KEYWORD)
Expand Down

0 comments on commit f6c0d17

Please sign in to comment.