MCPcopy Create free account
hub / github.com/APIs-guru/aws2openapi / attachHeader

Function attachHeader

index.js:199–211  ·  view source on GitHub ↗
(openapi,shapeName,header)

Source from the content-addressed store, hash-verified

197}
198
199function attachHeader(openapi,shapeName,header){
200 var responses = findResponsesForShape(openapi,shapeName);
201 for (var r in responses) {
202 var response = responses[r];
203 if (!response.header) {
204 response.headers = {};
205 }
206 var header = {};
207 header.description = '';
208 header.schema = { type: 'string' };
209 response.headers[header.locationName] = header;
210 }
211}
212
213function convertRegex(pattern) {
214

Callers 1

transformShapeFunction · 0.85

Calls 1

findResponsesForShapeFunction · 0.85

Tested by

no test coverage detected