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

TethysBuilder doesn't produce json from Foldable #1358

Open
NarekDW opened this issue Nov 12, 2024 · 0 comments
Open

TethysBuilder doesn't produce json from Foldable #1358

NarekDW opened this issue Nov 12, 2024 · 0 comments

Comments

@NarekDW
Copy link
Contributor

NarekDW commented Nov 12, 2024

Example

def json[A: Loggable](a: A) = TethysBuilder(a)

@derive(loggable)
final case class X(field: String)

val result = json(List(X("value")))

Expected:

[{"field":"value"}]

Actual

{}

I think this issue occurs due to how fldLoggable is constructed, particularly in this part:

def fields[I, V, R, M](a: A, input: I)(implicit receiver: LogRenderer[I, V, R, M]): R = input.noop

I'm not sure how this could be fixed without introducing significant changes...

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

No branches or pull requests

1 participant