Files
dify/api/tests/unit_tests/controllers/openapi/test_models.py
Xiyuan Chenandautofix-ci[bot] bc0636c4db refactor(openapi): route /openapi/v1 auth by subject (#41420)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-09-18 08:42:53 +00:00

7 lines
279 B
Python

from controllers.openapi._models import AppDescribeResponse
def test_describe_response_all_blocks_optional() -> None:
payload = AppDescribeResponse().model_dump(mode="json", exclude_none=False)
assert payload == {"info": None, "parameters": None, "input_schema": None}