Skip to content

[BUG] Kotlin Constraints Preset omits @Valid annotation #2573

Description

@alexgavrisco

Describe the bug.

Kotlin's Constraint Preset doesn't add Valid annotation to array/object fields, effectively disabling cascading validation.
It's similar to issue Java generator had #2175

Expected behavior

Valid annotation is added to array/object fields enabling cascading validation

Screenshots

None

How to Reproduce

  1. Define JSON Schema that has an array/object property
  2. Run codegen for Kotlin with ConstraintsPreset
  3. Generated class doesn't have Valid annotation for array/object property

🖥️ Device Information [optional]

  • Operating System (OS):
  • Browser:
  • Browser Version:

👀 Have you checked for similar open issues?

  • I checked and didn't find similar issue

🏢 Have you read the Contributing Guidelines?

Are you willing to work on this issue ?

Yes I am willing to submit a PR!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions