From 48349adf5e9cf62daf69c2901b8c1644c65eeabc Mon Sep 17 00:00:00 2001 From: Niclas Thobaben Date: Sun, 18 Jul 2021 17:17:31 +0200 Subject: [PATCH] fixed default value strings --- src/java-client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/java-client.js b/src/java-client.js index cd4f9fa..d0e3981 100644 --- a/src/java-client.js +++ b/src/java-client.js @@ -61,7 +61,7 @@ function mapOperation(operation, namespace) { operation.responses = operation.responses.map(resp => { let type = javaType.mapJavaType(resp.type, namespace) if(resp.type !== 'unit') { - resp.label = `${utils.camelcase(type.baseType)}${resp.code.integer.value}` + resp.label = `${utils.camelcase(type.baseType || 'result')}${resp.code.integer.value}` } resp.type = type return resp