-
Notifications
You must be signed in to change notification settings - Fork 561
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
parse type signature without running container (#1155)
* parse type signature from AST, without docker run Signed-off-by: technillogue <[email protected]> * quote complex types for older python versions Signed-off-by: technillogue <[email protected]> * add to tests and start fixing revealed problems Signed-off-by: technillogue <[email protected]> * handle defaults more carefully and some other fixes Signed-off-by: technillogue <[email protected]> * parse output type Signed-off-by: technillogue <[email protected]> * add remaining test cases and make them pass Signed-off-by: technillogue <[email protected]> * move static schema behind a flag Signed-off-by: technillogue <[email protected]> * fix for py3.8 Signed-off-by: technillogue <[email protected]> * another fix for py3.8 Signed-off-by: technillogue <[email protected]> * more fixes for py3.7 AST Signed-off-by: technillogue <[email protected]> * even more py3.7 fixes Signed-off-by: technillogue <[email protected]> * Instead of the static-schema flag, just accept an openapi-schema flag Signed-off-by: technillogue <[email protected]> * Write generated schema to a file Signed-off-by: technillogue <[email protected]> * Remove debugging changes Signed-off-by: technillogue <[email protected]> * fix gocritic Signed-off-by: technillogue <[email protected]> * Formatting Signed-off-by: Mattt Zmuda <[email protected]> * Fix linting warnings in types.py Signed-off-by: Mattt Zmuda <[email protected]> * Log OpenAPI spec when validation fails Signed-off-by: Mattt Zmuda <[email protected]> * Fix check for adding Cog labels Signed-off-by: Mattt Zmuda <[email protected]> * Apply suggestions from code review Signed-off-by: Mattt <[email protected]> --------- Signed-off-by: technillogue <[email protected]> Signed-off-by: Mattt Zmuda <[email protected]> Signed-off-by: Mattt <[email protected]> Co-authored-by: Mattt Zmuda <[email protected]> Co-authored-by: Mattt <[email protected]>
- Loading branch information
1 parent
8deb0ae
commit 6e2bba7
Showing
9 changed files
with
619 additions
and
33 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
Oops, something went wrong.