Skip to content

Conversation

@jangko
Copy link
Contributor

@jangko jangko commented Jul 29, 2025

Now the default handler is reduced to nothing if disabled.
And it will be available when turned on in the caller module
start from the callsite to all modules imported it.

jangko added 3 commits July 29, 2025 18:40
Now the default handler is reduced to nothing if disabled.
And it will be available when turned on in the caller module
start from the callsite to all modules imported it.
@jangko jangko marked this pull request as ready for review July 30, 2025 04:49
@jangko jangko merged commit b08247e into master Jul 30, 2025
26 checks passed
@jangko jangko deleted the auto-ser-rework branch July 30, 2025 04:50
when value is JsonString:
autoSerializeCheck(Flavor, JsonString)
value = r.parseAsString()
autoSerializeCheck(Flavor, JsonString):
Copy link
Member

Choose a reason for hiding this comment

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

it feels like this check could be spelled as when autoSerializeCheck(...)

r.raiseUnexpectedField(key, cstring typeName)

template autoSerializeCheck(F: distinct type, T: distinct type) =
template autoSerializeCheck(F: distinct type, T: distinct type, body) =
Copy link
Member

Choose a reason for hiding this comment

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

why is this helper in n-j-s and not in nim-serialization?

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.

2 participants