You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
func_to_form_spec copies non-JSON-serializable defaults (Enum, date, object) into the schema #15
func_to_form_spec (via the function-to-schema path) copies a parameter's raw Python default into the JSON Schema default. For an Enum member, a datetime.date, or any arbitrary object, the resulting spec is not JSON-serializable. In uf this makes /api/functions/<name>/spec return 500 {"error": "Object of type Color is not JSON serializable"}.
Suggested: map defaults through a JSON-coercion step (Enum → .value plus enum list; date/datetime → ISO string; otherwise drop the default rather than emit something unserializable). Until i2mint/uf#6, uf users on runners without dill silently got uf's basic fallback, so this rarely surfaced through uf.
Activity
fix: review findings for #15 (keep dropped-default params optional, F…