Skip to content

Generate object when an oneOf variant has no properties besides the discriminator#125

Merged
vooft merged 1 commit intovooft:mainfrom
evgenykochergin:object-one-of
Apr 10, 2026
Merged

Generate object when an oneOf variant has no properties besides the discriminator#125
vooft merged 1 commit intovooft:mainfrom
evgenykochergin:object-one-of

Conversation

@evgenykochergin
Copy link
Copy Markdown
Contributor

Problem: When a oneOf variant has no properties besides the discriminator, Spektor generated an empty data class, which is invalid Kotlin.

@vooft vooft merged commit e51d027 into vooft:main Apr 10, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants