@goast/kotlin 0.0.6 → 0.0.7

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.
@@ -107,7 +107,7 @@ class DefaultKotlinModelGenerator extends file_generator_1.KotlinFileGenerator {
107
107
  if (schema.discriminator) {
108
108
  builder.appendAnnotation('JsonTypeInfo', 'com.fasterxml.jackson.annotation', [
109
109
  ['use', 'JsonTypeInfo.Id.NAME'],
110
- ['include', 'JsonTypeInfo.As.PROPERTY'],
110
+ ['include', 'JsonTypeInfo.As.EXISTING_PROPERTY'],
111
111
  ['property', this.toStringLiteral(ctx, schema.discriminator.propertyName)],
112
112
  ['visible', 'true'],
113
113
  ]);
@@ -104,7 +104,7 @@ export class DefaultKotlinModelGenerator extends KotlinFileGenerator {
104
104
  if (schema.discriminator) {
105
105
  builder.appendAnnotation('JsonTypeInfo', 'com.fasterxml.jackson.annotation', [
106
106
  ['use', 'JsonTypeInfo.Id.NAME'],
107
- ['include', 'JsonTypeInfo.As.PROPERTY'],
107
+ ['include', 'JsonTypeInfo.As.EXISTING_PROPERTY'],
108
108
  ['property', this.toStringLiteral(ctx, schema.discriminator.propertyName)],
109
109
  ['visible', 'true'],
110
110
  ]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goast/kotlin",
3
- "version": "0.0.6",
3
+ "version": "0.0.7",
4
4
  "repository": "https://github.com/MaSch0212/goast.git",
5
5
  "author": {
6
6
  "name": "Marc Schmidt (MaSch0212)",