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

openapi-generatorに合わせてopenapiのバージョンを下げたりする #1014

Closed
Changes from all commits
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
3 changes: 2 additions & 1 deletion run.py
Original file line number Diff line number Diff line change
Expand Up @@ -1334,7 +1334,7 @@ def setting_get(request: Request) -> Response:
dependencies=[Depends(check_disabled_mutable_api)],
)
def setting_post(
cors_policy_mode: CorsPolicyMode = Form(), # noqa
cors_policy_mode: str = Form(), # noqa # FIXME: CorsPolicyModeにするとopenapi-generatorがエラーになる
allow_origin: str | None = Form(default=None), # noqa
) -> Response:
"""
Expand All @@ -1358,6 +1358,7 @@ def custom_openapi():
openapi_schema = get_openapi(
title=app.title,
version=app.version,
openapi_version="3.0.0", # openapi-generatorが対応するバージョン
description=app.description,
routes=app.routes,
tags=app.openapi_tags,
Expand Down