Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dynamic smithy4s enums + allow IntEnum hint in JSON codecs #406

Merged
merged 13 commits into from
Aug 24, 2022

Conversation

daddykotex
Copy link
Contributor

No description provided.

@kubukoz kubukoz changed the title Dynamic smithy4s enums Dynamic smithy4s enums + allow IntEnum hint in JSON codecs Aug 23, 2022
@@ -389,7 +484,7 @@ private[dynamic] object Compiler {
)
}
val memberHints = allHints(mShape.traits)
lField.map(_.addHints(memberHints: _*))
lField.map(_.addHints(memberHints.all.toSeq: _*))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is one problematic case - I wanted to add an addHints overload to SchemaFieldOps, but that breaks binary compatibility on 2.12 (the existing extension is renamed due to weird 2.12 compiler behavior). We can consider it for 0.16.0, in the meantime here's the workaround.

@daddykotex daddykotex marked this pull request as ready for review August 24, 2022 14:22
@daddykotex
Copy link
Contributor Author

Added a test in ae28247

Copy link
Member

@kubukoz kubukoz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's gooooo

@daddykotex daddykotex merged commit 8fc8105 into disneystreaming:main Aug 24, 2022
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.

None yet

2 participants