Open-Trader/opentrader

Use Standard Schema as a DTO between Backend and Frontend

Open

#106 opened on Feb 9, 2025

 (2 comments) (0 reactions) (1 assignee)TypeScript (319 forks)auto 404
help wantedtechdepth

Repository metrics

Stars
 (2,749 stars)
PR merge metrics
 (PR metrics pending)

Description

Currently the zod schema is converted to JSON using zod-to-json-schema, and back json-schema-to-zod. This way we can share the validation schema between apps.

Since Zod and other packages adopted Standard Schema, I guess we can use that and get rid of these dependencies, which have their own limitations.

Contributor guide