3 ms·
This is a great idea! There's also the matter of requests' result types not being automatically inferred in the SDK right now, which would be great to fix. Cou
by jspahrsummers 2y ago
This is a great idea! There's also the matter of requests' result types not being automatically inferred in the SDK right now, which would be great to fix.
Could I convince you to submit a PR? We'd love to include community contributions!
- dangsux 2y ago[dead]
- filearts 2y agoIf you were willing to bring additional zod tooling or move to something like TypeBox (https://github.com/sinclairzx81/typebox https://github.com/sinclairzx81/typebox), the json schema would be a direct derivation of the tools' input schemas in code.
- rictic 2y agoThe json-schema-to-ts npm package has a FromSchema type operator that converts the type of a json schema directly to the type of the values it describes. Zod and TypeBox are good options for users, but for the reference implementation I think a pure type solution would be better.