Skip to content

Conversation

@paalvibe
Copy link
Contributor

Import of OutMessage class was unclear.
Confusing baseuri error documented. I suspect it would be better to expect base url to not have trailing slash, or auto-add it.

```Python
import uuid
from target365_sdk import ApiClient
from target365_sdk.api_client import OutMessage
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

According to the tests the correct import for OutMessage is "from ..models.out_message import OutMessage"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will not work in client code, because ..models.out is a library-internal reference. For clients target365_sdk will exist in a pip store, not in a relative path.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point! 👍

@HansOlavS
Copy link
Contributor

@paalvibe Thanks for the PR. I agree that the trailing slash in the base_uri shouldn't be required and be added by the SDK if missing. I'll close this PR for now and fix that ASAP instead.

@HansOlavS HansOlavS closed this Jan 18, 2021
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