Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add helper logic around the server_url arg #21

Open
Coniferish opened this issue Feb 7, 2024 · 0 comments
Open

Add helper logic around the server_url arg #21

Coniferish opened this issue Feb 7, 2024 · 0 comments

Comments

@Coniferish
Copy link
Collaborator

Coniferish commented Feb 7, 2024

Same issue as was opened in the unstructured-python-client repo: Unstructured-IO/unstructured-python-client#30

  • If a path is included with the custom url, strip the path rather than return a 404
  • If the url uses http or has no protocol, prefix with https instead

This will be custom logic on top of the autogenerated code. Speakeasy will provide hooks to do this soon, but for now we should establish a pattern, and maintain this code whenever a pr is regenerated.

See solution here: Unstructured-IO/unstructured-python-client#32

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

No branches or pull requests

1 participant