-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(open-api-gateway): support singular tags on operations
This change adds support for tagging operations. Previously, tagging would cause broken lambda handler wrappers etc to be generated since the CDK construct assumes a single OperationConfig, and tagging APIs caused multiple to be generated. In this change, we always generate a single OperationConfig, but iterate over all apis to make sure all operations for all tags are included. Note that this change only supports tagging each operation with zero or one tags, multiple tags will cause duplicated code to be generated which will not build - support for multiple tags requires an upstream change in openapi-generator. re #269
- Loading branch information
Showing
31 changed files
with
17,591 additions
and
47 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
16 changes: 8 additions & 8 deletions
16
packages/open-api-gateway/scripts/generators/java/config.yaml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
files: | ||
operationConfig.mustache: | ||
destinationFilename: /OperationConfig.java | ||
templateType: API | ||
destinationFilename: {{src}}/api/DefaultApi/OperationConfig.java | ||
templateType: SupportingFiles | ||
operations.mustache: | ||
destinationFilename: /Operations.java | ||
templateType: API | ||
destinationFilename: {{src}}/api/DefaultApi/Operations.java | ||
templateType: SupportingFiles | ||
operationLookup.mustache: | ||
destinationFilename: /OperationLookup.java | ||
templateType: API | ||
destinationFilename: {{src}}/api/DefaultApi/OperationLookup.java | ||
templateType: SupportingFiles | ||
handlers.mustache: | ||
destinationFilename: /Handlers.java | ||
templateType: API | ||
destinationFilename: {{src}}/api/DefaultApi/Handlers.java | ||
templateType: SupportingFiles |
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 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
4 changes: 2 additions & 2 deletions
4
packages/open-api-gateway/scripts/generators/python/config.yaml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
files: | ||
operationConfig.mustache: | ||
destinationFilename: _operation_config.py | ||
templateType: API | ||
destinationFilename: {{src}}/apis/tags/default_api_operation_config.py | ||
templateType: SupportingFiles |
Oops, something went wrong.