use of org.eclipse.microprofile.openapi.models.PathItem.HttpMethod in project Payara by payara.
the class CallbackImpl method applyCallbackOperationAnnotation.
private static void applyCallbackOperationAnnotation(PathItem pathItem, Operation callbackOperation, boolean override, ApiContext context) {
if (callbackOperation instanceof OperationImpl) {
OperationImpl callbackOperationImpl = (OperationImpl) callbackOperation;
if (callbackOperationImpl.getMethod() != null) {
HttpMethod method = getHttpMethod(callbackOperationImpl.getMethod());
if (method != null) {
Operation operation = getOrCreateOperation(pathItem, method);
OperationImpl.merge(callbackOperation, operation, override, context);
}
}
}
}
Aggregations