GithubHelp home page GithubHelp logo

Comments (3)

perdy avatar perdy commented on May 18, 2024

One of the goal I had in mind when I started to work in this framework was to keep a balance between the complexity of the core codebase and the value it adds to the coder (i.e. increase expresiveness and simplify the coding job).

In my opinion this is a minor gain in front of the major changes we need to add to the user flow and to the injection mechanism. We now force the user to decorate the endpoint and that's opposed to the idea of using the python's typing to keep the app's codebase simple.

Maybe we can consider this kind of behavior as a plugin to enrich the framework features to those users that wanna do the trade off.

from flama.

mvanderlee avatar mvanderlee commented on May 18, 2024

The decorating is optional, not forced. All it does is allow you to override the schema.
If no decorator is defined, it will use the type hint as before.

If you still do not want this, I'd at least like to see integration of the marshmallow-dataclass detection that I've added. That would solve most of my use cases.

from flama.

migduroli avatar migduroli commented on May 18, 2024

Closing this issue, as discussed on the PR related to it. We think this is no longer applicable due to the heavy refactoring Flama has gone through over the last few months. We really appreciate the effort @mvanderlee. I would suggest you to check the new documentation, and the new version recently released, 1.3.0. I think this issue is already resolved. If not, we're happy to re-think about it. Please, let's discuss if beforehand if so, as we're planning more enhancements over the next months, so that we don't duplicate efforts.
Thanks!

from flama.

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.