Files
openapi-generator-original/docs/generators
William Cheng cca5dda026 [kotlin][kotlin-spring] Add companionObject option to generate companion objects in data classes (#23176)
* [kotlin] Add companionObject option to generate companion objects in data classes

Add a new boolean CLI option `companionObject` (default: false) that generates
an empty `companion object { }` on all data class models, enabling users to add
companion extensions from outside the generated code.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* [kotlin-spring] Add companionObject option to generate companion objects in data classes

Extend the same companionObject option to the kotlin-spring server generator,
enabling companion extensions on generated Spring model classes.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* update spec, add tests

---------

Co-authored-by: Jeffrey Blayney <jeffrey.blayney@missionlane.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-08 17:43:44 +08:00
..
2024-02-23 16:27:26 +08:00
2024-02-23 16:27:26 +08:00
2024-02-23 16:27:26 +08:00
2024-02-23 16:27:26 +08:00
2024-02-23 16:27:26 +08:00
2025-12-22 16:09:33 +08:00
2025-11-23 17:19:16 +08:00
2025-01-11 15:44:42 +08:00
2023-12-13 16:13:31 +08:00
2024-04-24 23:50:14 +08:00
2024-01-10 11:50:48 +08:00
2024-10-05 17:08:14 +08:00

The following generators are available:

CLIENT generators

SERVER generators

DOCUMENTATION generators

SCHEMA generators

CONFIG generators