Commit aeb354a
committed
fix(schema): enforce strict validation when converting property key values
The `convValue` method now utilizes `validValueOrThrow` to ensure
that any value which cannot be successfully normalized to the
PropertyKey's declared data type will explicitly throw an exception.
This prevents silent type mismatches or unexpected behavior and
reinforces type safety when handling property values, especially
after deserialization.1 parent 14fa3e3 commit aeb354a
2 files changed
Lines changed: 2 additions & 2 deletions
File tree
- hugegraph-server/hugegraph-core/src/main/java/org/apache/hugegraph/schema
- hugegraph-struct/src/main/java/org/apache/hugegraph/struct/schema
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
133 | | - | |
| 133 | + | |
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
138 | | - | |
| 138 | + | |
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
| |||
0 commit comments