Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: remove more _ten namespace directly accessing #363

Merged
merged 3 commits into from
Dec 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions core/src/ten_rust/src/json_schema/data/property.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,15 @@
"minLength": 1,
"pattern": "^[A-Za-z_][A-Za-z0-9_]*$"
},
"path_in_msg_conversion": {
"type": "string",
// 1. Using X.Y.Z as a pattern, this represents object access.
// The number of connections with `.` can be unlimited.
// 2. The rule for X/Y/Z/... is alphanumeric characters, or alphanumeric
// characters followed by `[]`, where the content inside the `[]` must
// only be numeric. This `[]` pattern represents array access.
"pattern": "^[A-Za-z_][A-Za-z0-9_]*(\\[\\d+\\])*(\\.[A-Za-z_][A-Za-z0-9_]*(\\[\\d+\\])*)*$"
},
"valueType": {
"type": "string",
"enum": [
Expand Down Expand Up @@ -92,7 +101,7 @@
"additionalProperties": false,
"properties": {
"path": {
"$ref": "#/$defs/notEmptyString"
"$ref": "#/$defs/path_in_msg_conversion"
},
"conversion_mode": {
"type": "string",
Expand Down Expand Up @@ -268,7 +277,7 @@
"additionalProperties": false,
"properties": {
"path": {
"$ref": "#/$defs/notEmptyString"
"$ref": "#/$defs/path_in_msg_conversion"
},
"conversion_mode": {
"type": "string",
Expand Down
Loading