Class DataSenseUtils

java.lang.Object
com.mulesoft.connectors.a2a.internal.datasense.DataSenseUtils

public final class DataSenseUtils extends Object
Utility class for DataSense operations. Provides helper methods for loading and working with metadata types from JSON schemas.
  • Method Details

    • ofJsonSchema

      public static org.mule.metadata.api.model.MetadataType ofJsonSchema(String path, String typeId)
      Loads a metadata type from a JSON schema resource file.
      Parameters:
      path - The resource path to the JSON schema file
      typeId - The type identifier to load from the schema
      Returns:
      The loaded MetadataType
      Throws:
      NullPointerException - If the resource at the specified path is not found
      IllegalArgumentException - If the metadata type could not be loaded for the given typeId