code: public Paths getPaths(ObjectNode obj, String location, ParseResult result) {
          final Paths paths = new PathsImpl();
          if (obj == null) {
              return null;
          }
          Set<String> pathKeys = getKeys(obj);
          for (String pathName : pathKeys) {
              JsonNode pathValue = obj.get(pathName);
              if (pathName.startsWith("x-")) {
                  result.unsupported(location, pathName, pathValue);
              } else {
                  if (!pathValue.getNodeType().equals(JsonNodeType.OBJECT)) {
                      result.invalidType(location, pathName, "object", pathValue);
                  } else {
                      ObjectNode path = (ObjectNode) pathValue;
                      PathItem pathObj = getPathItem(path, String.format("%s.%s'", location, pathName), result);
                      paths.put(pathName, pathObj);
                  }
              }
          }
          return paths;
      }
docs: PathsObject