private void customizePaths(OpenAPI openApi, Paths pathsProperties) {
		Paths paths = openApi.getPaths();
		if (paths == null) {
			openApi.paths(pathsProperties);
		}
		else {
			paths.forEach((path, pathItem) -> {
				if (path.startsWith("/")) {
					path = path.substring(1); // Remove the leading '/'
				}
				PathItem pathItemProperties = pathsProperties.get(path);
				if (pathItemProperties != null) {
					resolveString(pathItem::description, pathItemProperties::getDescription);
					resolveString(pathItem::summary, pathItemProperties::getSummary);

					Map<HttpMethod, Operation> operationMap = pathItem.readOperationsMap();
					Map<HttpMethod, Operation> operationMapProperties = pathItemProperties.readOperationsMap();

					operationMapProperties.forEach((httpMethod, operationProperties) -> {
						Operation operationToCustomize = operationMap.get(httpMethod);
						if (operationToCustomize != null) {
							resolveString(operationToCustomize::description, operationProperties::getDescription);
							resolveString(operationToCustomize::summary, operationProperties::getSummary);
							resolveSet(operationToCustomize::tags, operationProperties::getTags);
						}
					});
				}
			});
		}
	}
Customize paths.

@param openApi         the open api
@param pathsProperties the paths properties
springdoc-openapi-starter-common/src/main/java/org/springdoc/core/customizers/SpecPropertiesCustomizer.java