add docstring

This commit is contained in:
Thiago Salvatore
2025-07-17 18:21:40 -03:00
parent b5850e0757
commit 2f8bb91e6b
+6
View File
@@ -314,6 +314,12 @@ def _schema_to_dict(schema: types.Schema) -> dict:
"""
Recursively converts a types.Schema to a pure-python dict
with all enum values written as lower-case strings.
Args:
schema: The schema to convert.
Returns:
The dictionary representation of the schema.
"""
# Dump without json encoding so we still get Enum members
schema_dict = schema.model_dump(exclude_none=True)