Skip to content

Conversation

@tommylau523
Copy link
Contributor

@tommylau523 tommylau523 commented Nov 24, 2025

This will results in correct OpenAPI doc. This will also allow for correct type generation in the FE without circular references.

The openapi-ts package used in the FE still has a bug that requires manual overwrite. That script will be updated at the same time as this PR to ensure correctness.

Copy link
Contributor Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@tommylau523 tommylau523 changed the title Removed oneOf payloads Removed oneOf annotations for Search Payloads Nov 24, 2025
@tommylau523 tommylau523 marked this pull request as ready for review November 24, 2025 20:55
@tommylau523 tommylau523 requested a review from a team as a code owner November 24, 2025 20:55
@sgrimm
Copy link
Contributor

sgrimm commented Nov 24, 2025

I believe the mobile app uses the search API too.

Copy link
Contributor Author

I believe the mobile app uses the search API too.

I am making a change in the FE typegen script to make sure it doesn't change what existing. It is functional with some slight script changes but our FE code uses the overridden types so it will require some work there as well.

tommylau523 added a commit to terraware/terraware-web that referenced this pull request Dec 3, 2025
These types are generated with this fix applied: terraware/terraware-server#3660

The generation step for Search API is temporarily commented out in order to not overwrite the correct types.

Search API are POSTs and therefore mutations by default, and will not be cached as a result.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants