From e9295d69e49bddea6a7c039127e19dbd892d598b Mon Sep 17 00:00:00 2001 From: huangsong Date: Thu, 21 Oct 2021 10:45:20 +0800 Subject: [PATCH] fix chinese comment --- schema_validator/command.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/schema_validator/command.py b/schema_validator/command.py index cbfc7d5..55d1cee 100644 --- a/schema_validator/command.py +++ b/schema_validator/command.py @@ -36,7 +36,7 @@ def generate_schema_command( schema = _build_openapi_schema( app, app.extensions["FLASK_SCHEMA"], tag if tag else None) - formatted_spec = json.dumps(schema, indent=2) + formatted_spec = json.dumps(schema, indent=2, ensure_ascii=False) if output is not None: with open(output, "w") as file_: click.echo(formatted_spec, file=file_)