Comments (3)
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.
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.
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)
- Discover nested schemas
- Support for domain-driven-design (DDD)
- Refactor SQLAlchemy Repository for Multiple Tables
- Add support to Python 3.12
- Allow to define requestBody and parameters in OpenAPI docstrings
- Allow bulk creation and deletion on SQLAlchemy repositories
- Single type injection
- Component for injecting request's cookies
- Routes resolution is not working properly on resources under nested applications
- Include templates building as part of poetry build
- Include nested applications as part of Lifespan process
- Integrate dependabot
- Cache mechanism for routing resolution
- Connections manager for SQLAlchemy module
- Authentication mechanism
- Ordering for repositories list
- Enhanced operations for CRUD resources
- Core installation throws ModuleNotFoundError: `sqlalchemy`
- Flama logo is missing when serving
- Domain-driven design for HTTP resources
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flama.