swagger-core
swagger-core copied to clipboard
@ExtensionProperty not nestable
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"),
})
})