@goast/kotlin 0.0.5 → 0.0.6

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.
@@ -135,7 +135,7 @@ class DefaultKotlinModelGenerator extends file_generator_1.KotlinFileGenerator {
135
135
  .applyIf(!schema.required.has(property.name), (builder) => builder.appendIf(!property.schema.nullable, '?').append(' = null')));
136
136
  }
137
137
  generateObjectDataClass(ctx, builder, schema) {
138
- const inheritedSchemas = schema.inheritedSchemas.filter((x) => this.shouldGenerateTypeDeclaration(ctx, x) && !x.isNameGenerated);
138
+ const inheritedSchemas = schema.inheritedSchemas.filter((x) => this.shouldGenerateTypeDeclaration(ctx, x) && !x.isNameGenerated).filter((item, index, self) => self.indexOf(item) === index);
139
139
  builder
140
140
  .apply((builder) => this.generateDocumentation(ctx, builder, schema))
141
141
  .append('data class ')
@@ -132,7 +132,7 @@ export class DefaultKotlinModelGenerator extends KotlinFileGenerator {
132
132
  .applyIf(!schema.required.has(property.name), (builder) => builder.appendIf(!property.schema.nullable, '?').append(' = null')));
133
133
  }
134
134
  generateObjectDataClass(ctx, builder, schema) {
135
- const inheritedSchemas = schema.inheritedSchemas.filter((x) => this.shouldGenerateTypeDeclaration(ctx, x) && !x.isNameGenerated);
135
+ const inheritedSchemas = schema.inheritedSchemas.filter((x) => this.shouldGenerateTypeDeclaration(ctx, x) && !x.isNameGenerated).filter((item, index, self) => self.indexOf(item) === index);
136
136
  builder
137
137
  .apply((builder) => this.generateDocumentation(ctx, builder, schema))
138
138
  .append('data class ')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goast/kotlin",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "repository": "https://github.com/MaSch0212/goast.git",
5
5
  "author": {
6
6
  "name": "Marc Schmidt (MaSch0212)",