Skip to content

Fix openapi greedy param names for API Gateway REST APIs#674

Merged
kstich merged 3 commits intomasterfrom
fix-openapi-greedy-param-names
Dec 21, 2020
Merged

Fix openapi greedy param names for API Gateway REST APIs#674
kstich merged 3 commits intomasterfrom
fix-openapi-greedy-param-names

Conversation

@srchase
Copy link
Copy Markdown
Contributor

@srchase srchase commented Dec 16, 2020

For OpenAPI, "greedy" labels need a corresponding name parameter, which was added in #641.

However, some vendors/tooling, including REST APIs for API Gateway, require that the name parameter exclude the "+" suffix in the generated name parameter.

This CR adds an option to configure OpenApiConfig to remove that suffix, which is then used as the default for REST APIs in smithy-aws-apigateway-openapi.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@kstich kstich merged commit 38dcc8b into master Dec 21, 2020
@kstich kstich deleted the fix-openapi-greedy-param-names branch December 21, 2020 18:42
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.

3 participants