-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dismiss type check during create_map #23
Comments
CristhianMotoche
changed the title
Dismiss type check during map
Dismiss type check during create_map
Nov 2, 2019
I double this, faced same issue with pydantic and sqlalchemy. Is there are a change for this to be fixed? |
Yes Please! Same here |
I faced this issue, solved using 1.0.7 version |
i changed the lines from:
to:
this worked well for me. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello!
I've been looking for a library like this one and I think it can be pretty useful. I want to use it to convert an object that is mapped from a table of my database (I'm using Tortoise ORM for this):
to a simple plain object that I use in my use cases (business logic):
Then, my mapper should be something like:
But,
SessionTable
isn't atype
:so, it fails with
ObjectMapperException: type_from must be a type
andObjectMapperException: type_to must be a type
during the map creationcreate_map
.Does it make sense to add a flag to avoid those asserts?
Although, I'm not sure if that would work since all data members need a default value. BTW, is it possible to solve that issue? If it is, I'd like to give it a try.
The text was updated successfully, but these errors were encountered: