zio / zio-schema

Compositional, type-safe schema definitions, which enable auto-derivation of codecs and migrations.
https://zio.dev/zio-schema
Apache License 2.0
140 stars 160 forks source link

Generation of genericTypeInfo does not always work #730

Open 987Nabil opened 1 month ago

987Nabil commented 1 month ago
//This works as expected
implicit val schemaInt: Schema[GenericType[Int]] = DeriveSchema.gen

//Does not resolve T to the actual type when the macro is executed
implicit def schema[T: Schema]: Schema[GenericType[T]] = DeriveSchema.gen 

This issue exists with Scala 2 and 3

jdegoes commented 2 weeks ago

/bounty $200

algora-pbc[bot] commented 2 weeks ago

💎 $200 bounty • ZIO

Steps to solve:

  1. Start working: Comment /attempt #730 with your implementation plan
  2. Submit work: Create a pull request including /claim #730 in the PR body to claim the bounty
  3. Receive payment: 100% of the bounty is received 2-5 days post-reward. Make sure you are eligible for payouts

Thank you for contributing to zio/zio-schema!

Add a bountyShare on socials

Attempt Started (GMT+0) Solution
🟡 @shivamgupta88 Sep 6, 2024, 7:14:35 PM WIP
shivamgupta88 commented 1 week ago

/attempt #730

shivamgupta88 commented 1 week ago

I'm setting up a project locally and could use some assistance in getting the development environment up and running. Any help would be greatly appreciated! /

Screenshot 2024-09-07 at 00 50 37
987Nabil commented 1 week ago

@shivamgupta88 this is not a good first issue. If you have no prior knowledge of Scala, this issue is probably unsolvable for you.

algora-pbc[bot] commented 2 days ago

@shivamgupta88: Reminder that in 7 days the bounty will become up for grabs, so please submit a pull request before then 🙏