-
Hi. I need help creating an extension in the .yaml file that is generated with OpenAPI SmallRye.
To try and make a trial run, I tried writing this code:
This code is contained in a class implementing OASFilter, more precisely in a method (@OverRide) called
However, what I get is the following code:
Can someone explain to me how I can build a custom extension that does not just contain a normal String but a complex Object? Thank you very much for your help. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
@Zaccher , try creating your extension as a Map<String, Object> apiGatewayIntegrationOperation =
Map.of("uri", "https://...",
"responses", Map.of(
"default", Map.of("stausCode", "200")
));
myOperation.addExtension("amazon-apigateway-integration", apiGatewayIntegrationOperation ); |
Beta Was this translation helpful? Give feedback.
@Zaccher , try creating your extension as a
Map
instead. Something like this: