From 9ff17bbc31796dff53db6b2ab377011f43e7a74a Mon Sep 17 00:00:00 2001 From: Daniel Reimhult Date: Fri, 9 Feb 2024 08:40:12 +0100 Subject: [PATCH] Add support for Edm.Double using FloatProperty --- odata/metadata.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/odata/metadata.py b/odata/metadata.py index 5b76be8..d67fe0f 100644 --- a/odata/metadata.py +++ b/odata/metadata.py @@ -14,7 +14,8 @@ from .entity import declarative_base, EntityBase from .exceptions import ODataReflectionError from .property import StringProperty, IntegerProperty, DecimalProperty, \ - DatetimeProperty, BooleanProperty, NavigationProperty, UUIDProperty + DatetimeProperty, BooleanProperty, NavigationProperty, UUIDProperty, \ + FloatProperty from .enumtype import EnumType, EnumTypeProperty @@ -36,6 +37,7 @@ class MetaData(object): 'Edm.DateTimeOffset': DatetimeProperty, 'Edm.Boolean': BooleanProperty, 'Edm.Guid': UUIDProperty, + 'Edm.Double': FloatProperty, } _annotation_term_computed = 'Org.OData.Core.V1.Computed'