Skip to content

Conversation

@ahmedmaazin
Copy link

Summary

Adds support for dynamic file type detection in catalog upload methods, allowing CSV, JSON, and JSONL formats instead of hardcoded CSV-only uploads.

Changes

  • Added getValidatedFileExtension() helper method to extract and validate file extensions
  • Updated replaceCatalog(), updateCatalog(), and patchCatalog() to dynamically detect file types from file extensions
  • Supported formats: .csv, .json, .jsonl (case-insensitive)
  • Validation throws clear ConstructorException for unsupported file types.

* validates .csv, .json and .jsonl
* derive the file extension from the uploaded file.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant