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

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

Merged
merged 3 commits into from
Dec 21, 2020

Conversation

srchase
Copy link
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