-
Notifications
You must be signed in to change notification settings - Fork 505
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
Values in nested api model are null #804
Comments
|
Thanks for your answer. I will try. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello,
I hope you can help me.
Im using python 3.9.0, Flask 1.1.2, flask-restplus 0.13.0, Flask_SQLAlchemy2.4.4 and SQLAlchemy 1.3.20.
I have a problem with a nested api model, which looks like this:
This is my my request handler:
And my dto:
If I send a request, I'm getting this response with null values:
But if I remove the nested field from my api model 'lights' and add all fields, the values are not null.
I want to use the nested fields. How do I get the values in my response?
Thanks in advance
The text was updated successfully, but these errors were encountered: