Skip to content

Commit 0171771

Browse files
authored
Merge pull request #33 from BeerMoneyDev/fix-ref
fix: It's `Ref` not `Fn::Ref`
2 parents 3fe69b8 + 3024639 commit 0171771

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/aws-extensions/aws-extensions.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export class AwsExtensionsService {
5151
openApiDoc.servers.push({
5252
'x-amazon-apigateway-endpoint-configuration': {
5353
vpcEndpointIds: [
54-
{ 'Fn::Ref': options.apiGatewayExtensionOptions?.vpceIdParamName },
54+
{ Ref: options.apiGatewayExtensionOptions?.vpceIdParamName },
5555
],
5656
},
5757
} as any);

test/generate-file.e2e-spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ describe('OpenApiToolsModule', () => {
7474
expect(yamlObj['x-amazon-apigateway-policy']).toBeDefined();
7575
expect(yamlObj.servers).toContainEqual({
7676
'x-amazon-apigateway-endpoint-configuration': {
77-
vpcEndpointIds: [{ 'Fn::Ref': 'MyVpceId' }],
77+
vpcEndpointIds: [{ Ref: 'MyVpceId' }],
7878
},
7979
});
8080
expect(

0 commit comments

Comments
 (0)