Giter VIP home page Giter VIP logo

Comments (1)

falloutphil avatar falloutphil commented on August 29, 2024

Quick additon - #292 seems to ask the same question, and the response seems to line up with my final suggestion of using fields.Nested as a workaround (but without the conditional test which is wrong). Also it looks like I've misunderstood the original justification which is to set include_relationships to False, specifically to avoid it duplicating the values already providied by include_fk? It was never designed to include auto generated nested schemas in the dumped JSON, nor is such a thing possible currently by any other means. This is covered fairly conclusively in #98, I think.

Unless anyone comments otherwise (i.e. my summary above is wrong!) I'll close this shortly - I note in the issues above at least a couple of other people seem to have made similar incorrect assumptions to me. It might be worth making the context and purpose of include_relationships setting a bit more explicit in the otherwise good documentation on the library, in case a few other people have fallen into the same trap as me! I can raise another ticket for that if people think it is worthwhile?

from marshmallow-sqlalchemy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.