private void updateRequestBody(OpenAPI openAPI, RequestBody requestBody, boolean openapi31) {
		if (requestBody != null && !CollectionUtils.isEmpty(requestBody.getContent())) {
			requestBody.getContent().values().forEach(mediaType -> {
				Schema schema = mediaType.getSchema();
				if (schema.get$ref() != null && !schema.get$ref().endsWith(REQUEST_BODY)) {
					String key = schema.get$ref().substring(Components.COMPONENTS_SCHEMAS_REF.length());
					if (entityInoMap.containsKey(key))
						updateRequestBodySchema(key, schema, openAPI.getComponents(), openapi31);
				}
				else if (isComposedSchema(schema)) {
					updateComposedSchema(schema.getAllOf(), schema.getOneOf(), REQUEST_BODY, openAPI.getComponents(), openapi31);
				}
			});
		}
	}
Update request body.

@param openAPI     the open api
@param requestBody the request body
@param openapi31   the openapi 31
springdoc-openapi-starter-common/src/main/java/org/springdoc/core/utils/SpringDocDataRestUtils.java