Class PathItemUtils

java.lang.Object
com.github.chhorz.openapi.spring.util.AbstractMergeUtils
com.github.chhorz.openapi.spring.util.PathItemUtils

public class PathItemUtils extends AbstractMergeUtils
Utility class to merge OpenAPI PathItemObject.
Author:
chhorz
  • Constructor Details

    • PathItemUtils

      public PathItemUtils(LogUtils logUtils)
      Creates a new instance of this utility class with the given logger.
      Parameters:
      logUtils - the given logger instance
  • Method Details

    • mergePathItems

      public PathItemObject mergePathItems(PathItemObject pathItemOne, PathItemObject pathItemTwo)
      Merges the given PathItemObjects and all of their internal components.
      Parameters:
      pathItemOne - the first path item instance
      pathItemTwo - the second path item instance
      Returns:
      a new instance with data from both path items