You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to make a generic one where I have a [T] and that [T] transforms into something that can be convertible to JSON. Probably there is a boundary (I am unaware of).
traitRestWebApiContracts[TTable, TRow, TKey]
extendsRestWebApi[TTable, TRow, TKey] withRestWebApiBodyProcessor[TTable, TRow, TKey] withRestWebApiMessages[TTable, TRow, TKey] withRestWebApiJson[TTable, TRow, TKey] withRestWebApiEntityJsonAdapter[TTable, TRow, TKey] withCircleJsonSupport// has the support for the Circle any value type
- could not find implicit value for parameter encoder: io.circe.Encoder[List[TRow]]
- could not find Lazy implicit value of type io.circe.generic.encoding.DerivedAsObjectEncoder[List[TRow]]
implicit val listEncoder: Encoder.AsObject[List[TRow]] = deriveEncoder[List[TRow]]
The text was updated successfully, but these errors were encountered:
Main Goal
Make circle JSON encode/decode on the abstract class level. Just like NewtonJson (https://www.newtonsoft.com/json)
I want to make a generic one where I have a [T] and that [T] transforms into something that can be convertible to JSON. Probably there is a boundary (I am unaware of).
Versions (Scala 2.13.1, Circle: 0.12.3)
Issue Summary
Things work fine when the actual type is given, however, it doesn't work when generics are used.
AnyVal JSON Add
Reference: https://www.programcreek.com/scala/io.circe.Decoder
Examples
Abstract API Sample, CircleJsonSupport integrated
Build fails
Build Success and works fine if the same code is written in the actual class
Build Success and works fine if casting happens properly
Implicts failed
Base Class
Concreate class Class
Also doesn't help
Case Class for CampaignRow (Slick Class)
Build errors faced during
The text was updated successfully, but these errors were encountered: