Merge pull request #1087 from trheyi/main
Update collection validation to ignore empty collection name error
This commit is contained in:
commit
a7a8a75b1c
1 changed files with 2 additions and 2 deletions
|
|
@ -221,8 +221,8 @@ func validateCreateCollectionRequest(req *CreateCollectionRequest) error {
|
|||
return fmt.Errorf("config is required")
|
||||
}
|
||||
|
||||
// Validate CreateCollectionOptions
|
||||
if err := req.Config.Validate(); err != nil {
|
||||
// Validate CreateCollectionOptions (ignore collection name cannot be empty error)
|
||||
if err := req.Config.Validate(); err != nil && err.Error() != "collection name cannot be empty" {
|
||||
return fmt.Errorf("invalid config: %w", err)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue