Comments (8)
Sure, I could help migrate them here. I thought about it, but it was lost on my to-do list.
I will submit a pull request to add the
Config
field.@uncle-lv Could you help migrate the
File
related field and validators to flask-marshmallow?
Of course.
from flask-marshmallow.
These changes are released in 1.0.0
from flask-marshmallow.
Sure, I could help migrate them here. I thought about it, but it was lost on my to-do list.
I will submit a pull request to add the Config
field.
@uncle-lv Could you help migrate the File
related field and validators to flask-marshmallow?
from flask-marshmallow.
Wow, these got done in a flash! I think this is good to close, but please reopen if I'm wrong.
I noticed that Config
uses _CHECK_ATTRIBUTE
, which feels a little like an implementation detail in marshmallow
leaking into downstream libraries. Would it be better for the field to define serialize
instead of _serialize
? (I haven't thought about this very hard, so apologies if that is just wrong-headed. 😄 )
from flask-marshmallow.
cc @greyli , you may be interested in this :)
from flask-marshmallow.
I haven't done very much here since I first got involved on this project, but I'd be happy to help with these too!
Config seems pretty small and easy to grasp. I'll need to read up a bit on apiflask's current File tooling.
from flask-marshmallow.
Created the pull request for the Config
field: #281
from flask-marshmallow.
_CHECK_ATTRIBUTE
isn't just an implementation detail--it's meant to be set by subclasses of Field
when the attribute isn't meant to be accessed on the object to be serialized: https://github.com/marshmallow-code/marshmallow/blob/e099e058f8d17af08369d4485622d1c14f9084ed/src/marshmallow/fields.py#L138-L141
Config is very similar to fields.Constant, which sets _CHECK_ATTRIBUTE
to False
.
from flask-marshmallow.
Related Issues (20)
- TypeError: 'method' object is not iterable HOT 1
- How to return MarshalResult when use SQLAlchemyAutoSchema HOT 1
- Race Conditions in Marshmallow - Context Not thread safe?
- ModuleNotFoundError: No module named 'flask_marshmallow' HOT 2
- HyperlinkRelated creating invalid endpoint HOT 1
- SQLAlchemy Numeric deserialized as string with auto_field
- Python3.10: Distutils depreciation warning HOT 1
- Better Separation of Duties HOT 1
- Been a while; time for a release? HOT 3
- How do I create a new ORM object with information passed via JSON? HOT 1
- DeprecationWarning from Flask-SQLAlchemy for app.extensions["sqlalchemy"] HOT 1
- Flask deprecation warning HOT 2
- 0.15.0 creates an issue during initialization (python 3.8, aws beanstalk graviton) HOT 7
- '_SQLAlchemyState' object has no attribute 'session' HOT 3
- Building docs fails with Sphinx 7.2 and SOURCE_DATE_EPOCH environment variable
- The function decorated by the "post_load" decorator will undergo changes in parameter types as the function name changes.
- New release from dev HOT 2
- TypeError: Schema.__init__() got an unexpected keyword argument 'include_data' HOT 1
- File(allow_none=True) is not possible HOT 11
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 flask-marshmallow.