apollographql / router

A configurable, high-performance routing runtime for Apollo Federation 🚀
https://www.apollographql.com/docs/router/
Other
805 stars 270 forks source link

JSON Schema/Typings for coprocessor requests #3670

Open lleadbet opened 1 year ago

lleadbet commented 1 year ago

Is your feature request related to a problem? Please describe.

The current coprocessor documentation does include rough typings, but it would be nice if we also had a published JSON schema (or similar) for use with other typed languages (Go, Rust, C#, TS, etc) to properly reflect the current properties and types.

Describe the solution you'd like

Either:

Describe alternatives you've considered Manually typing using docs, however the DX is poor for that.

Additional context JSON Schemas work well since they can also be used to generate typedefs for other languages, such as TS or Go, and is an established standard for cross-language typings. On the flipside, it does require additional tooling to respect properly and may be a barrier to entry.

LongLiveCHIEF commented 1 month ago

I would also like this. Just commenting to track this in my history.