Skip to content

Conversation

@david-crespo
Copy link
Collaborator

@david-crespo david-crespo commented Nov 29, 2025

The distinction between Api and HttpClient always bothered me. It's not there for any reason — we don't use HttpClient by itself for anything and nothing else extends it. In theory we could test it without having to generate the client around it, but we don't — our tests are unit tests on functions used by HttpClient (handleResponse, mergeParams) but not on HttpClient itself. If we wanted smaller tests like that, a more effective approach would be to generate a minimal client with a nearly empty OpenAPI schema and then test that.

I tested the client generated by this PR manually in the web console by copying it in and running the tests.

@david-crespo david-crespo merged commit 2a5ff8f into main Nov 29, 2025
3 checks passed
@david-crespo david-crespo deleted the remove-http-client branch November 29, 2025 21:20
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.

2 participants