open-lineage-client
Version:
TypeScript/JavaScript client for creating and sending OpenLineage standard events.
19 lines (18 loc) • 661 B
TypeScript
/**
* Validates whether a string is a valid URI.
* @param uri - The URI to validate.
* @returns True if the URI is valid, false otherwise.
*/
export declare function isValidURI(uri: string): boolean;
/**
* Removes empty fields from an object recursively.
* @param obj - The object to clean.
* @returns A new object with non-empty fields.
*/
export declare function removeEmptyFields<T>(obj: T): T;
/**
* Validates a JSON object against the OpenLineage schema.
* @param jsonObject - The JSON object to validate.
* @returns True if the object is valid, otherwise throws an error.
*/
export declare function validateEvent(jsonObject: object): boolean;