Skip to content

🐛 Bug: Incorrect Default Value for Namespace in DataValidator (Hacktoberfest) #112

@Boburmirzo

Description

@Boburmirzo

🧩 Problem

In memori/utils/validators.py, the namespace validator does not set a default value when the input is None, which can result in errors downstream.

📋 Steps to Fix

  • Update validate_namespace to set a default value (e.g., "default") if the input is None or empty.
  • Add test cases for None/empty values.

✅ Acceptance Criteria

  • Namespace validator provides a safe default when input is None/empty.
  • All uses of namespace in the codebase work without error.
  • Documentation and tests updated.

Labels: hacktoberfest, bug, help wanted

Refer to memori/utils/validators.py

🤝 Hacktoberfest Details

  • This issue is part of Hacktoberfest 2025 — valid pull requests will be merged or labeled hacktoberfest-accepted.
  • Please review the CONTRIBUTING.md for contribution guidelines.
  • Follow our Code of Conduct to maintain a positive and inclusive environment.

⭐ Don’t forget to star the repo on GitHub. It really helps our community grow

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions