Skip to content

Add Scala 3#23

Merged
catostrophe merged 6 commits intotrace4cats:masterfrom
ybasket:add-scala-3
Jul 29, 2021
Merged

Add Scala 3#23
catostrophe merged 6 commits intotrace4cats:masterfrom
ybasket:add-scala-3

Conversation

@ybasket
Copy link
Copy Markdown
Contributor

@ybasket ybasket commented Jul 28, 2021

Replaces circe-generic-extras with circe-generic by renaming fields to snake_case. Adds a custom Arbitrary instance to work around a missing scalacheck-shapeless dependency on Scala 3.

Replaces circe-generic-extras with circe-generic by renaming fields to snake_case. Adds a custom Arbitrary instance to work around a missing scalacheck-shapeless dependency on Scala 3.
privateKey: String,
clientEmail: String,
authUri: String
project_id: String,
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Some of them seem unused, so they could be removed. Mirroring the snake_case of the input is the easiest way to work around the missing circe-generic-extras, but it's also possible to write a Decoder by hand (the format should basically never change) or try to pre-process the JSON before decoding. Let me know if you prefer a different approach.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I ported these from another older library, so I don't think the extra fields are needed anymore.

I think this approach for snake case should be fine.

@catostrophe catostrophe added the enhancement New feature or request label Jul 28, 2021
@catostrophe
Copy link
Copy Markdown
Member

catostrophe commented Jul 28, 2021

Not sure if changing the model fields is ok. Seems true but let's ask @janstenpickle to be sure.

# Conflicts:
#	modules/stackdriver-http-exporter/src/main/scala/io/janstenpickle/trace4cats/stackdriver/oauth/GoogleAccountParser.scala
@catostrophe catostrophe merged commit bef51d8 into trace4cats:master Jul 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants