Skip to content
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

Unable to access nested list property #783

Open
arajkumar opened this issue Mar 11, 2020 · 0 comments · May be fixed by #784
Open

Unable to access nested list property #783

arajkumar opened this issue Mar 11, 2020 · 0 comments · May be fixed by #784
Labels

Comments

@arajkumar
Copy link

arajkumar commented Mar 11, 2020

Code

        field = fields.Raw(attribute='bar.0')
        assert field.output('foo', {'bar': [42]}) == 42

Repro Steps (if applicable)

  1. Try with above snippet

Expected Behavior

Properties which are nested under list should be accessible according to https://flask-restplus.readthedocs.io/en/stable/marshalling.html#renaming-attributes

Actual Behavior

A description of the unexpected, buggy behavior.

Error Messages/Stack Trace

No error/exception thrown, but it outputs None

Environment

  • Python 3.6.9
  • Flask 1.0.0
  • Flask-RESTPlus 0.13.0
  • Other installed Flask extensions - None
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant