Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Config field to dump Flask configuration variables #468

Closed
greyli opened this issue Aug 9, 2023 · 0 comments · Fixed by #469
Closed

Add Config field to dump Flask configuration variables #468

greyli opened this issue Aug 9, 2023 · 0 comments · Fixed by #469
Assignees
Labels
Milestone

Comments

@greyli
Copy link
Member

greyli commented Aug 9, 2023

Example usage:

from apiflask import APIFlask, Schema
from apiflask.fields import Config

app = APIFlask(__name__)
app.config['API_TITLE'] = 'Pet API'

class FooSchema(Schema):
    title = Config('API_TITLE')

Consider adding this field to the upstream flask-marshmallow.

@greyli greyli added the feature label Aug 9, 2023
@greyli greyli added this to the 2.1.0 milestone Aug 9, 2023
@greyli greyli self-assigned this Aug 9, 2023
@greyli greyli mentioned this issue Aug 9, 2023
5 tasks
@greyli greyli modified the milestones: 2.1.0, 2.0.1 Aug 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant