Skip to content

Problem Create Custom Extension with OASFilter in java #1380

Answered by MikeEdgar
Zaccher asked this question in Q&A
Discussion options

You must be logged in to vote

@Zaccher , try creating your extension as a Map instead. Something like this:

Map<String, Object> apiGatewayIntegrationOperation = 
    Map.of("uri", "https://...",
           "responses", Map.of(
               "default", Map.of("stausCode", "200")
           ));
myOperation.addExtension("amazon-apigateway-integration", apiGatewayIntegrationOperation );

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Zaccher
Comment options

Answer selected by Zaccher
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants