question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Nested many fields and `pass_original`

See original GitHub issue

I took a quick look at the code and I’m not sure it’s a trivial change or if you’d be interested but in my application, I want to verify that no unwanted fields are passed. When I have a nested field with many=True, then I cannot check each one individually for unwanted data being passe. This is because original_data is the list of objects and I’m unsure how I can correctly identify which bit of original_data corresponds to the data.

What are your thoughts?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:2
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
JBKahncommented, May 24, 2016

Ohhh, run_validator already has index, so all you’d need to do is an: if index is None then original_data else original_data[index] and that could be an option? or I think a reasonable default? that or pass the index.

0reactions
JBKahncommented, Jul 14, 2019

Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

marshmallow.schema — marshmallow 3.19.0 documentation
Nested fields can be represented with dot delimiters. :param many: Should be set to `True` if ``obj`` is a collection so that the...
Read more >
fields.Nested should optionally pass the parent object ... - GitHub
The legacy structure I'm adapting can have nested fields at multiple levels, and it'd be really great to understand which one a field...
Read more >
JavaScript Flatten Deeply Nested Array of Objects Into Single ...
We want to bring all the nested objects into the array at the root level. Following is the example array familyTree that has...
Read more >
Nested ManyToMany Field in Django - python - Stack Overflow
Using the Django built-in admin interface I would like to be able to input all the different translations for the FAQs while being...
Read more >
Modeling workflow input and output path processing with data ...
Developers build Step Functions workflows to orchestrate multiple services ... Use the ResultPath to store a Task result in a nested field ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found