fix issue with custom_custom_serializer

This commit is contained in:
Alex O'Connell
2024-08-11 21:19:45 -04:00
parent 984954d317
commit d9ff5026e8

View File

@@ -73,6 +73,13 @@ def custom_custom_serializer(value):
return { "type": "integer" }
except Exception:
pass
# this is throwing exceptions. I thought vol should handle this already
if isinstance(value, vol.In):
if isinstance(value.container, dict):
return { "enum": list(value.container.keys()) }
else:
return { "enum": list(value.container) }
if isinstance(value, list):
result = {}