private void buildRequest(OpenAPI openAPI, String name, FunctionInvocationWrapper function, RequestMethod requestMethod, RouterOperation routerOperation) {
		Type paramType = function.getInputType();
		Schema<?> schema = SpringDocAnnotationsUtils.extractSchema(openAPI.getComponents(), paramType, null, null, openAPI.getSpecVersion());
		if (GET.equals(requestMethod)) {
			Parameter parameter = new PathParameter().name(name).schema(schema);
			routerOperation.getOperationModel().addParametersItem(parameter);
		}
		else {
			RequestBody requestBody = new RequestBody();
			Content content = new Content();
			for (String defaultMediaType : defaultMediaTypes) {
				content.addMediaType(defaultMediaType, new io.swagger.v3.oas.models.media.MediaType().schema(schema));
			}
			requestBody.setContent(content);
			routerOperation.getOperationModel().setRequestBody(requestBody);
		}
	}
Build request.

@param openAPI         the open api
@param name            the name
@param function        the function
@param requestMethod   the request method
@param routerOperation the router operation
springdoc-openapi-starter-common/src/main/java/org/springdoc/core/providers/SpringCloudFunctionProvider.java