Code Monkey home page Code Monkey logo

Comments (2)

tiangolo avatar tiangolo commented on April 28, 2024

Awesome project you have going on! Keep up the good work!

Thanks a lot! 🎉 😄


I was reading through the docs and in the Extra Models section, the About **user_dict sub-section doesn't explain why there is a difference between using **user_dict vs **user_in.dict().

Also I wasn't sure if you meant to specify user_dict as a generic dictionary for the section as that object doesn't exist in the above code example, or did you mean to also continue to use user_in?

Yes, I just checked and it had a couple of wrong variable names that messed up the whole idea 😱 . I think I mixed it when adding a similar note for the OAuth2 docs.

I just re-wrote that section taking your comments into account. It should be a lot clearer now: https://fastapi.tiangolo.com/tutorial/extra-models/#about-user_indict

from fastapi.

tiangolo avatar tiangolo commented on April 28, 2024

I think the docs should be clearer now, so I'll close the issue. But feel free to re-open it, add more comments or create new ones.

from fastapi.

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.