private RequestBody buildRequestBody(RequestBody requestBody, Components components,
			MethodAttributes methodAttributes,
			ParameterInfo parameterInfo, RequestBodyInfo requestBodyInfo) {
		if (requestBody == null) {
			requestBody = new RequestBody();
			requestBodyInfo.setRequestBody(requestBody);
		}

		if (requestBody.getContent() == null) {
			Schema<?> schema = parameterBuilder.calculateSchema(components, parameterInfo, requestBodyInfo,
					methodAttributes.getJsonViewAnnotationForRequestBody());
			buildContent(requestBody, methodAttributes, schema);
		}
		else if (!methodAttributes.isWithResponseBodySchemaDoc()) {
			Schema<?> schema = parameterBuilder.calculateSchema(components, parameterInfo, requestBodyInfo,
					methodAttributes.getJsonViewAnnotationForRequestBody());
			mergeContent(requestBody, methodAttributes, schema);
		}

		// Add requestBody javadoc
		if (StringUtils.isBlank(requestBody.getDescription()) && parameterBuilder.getJavadocProvider() != null
				&& parameterBuilder.isRequestBodyPresent(parameterInfo)) {
			String paramJavadocDescription = parameterBuilder.getParamJavadoc(parameterBuilder.getJavadocProvider(), parameterInfo.getMethodParameter());
			if (!StringUtils.isBlank(paramJavadocDescription)) {
				requestBody.setDescription(paramJavadocDescription);
			}
		}
		return requestBody;
	}
Build request body.

@param requestBody      the request body
@param components       the components
@param methodAttributes the method attributes
@param parameterInfo    the parameter info
@param requestBodyInfo  the request body info
@return the request body
springdoc-openapi-starter-common/src/main/java/org/springdoc/core/service/RequestBodyService.java