You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Time representations in valor mimic Python's datetime objects of datetime, date, time and timedelta.
The issue with this arises when using Valor's TypeScript client. JavaScript's built-in Date does not stratify between date, time and datetime and has no representation of timedelta. This causes problems when encoding and decoding from valor's schemas.
A value created by the python client with type date would not be accessible to the typescript client as it has not way of generating such an object when using its builtin types.
Feature Description
Consolidate valor.schemas.Date and valor.schemas.Time into valor.schemas.DateTime.
datetime.date and datetime.time objects will return from an api request as datetime.datetime objects.
valor.schemas.Duration which corresponds to datetime.timedelta should be removed in favor of valor.schemas.Float which will store seconds as a float.
Additional Context
No response
The text was updated successfully, but these errors were encountered:
Feature Type
Adding new functionality to valor
Changing existing functionality in valor
Removing existing functionality in valor
Problem Description
Time representations in valor mimic Python's datetime objects of
datetime
,date
,time
andtimedelta
.The issue with this arises when using Valor's TypeScript client. JavaScript's built-in Date does not stratify between date, time and datetime and has no representation of
timedelta
. This causes problems when encoding and decoding from valor's schemas.A value created by the python client with type
date
would not be accessible to the typescript client as it has not way of generating such an object when using its builtin types.Feature Description
Consolidate
valor.schemas.Date
andvalor.schemas.Time
intovalor.schemas.DateTime
.datetime.date
anddatetime.time
objects will return from an api request asdatetime.datetime
objects.valor.schemas.Duration
which corresponds todatetime.timedelta
should be removed in favor ofvalor.schemas.Float
which will store seconds as a float.Additional Context
No response
The text was updated successfully, but these errors were encountered: