@goast/kotlin 0.4.4-beta1 → 0.4.4-beta2

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.
@@ -111,7 +111,7 @@ export class DefaultKotlinSpringControllerGenerator extends KotlinFileGenerator
111
111
  }
112
112
  return kt.call(kt.refs.swagger.content(), [
113
113
  content.type ? kt.argument.named('mediaType', kt.string(content.type)) : null,
114
- content.schema ? kt.argument.named('schema', ktSchema) : null,
114
+ content.schema ? kt.argument.named(isArray ? 'array' : 'schema', ktSchema) : null,
115
115
  ]);
116
116
  }))),
117
117
  ]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goast/kotlin",
3
- "version": "0.4.4-beta1",
3
+ "version": "0.4.4-beta2",
4
4
  "description": "Provides gOAst generators for generating Kotlin code from OpenAPI specifications.",
5
5
  "author": {
6
6
  "name": "Marc Schmidt (MaSch0212)",
@@ -116,7 +116,7 @@ class DefaultKotlinSpringControllerGenerator extends file_generator_js_1.KotlinF
116
116
  }
117
117
  return index_js_1.kt.call(index_js_1.kt.refs.swagger.content(), [
118
118
  content.type ? index_js_1.kt.argument.named('mediaType', index_js_1.kt.string(content.type)) : null,
119
- content.schema ? index_js_1.kt.argument.named('schema', ktSchema) : null,
119
+ content.schema ? index_js_1.kt.argument.named(isArray ? 'array' : 'schema', ktSchema) : null,
120
120
  ]);
121
121
  }))),
122
122
  ]);