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

Replace app.json_encoder with app.json and app.json_provider_class in docs #569

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update README.zh.md to use app.json_provider_class
  • Loading branch information
epetrovski authored May 23, 2023
commit 913638f1b37b779c66fe9d3a47f2b4a1c7af277b
4 changes: 2 additions & 2 deletions README.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -710,8 +710,8 @@ from flasgger import, Swagger, LazyString, LazyJSONEncoder
app = Flask(__init__)

# 设置自定义编码器(如果需要自定义,则继承它)
app.json_encoder = LazyJSONEncoder

app.json_provider_class = LazyJSONEncoder
app.json = LazyJSONEncoder(app)

template = dict(
info={
Expand Down