-
Notifications
You must be signed in to change notification settings - Fork 132
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't generate an inline object for objects with no properties
The core doesn't really know how to emit objects like that (so it doesn't, and we end up with a compile error when building the generated classes). At any rate, if there's a bare object type without any properties, our assumption is that the user is expected to populate it with arbitrary key/value pairs (sorta like a map, but I guess they get more freedom for keys?), so in this case we should just use objectType() (io.cire.Json or Jackson JsonNode).
- Loading branch information
Showing
2 changed files
with
20 additions
and
2 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
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