In Rust: Serde
https://serde.rs/impl-serializer.html
In TypeScript: Effect Schema
https://effect.website/docs/schema/introduction
https://serde.rs/impl-serializer.html
In TypeScript: Effect Schema
https://effect.website/docs/schema/introduction
Comments
Solving real-world problems (e.g. custom data serialization) and pursuing solid engineering practices (e.g. designing for efficiency and edge cases) are more important than biasing towards current "popularity".
Lots to learn from other ecosystems (e.g. Rust).
> A standard interface for TypeScript schema validation libraries
Based on this official tagline of the project, I understand that your intended scope only entails data validation.
https://www.apollographql.com/docs/apollo-server/schema/custom-scalars#example-the-date-scalar