Skip to content

Commit 2facace

Browse files
committed
rename to DatetimeExpression for consistency
1 parent d3806e0 commit 2facace

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

docs/redoc/master/openapi.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14468,7 +14468,7 @@
1446814468
"$ref": "#/components/schemas/GeoDistance"
1446914469
},
1447014470
{
14471-
"$ref": "#/components/schemas/Datetime"
14471+
"$ref": "#/components/schemas/DatetimeExpression"
1447214472
},
1447314473
{
1447414474
"$ref": "#/components/schemas/MultExpression"
@@ -14538,7 +14538,7 @@
1453814538
}
1453914539
}
1454014540
},
14541-
"Datetime": {
14541+
"DatetimeExpression": {
1454214542
"type": "object",
1454314543
"required": [
1454414544
"datetime"

lib/api/src/rest/schema.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -641,7 +641,7 @@ pub enum Expression {
641641
Variable(String),
642642
Condition(Box<Condition>),
643643
GeoDistance(GeoDistance),
644-
Datetime(Datetime),
644+
Datetime(DatetimeExpression),
645645
Mult(MultExpression),
646646
Sum(SumExpression),
647647
Neg(NegExpression),
@@ -671,7 +671,7 @@ pub struct GeoDistanceParams {
671671
}
672672

673673
#[derive(Debug, Serialize, Deserialize, JsonSchema)]
674-
pub struct Datetime {
674+
pub struct DatetimeExpression {
675675
pub datetime: String,
676676
}
677677

lib/collection/src/operations/universal_query/formula.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ impl From<rest::Expression> for ExpressionInternal {
200200
rest::Expression::GeoDistance(GeoDistance {
201201
geo_distance: rest::GeoDistanceParams { origin, to },
202202
}) => ExpressionInternal::GeoDistance { origin, to },
203-
rest::Expression::Datetime(rest::Datetime { datetime }) => {
203+
rest::Expression::Datetime(rest::DatetimeExpression { datetime }) => {
204204
ExpressionInternal::DateTime(datetime)
205205
}
206206
rest::Expression::Mult(rest::MultExpression { mult: exprs }) => {

0 commit comments

Comments
 (0)