You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Description of changes
_Summarize the changes made by this PR._
- Improvements & Bug fixes
- Support Key type (introduced by search api) in schema. Users can specify this type as schema keys as well as source_key
- Adds validation for allowed values for key and source_key in schema on both client and server side
- Adds a small helper to pretty print schema json
- New functionality
- ...
## Test plan
Added plenty of unit tests and end to end tests
- [x] Tests pass locally with `pytest` for python, `yarn test` for js, `cargo test` for rust
## Migration plan
None
## Observability plan
Staging
## Documentation Changes
None
# Disallow config=None and key=None - too dangerous
1746
1799
ifconfigisNoneandkeyisNone:
1747
1800
raiseValueError(
@@ -1754,6 +1807,13 @@ def create_index(
1754
1807
f"Cannot create index on special key '{key}'. These keys are managed automatically by the system. Invoke create_index(VectorIndexConfig(...)) without specifying a key to configure the vector index globally."
1755
1808
)
1756
1809
1810
+
# Disallow any key starting with #
1811
+
ifkeyisnotNoneandkey.startswith("#"):
1812
+
raiseValueError(
1813
+
"key cannot begin with '#'. "
1814
+
"Keys starting with '#' are reserved for system use."
0 commit comments