test_dereference_refs_nested_mixed_refs() — langchain Function Reference
Architecture documentation for the test_dereference_refs_nested_mixed_refs() function in test_json_schema.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 17cc03d4_4f47_ad0f_fe54_4ce2115bd6fa["test_dereference_refs_nested_mixed_refs()"] 5d9c8eae_7a4a_0ffa_fa7c_a89825bcf1fa["test_json_schema.py"] 17cc03d4_4f47_ad0f_fe54_4ce2115bd6fa -->|defined in| 5d9c8eae_7a4a_0ffa_fa7c_a89825bcf1fa style 17cc03d4_4f47_ad0f_fe54_4ce2115bd6fa fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/tests/unit_tests/utils/test_json_schema.py lines 700–729
def test_dereference_refs_nested_mixed_refs() -> None:
"""Test nested objects with mixed $ref properties."""
schema = {
"type": "object",
"properties": {
"outer": {
"type": "object",
"properties": {
"inner": {"$ref": "#/$defs/Base", "title": "Custom Title"}
},
}
},
"$defs": {"Base": {"type": "string", "minLength": 1}},
}
expected = {
"type": "object",
"properties": {
"outer": {
"type": "object",
"properties": {
"inner": {"type": "string", "minLength": 1, "title": "Custom Title"}
},
}
},
"$defs": {"Base": {"type": "string", "minLength": 1}},
}
actual = dereference_refs(schema)
assert actual == expected
Domain
Subdomains
Source
Frequently Asked Questions
What does test_dereference_refs_nested_mixed_refs() do?
test_dereference_refs_nested_mixed_refs() is a function in the langchain codebase, defined in libs/core/tests/unit_tests/utils/test_json_schema.py.
Where is test_dereference_refs_nested_mixed_refs() defined?
test_dereference_refs_nested_mixed_refs() is defined in libs/core/tests/unit_tests/utils/test_json_schema.py at line 700.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free