mirror of
https://github.com/aljazceru/mcp-python-sdk.git
synced 2025-12-19 14:54:24 +01:00
fix: Update test to match Pydantic's JSON schema output for model references with defaults
Pydantic now uses allOf to combine model references with default values in JSON schema output.
This commit is contained in:
@@ -316,7 +316,11 @@ def test_complex_function_json_schema():
|
||||
"type": "string",
|
||||
},
|
||||
"my_model_a_with_default": {
|
||||
"$ref": "#/$defs/SomeInputModelA",
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/$defs/SomeInputModelA"
|
||||
}
|
||||
],
|
||||
"default": {},
|
||||
},
|
||||
"an_int_with_default": {
|
||||
|
||||
Reference in New Issue
Block a user