private void customizeOpenApi(OpenAPI openApi, OpenAPI openApiProperties) {
		if (openApiProperties != null) {
			Info infoProperties = openApiProperties.getInfo();
			if (infoProperties != null)
				customizeInfo(openApi, infoProperties);

			Components componentsProperties = openApiProperties.getComponents();
			if (componentsProperties != null)
				customizeComponents(openApi, componentsProperties);

			Paths pathsProperties = openApiProperties.getPaths();
			if (pathsProperties != null)
				customizePaths(openApi, pathsProperties);

			List<SecurityRequirement> securityRequirementsProperties = openApiProperties.getSecurity();
			if (!CollectionUtils.isEmpty(securityRequirementsProperties)) {
				customizeSecurity(openApi, securityRequirementsProperties);
			}
			if (!CollectionUtils.isEmpty(openApiProperties.getServers())) {
				openApi.setServers(new ArrayList<>(openApiProperties.getServers()));
			}
		}
	}
Customize open api.

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