Skip to content

Conversation

dynst
Copy link
Contributor

@dynst dynst commented Aug 12, 2025

JsonCompatibleDictionary seems like it should be used in a lot of the many places that currently use any #1750, and also seems like it should be renamed JsonObject.

I'm guessing migrating to using real json validation like zod would be overkill.

https://www.npmjs.com/package/zod

@dynst dynst changed the title remove readonly tags from json-rpc types export json types in utils Aug 12, 2025
@webmaster128
Copy link
Member

Interesting, looks good at first glance

I'm guessing migrating to using real json validation like zod would be overkill.

Yeah, agreed. Also I don't like external libraries in our public types which makes it very hard to replace dependencies.

@dynst
Copy link
Contributor Author

dynst commented Aug 13, 2025

external libraries in our public types which makes it very hard to replace dependencies.

And even just upgrading them, zod had a whole thing about how carefully the upgrade had to be designed due to how entangled it is with APIs.

colinhacks/zod#4371
https://zod.dev/v4

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