@goast/kotlin 0.2.3 → 0.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -147,7 +147,7 @@ class DefaultKotlinOkHttp3Generator extends file_generator_1.KotlinFileGenerator
147
147
  });
148
148
  }),
149
149
  returnType: ctx.refs.apiResponse([
150
- this.getTypeUsage(ctx, { schema: responseSchema, fallback: ast_1.kt.refs.unit(), nullable: true }),
150
+ this.getTypeUsage(ctx, { schema: responseSchema, fallback: ast_1.kt.refs.unit({ nullable: true }), nullable: true }),
151
151
  ]),
152
152
  body: this.getEndpointClientHttpInfoMethodBody(ctx, { endpoint, parameters, responseSchema }),
153
153
  });
@@ -144,7 +144,7 @@ export class DefaultKotlinOkHttp3Generator extends KotlinFileGenerator {
144
144
  });
145
145
  }),
146
146
  returnType: ctx.refs.apiResponse([
147
- this.getTypeUsage(ctx, { schema: responseSchema, fallback: kt.refs.unit(), nullable: true }),
147
+ this.getTypeUsage(ctx, { schema: responseSchema, fallback: kt.refs.unit({ nullable: true }), nullable: true }),
148
148
  ]),
149
149
  body: this.getEndpointClientHttpInfoMethodBody(ctx, { endpoint, parameters, responseSchema }),
150
150
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goast/kotlin",
3
- "version": "0.2.3",
3
+ "version": "0.2.4",
4
4
  "repository": "https://github.com/MaSch0212/goast.git",
5
5
  "author": {
6
6
  "name": "Marc Schmidt (MaSch0212)",