Files
windmill/backend/windmill-api/src
centdix 0089ebd4fb chore: handle empty strings in AI resource fields via serde deserializer (#7723)
* fix: handle empty strings in AI resource fields via serde deserializer

Add `empty_string_as_none` deserializer that converts empty strings to None
during deserialization. Applied to base_url, api_key, region, and AWS
credential fields in AIStandardResource and ProviderResource.

This fixes the "relative URL without a base" error when creating Anthropic
resources with empty base_url fields.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* nit

* nit

* nit

* cleaning

* cleaning

* cleaning

* cleaning

* fix: apply empty_string_as_none deserializer to api_key field

Consistent with other fields in ProviderResource, empty strings are now
deserialized as None for the api_key field.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-29 11:43:02 +00:00
..
2025-06-02 22:12:33 +02:00
2026-01-24 19:37:25 +00:00
2025-12-11 13:34:17 +00:00
2025-06-02 22:12:33 +02:00
2025-11-18 23:03:35 +00:00
2025-10-16 09:19:44 +00:00
2025-10-16 09:19:44 +00:00
2025-11-18 23:03:35 +00:00
2026-01-24 19:37:25 +00:00
2026-01-11 09:30:07 +00:00
2025-06-02 22:12:33 +02:00
nit
2025-12-15 20:35:51 +00:00
2025-06-02 22:12:33 +02:00
2025-03-13 09:31:38 +01:00
2024-04-04 04:16:53 +02:00
2026-01-20 21:58:41 +01:00
2025-12-01 15:16:22 +01:00
2026-01-09 07:03:29 +00:00
2025-06-02 22:12:33 +02:00
2025-10-17 14:05:17 +00:00
2026-01-24 19:37:25 +00:00
2025-09-04 22:05:22 +00:00
2025-06-02 22:12:33 +02:00
2025-06-02 22:12:33 +02:00
2026-01-21 11:42:25 +00:00
2025-06-02 22:12:33 +02:00
2025-06-02 22:12:33 +02:00
2025-06-02 22:12:33 +02:00
nit
2025-09-11 21:57:56 +00:00
2025-09-17 12:15:33 +00:00
2025-09-02 14:34:46 +00:00
2025-06-02 22:12:33 +02:00