Skip to content

Commit

Permalink
completely remove schema validation code
Browse files Browse the repository at this point in the history
  • Loading branch information
tsmith023 committed Sep 11, 2023
1 parent f9868d1 commit 1ff9e7a
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 527 deletions.
352 changes: 0 additions & 352 deletions test/schema/test_validate_schema.py

This file was deleted.

29 changes: 25 additions & 4 deletions weaviate/schema/crud_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@
from weaviate.connect import Connection
from weaviate.exceptions import UnexpectedStatusCodeException
from weaviate.schema.properties import Property
from weaviate.schema.validate_schema import (
CLASS_KEYS,
PROPERTY_KEYS,
)
from weaviate.util import (
_get_dict_from_object,
_is_sub_schema,
Expand All @@ -22,6 +18,31 @@
_decode_json_response_list,
)

CLASS_KEYS = {
"class",
"vectorIndexType",
"vectorIndexConfig",
"moduleConfig",
"description",
"vectorizer",
"properties",
"invertedIndexConfig",
"shardingConfig",
"replicationConfig",
"multiTenancyConfig",
}

PROPERTY_KEYS = {
"dataType",
"name",
"moduleConfig",
"description",
"indexInverted",
"tokenization",
"indexFilterable",
"indexSearchable",
}

_PRIMITIVE_WEAVIATE_TYPES_SET = {
"string",
"string[]",
Expand Down
Loading

0 comments on commit 1ff9e7a

Please sign in to comment.