swagger-core icon indicating copy to clipboard operation
swagger-core copied to clipboard

@ExtensionProperty not nestable

Open dragankoz opened this issue 2 years ago • 0 comments

Would like to be able to produce the following yaml snippet using annotations but not sure how to create nestable entries:

      x-amazon-apigateway-integration:
        type: aws_proxy
        httpMethod: POST
        uri:
          Fn::Sub: "arn:aws:apigateway:${AWS::Region}:lambda:path/2015-03-31/functions/${GetProductsFunction.Arn}/invocations"

Java code, but cannot nest "Fn::Sub" after uri property

    @Operation(summary = "Get all products",
            extensions = {
                    @Extension(name = "x-amazon-apigateway-integration", properties = {
                            @ExtensionProperty(name = "type", value = "aws_proxy"),
                            @ExtensionProperty(name = "httpMethod", value = "POST"),
                            @ExtensionProperty(name = "uri", value = "arn:aws:apigateway:${AWS::Region}:lambda:path/2015-03-31/functions/${GetProductsFunction.Arn}/invocations"),
                    })
            })

dragankoz avatar Jun 03 '22 03:06 dragankoz