Skip to content

v2.0.0

Compare
Choose a tag to compare
@asyncapi-bot asyncapi-bot released this 18 Oct 18:37
· 221 commits to master since this release
45ed32a

2.0.0 (2023-10-16)

v2 focuses on improving the generated types of model properties and a bunch of more features and fixes.

You can read the migration guide here: https://www.modelina.org/docs/version-1-to-2

Modelina Breaking Changes

These are the potential breaking changes for Modelina itself, that might break the generation code:

  • feat!: refactors generators to use the same arg types #1505

Models Breaking Changes

These are the potential breaking changes for the generated models if you upgrade:

  • feat!: generate models for OpenAPI parameters #1498
  • fix!: adds union type when operation.message.oneOf is set #1136
  • fix!: additionalItems being applied for regular arrays #1140
  • feat!: enable nullable models #1141
  • fix!: fixes required properties when if/then/else is used #1149
  • feat!: handle const and discriminator #1169
  • fix!: should not carry over options from metaModel to constrainedModel #1243
  • feat!: adds interface for oneOf objects for Java #1271
  • fix!: update default Kotlin renderer to make non-required properties nullable #1277
  • feat!: add discriminator support for OpenAPI v3 and Swagger v2 #1281
  • feat!: use EXISTING_PROPERTY as JsonTypeInfo.As annotation to avoid duplicates when serializing #1290
  • feat!: add java oneOf union support for properties of models #1296
  • fix!: support java nullable double type #1439
  • feat!: supports optional properties in java #1485

New Features

  • feat: make discriminator property visible to deserializer from Java Jackson preset #1469

Bug Fixes

  • fix: escape java string literals used for regex patterns and string constants #1509
  • fix: fixes java jackson discriminator when property is not camel case #1502
  • fix: wrong import for Java preset #1283
  • fix: ts/js unmarshalling function bug #1429
  • fix: typescript interface variable assignment #1472
  • fix: adds format in options instead of using original input #1486

Performance Improvements

  • fix: fixes performance issues in java when calling parent unions #1501

Other Changes

  • refactor: adds discriminator in CommonModel and interpreters #1269
  • chore: update Rust union render to use ConstrainedMetaModelOptionsDiscriminator #1282