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
Based on the discussion in #1948, I am proposing to introduce a new type to represent SQL DATE values (a value with a date part but no time part).
We should probably introduce a new interface or class to represent these values.
Internally, dates should be stored as strings to avoid a whole set of timezone-related problems.
JSON Schema/OpenAPI schema should use {type: 'string', format: 'date'}
Connectors should recognize this new type at runtime, during discovery and autoupdate too.
We may need to configure the connectors to return DATE values as strings (not JavaScript Date instances). See MySQL connector's option dateStrings for an example.
This issue has been marked stale because it has not seen activity within six months. If you believe this to be in error, please contact one of the code owners, listed in the CODEOWNERS file at the top-level of this repository. This issue will be closed within 30 days of being stale.
This issue has been closed due to continued inactivity. Thank you for your understanding. If you believe this to be in error, please contact one of the code owners, listed in the CODEOWNERS file at the top-level of this repository.
Based on the discussion in #1948, I am proposing to introduce a new type to represent SQL DATE values (a value with a date part but no time part).
{type: 'string', format: 'date'}
DATE
values as strings (not JavaScriptDate
instances). See MySQL connector's optiondateStrings
for an example.Related work: DateString type provided by juggler. See loopbackio/loopback-datasource-juggler#1356, loopbackio/loopback-datasource-juggler#1365, the api docs and a possible bug loopbackio/loopback-datasource-juggler#1636. Please note that
DateString
is not the solution we are looking for, at least not in the current form! (See the discussion in #1948 for explanation.)The text was updated successfully, but these errors were encountered: