yndlingsfar / serverless-openapi-integration-helper

The plugin separates x-amazon-apigateway extension syntax from your openapi3 files
MIT License
6 stars 5 forks source link

Add missing null check for responses when injecting CORS headers #25

Closed henhal closed 1 year ago

henhal commented 1 year ago

The previous PR for adding CORS headers to reusable responses under components/responses was missing a check for whether components/responses was defined at all. Since this is an optional element in an OpenAPI specification, a null check was added.