Conform primitive properties from strings #2994
ReubenFrankel
started this conversation in
General
Replies: 2 comments
-
|
I don't think there's any good reason not to do it. That piece of code is a bit gross already, but we could add more checks there for conforming primitive fields based on the schema type. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Opened a PR: #2997 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Why does the SDK conform primitive properties of a record dict towards a JSON compatible format (e.g.
datetime.datetimetostr), but not from strings to their expected schema type? Is/should it be the responsibility of the developer to define this mapping?sdk/singer_sdk/helpers/_typing.py
Lines 521 to 547 in c152403
i.e.
Beta Was this translation helpful? Give feedback.
All reactions