-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Error details & Generator improvements (#22)
* More error checking/code cleanup * Create ObjectExistsError * Read templates from files. Syntax highlighting on templates if helpful. 😊 * Document how to run the generator * Template type fixes * Fix generator (note: only tested with manage schema) * Improve exception * Regenerate Manage models with 2022.1 schema * Have pre-commit reformat line ending change * Allow model/endpoint generation to run separately. * Lazy-load endpoints This resulted in a memory usage reduction from ~240Mb to ~50Mb and a time reduction from 2.8s to 136ms when running `python -c 'import pyconnectwise'`. * Sort child endpoints so the endpoint files always generate the same. * Regen manage 2022.1 with sorted child endpoints.
- Loading branch information
Showing
2,029 changed files
with
40,961 additions
and
85,082 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.