Skip to content

Conversation

@PatrickDinh
Copy link
Collaborator

Update the template to expose the response context:

  • Add http status text to response context
  • Instead of using HttpInfo class, expose the response context directly.
    The reason for this change is that in utils-ts, I found that I need access to the raw binary returned from the http call. Currently, there are methods such as rawTransactionWithHttpInfo that return the HttpInfo (wrapper of the ResponseContext), there are some limitations:
  • when processing the response, if the response type isn't binary, the text is extracted from the response. This makes the binary stream unusable downstream. In utils-ts, I can't read the binary anymore.
  • HttpInfo is just a thin wrapper around ResponseContext, I think we should just expose the ResponseContext and the consumers have full control of how they want to use it.

@PatrickDinh PatrickDinh changed the base branch from main to spike/oas_clients May 2, 2025 01:37
@PatrickDinh PatrickDinh requested a review from aorumbayev May 2, 2025 01:37
@PatrickDinh PatrickDinh marked this pull request as ready for review May 2, 2025 01:38
@PatrickDinh PatrickDinh merged commit 3f553c2 into spike/oas_clients May 2, 2025
16 checks passed
@PatrickDinh PatrickDinh deleted the spike/oas-client-raw-response branch May 2, 2025 11:41
aorumbayev added a commit that referenced this pull request May 6, 2025
chore: adding more structure to api folder; automating generation of py|ts clients

chore: refining stock template to leverage pytest over unittest and auto generate valid baseline tests

chore: removing auto generated tests as they are too cumbersome to modify

- Instead setting up a structure for custom mustache files implementing manually written tests given that each end point (total around 55) often requires complex state setup
- For the time being the only test established is the test for sending raw transactions

chore: refining base python tests; fixing typescript template

chore: add basic txn params tests

chore: refine python transaction tests

chore: typescript client tweaks and initial tests

docs: initial doc on api folder and oas generators

chore: adding default pr and issue templates

chore: refning docs

chore: moving python ffi improvements to separate pr; adding basic ci for oas clients

chore: expose raw response context (#67)

chore: addressing pr comments

chore: merge conflict fixes

chore: addressing pr comments
aorumbayev added a commit that referenced this pull request May 6, 2025
chore: adding more structure to api folder; automating generation of py|ts clients

chore: refining stock template to leverage pytest over unittest and auto generate valid baseline tests

chore: removing auto generated tests as they are too cumbersome to modify

- Instead setting up a structure for custom mustache files implementing manually written tests given that each end point (total around 55) often requires complex state setup
- For the time being the only test established is the test for sending raw transactions

chore: refining base python tests; fixing typescript template

chore: add basic txn params tests

chore: refine python transaction tests

chore: typescript client tweaks and initial tests

docs: initial doc on api folder and oas generators

chore: adding default pr and issue templates

chore: refning docs

chore: moving python ffi improvements to separate pr; adding basic ci for oas clients

chore: expose raw response context (#67)

chore: addressing pr comments

chore: merge conflict fixes

chore: addressing pr comments
aorumbayev added a commit that referenced this pull request May 6, 2025
chore: adding more structure to api folder; automating generation of py|ts clients

chore: refining stock template to leverage pytest over unittest and auto generate valid baseline tests

chore: removing auto generated tests as they are too cumbersome to modify

- Instead setting up a structure for custom mustache files implementing manually written tests given that each end point (total around 55) often requires complex state setup
- For the time being the only test established is the test for sending raw transactions

chore: add basic txn params tests

chore: typescript client tweaks and initial tests

docs: initial doc on api folder and oas generators

chore: adding default pr and issue templates

chore: moving python ffi improvements to separate pr; adding basic ci for oas clients

chore: expose raw response context (#67)
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