static String findSwaggerResourcePath(String pathStr, String version) {
		Path path = Paths.get(pathStr);
		if (path.getNameCount() < 2) return null;
		if (version == null) return null;
		Path first = path.getName(0);
		Path rest = path.subpath(1, path.getNameCount());
		return first.resolve(version).resolve(rest).toString();
	}
Find swagger resource path string.

@param pathStr the path
@param version the version
@return the string
springdoc-openapi-starter-common/src/main/java/org/springdoc/ui/SwaggerResourceResolverUtils.java