Skip to content

api: audit all api interfaces for type safety and null/optional correctness #7

Description

@MathiasDevelopes

We currently have no official documentation for this API. All API TypeScript interfaces were generated by reverse-engineering network responses and converting JSON into zod schemas.

This approach does not cover all scenarios: fields that exist in my session may not exist for other users, or may return null/undefined.

As a result, our current type definitions are not fully safe, and runtime errors can occur when unexpected missing or null values appear.

Note

If you want to contribute on making the API more type safe, please open the dev console, run the testAllApiSchemas() command, and post any logs from failed tests.

NB: The function only reports mismatches between types, but variable names could reveal information about you.
Be aware of this when submitting.
PLEASE CENSOR ANY PERSONAL INFORMATION FROM THE JSON RESPONSE

Metadata

Metadata

Labels

apiEverything pertaining to the API interface.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions