marshmallow-code / marshmallow-code/flask-marshmallow

including custom field in schema with nested Schema

Open
#64 0 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
887
Forks
65
Avg merge
7h 25m
Merged PRs (30d)
3

Description

I have a model with data of some facebook posts:

`class Post(db.Model):
id = db.Column(db.Integer, primary_key = True)
post_id = db.Column(db.String(40), unique = True)
post_type = db.Column(db.String(10))
post_created_time = db.Column(db.String(30))
post_content = db.Column(db.Text)
post_link = db.Column(db.String(700))
post_likes = db.Column(db.Integer)
post_comments = db.Column(db.Integer)
post_shares = db.Column(db.Integer)
post_photos = db.Column(db.ARRAY(db.String(500)))
date_saved = db.Column(db.DateTime, default= datetime.utcnow())
date_updated = db.Column(db.DateTime)
page_name = db.Column(db.String(20))`

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue provides only a Python SQLAlchemy Post model and no schema file, test, or expected output. First clarify which custom field and nested Schema are involved, then reproduce the case; done means the requested field is included in the nested serialized schema.

Written by the indexing model from the issue text.

Assessment

Tech stack
flask, python, sqlalchemy
Domain
api, backend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.