mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +00:00
test_openapi: Provide missing defs_mapping argument.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
(cherry picked from commit bb699f7ee3
)
This commit is contained in:
committed by
Tim Abbott
parent
cf034cf19f
commit
b5a1a9af25
@@ -465,7 +465,7 @@ do not match the types declared in the implementation of {function.__name__}.\n"
|
||||
# https://docs.pydantic.dev/latest/api/json_schema/#pydantic.json_schema.GenerateJsonSchema.json_schema
|
||||
actual_param_schema = actual_param_schema["contentSchema"]
|
||||
elif "contentMediaType" in actual_param_schema:
|
||||
function_schema_type = schema_type(actual_param_schema)
|
||||
function_schema_type = schema_type(actual_param_schema, defs_mapping)
|
||||
# We do not specify that the content type of int or bool
|
||||
# parameters should be JSON encoded, while our code does expect
|
||||
# that. In this case, we exempt this parameter from the content
|
||||
|
Reference in New Issue
Block a user