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

Version 0.4.5 #10

Merged
merged 11 commits into from
Aug 22, 2023
Merged

Version 0.4.5 #10

merged 11 commits into from
Aug 22, 2023

Conversation

Yoshify
Copy link
Contributor

@Yoshify Yoshify commented Aug 22, 2023

This version fixes numerous issues:

  • Namespace collisions with generated models no longer occur
  • Importing models for adding your own annotations is significantly easier - all models are now contained within their model modules init. So, for example, one can now do: from pyconnectwise.models.manage import Company
  • Models now use Literal types for enum fields instead of Enums - this feels much nicer to work with in my opinion, but open to feedback.
  • Tidied and removed redundant or legacy code.
  • Added support for void methods in generated endpoints.

Yoshify added 11 commits August 22, 2023 14:37
This allows for easier importing when coding, eg:
```
from pyconnectwise.models.manage import Company
```

Also, to solve namespace clashes, all models names have been updated (which is a breaking change for people using old naming, if any). Model names now use parts of their namespace in the name.

Enum's have been converted to Literals.
Endpoints now use new model names
Added support for void methods (like most DELETE requests) as they have no return type.
@Yoshify Yoshify self-assigned this Aug 22, 2023
@Yoshify Yoshify merged commit a95135f into main Aug 22, 2023
@Yoshify Yoshify deleted the 0.4.5 branch August 22, 2023 22:46
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.

1 participant