clockworklabs / SpacetimeDB

Multiplayer at the speed of light
https://spacetimedb.com
Other
4.41k stars 110 forks source link

Use actual types for api responses, not ad-hoc `json!()` objects #1931

Open coolreader18 opened 3 weeks ago

coolreader18 commented 3 weeks ago

Description of Changes

No behavior change, but it feels important to be able to see the actual structure of the response, especially as we're stabilizing.

Expected complexity level and risk

1

Testing

Was not able to get spacetime-web working to test this, but it's the same schema as it was before, and it matches with the typedef in typescript in spacetime-web.