-
Notifications
You must be signed in to change notification settings - Fork 412
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Proper imports for generated openapi code (#2718)
* feat: load scalaFmt only once When generating multiple files, that are all formatted with the same scalafmt.conf, load it only once. In addition, writeFiles now returns a list of written paths. This will allow to use it in a source generation step e.g. in sbt. * feat: Proper imports for generated openapi code Extend the code generator, such that each generation step can add imports, which are then rendered at the file or object level. This fixes a few issues where imports were missing for generated case classes, that had `Chunk` fields. It also unifies the handling of UUIDs and opens the dor for additional future configuration options. For example the collection type can be made configurable, or user defined types can be added to the imports. `writeFiles` now returns a list of written files. This allows for use in sbt code generation tasks. I will add an sbt plugin in a later PR.
- Loading branch information
1 parent
91bcf2a
commit ec7f24a
Showing
4 changed files
with
177 additions
and
139 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.