RequestValidator shouldn't require (or even expect) a restApi property. #6193
Labels
@aws-cdk/aws-apigateway
Related to Amazon API Gateway
effort/small
Small work item – less than a day of effort
feature-request
A feature should be added or improved.
good first issue
Related to contributions. See CONTRIBUTING.md
in-progress
This issue is being actively worked on.
Specifying a requestModel in the MethodOptions of an AddMethod() operations should create the RequestValidator for me. Currently I have to also manually construct a RequestValidator.
Currently I have to build something like this:
The validator is being added to a resource, which is inherently attached to a RestAPI. Asking users to specify it again adds no value and we should just add it for them.
The text was updated successfully, but these errors were encountered: