File tree 2 files changed +3
-1
lines changed
2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change 1
1
use super :: schema:: * ;
2
- use crate :: { api_bail, api_error, utils :: union :: ParseStr } ;
2
+ use crate :: { api_bail, api_error} ;
3
3
use crate :: base:: duration:: parse_duration;
4
4
use anyhow:: Result ;
5
5
use base64:: prelude:: * ;
@@ -1068,6 +1068,7 @@ impl Serialize for TypedValue<'_> {
1068
1068
( _, Value :: Null ) => serializer. serialize_none ( ) ,
1069
1069
( ValueType :: Basic ( typ) , v) => match typ {
1070
1070
BasicValueType :: Union ( s) => {
1071
+ todo ! ( "Union serialization" )
1071
1072
}
1072
1073
_ => v. serialize ( serializer) ,
1073
1074
} ,
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ impl UnionType {
20
20
BasicValue :: Int64 ( _) => Some ( BasicValueType :: Int64 ) ,
21
21
BasicValue :: Float32 ( _) => Some ( BasicValueType :: Float32 ) ,
22
22
BasicValue :: Float64 ( _) => Some ( BasicValueType :: Float64 ) ,
23
+ BasicValue :: TimeDelta ( _) => Some ( BasicValueType :: TimeDelta ) ,
23
24
BasicValue :: Range ( _) => Some ( BasicValueType :: Range ) ,
24
25
BasicValue :: Uuid ( _) => Some ( BasicValueType :: Uuid ) ,
25
26
BasicValue :: Date ( _) => Some ( BasicValueType :: Date ) ,
You can’t perform that action at this time.
0 commit comments