Skip to content
This repository was archived by the owner on Jun 5, 2025. It is now read-only.
This repository was archived by the owner on Jun 5, 2025. It is now read-only.

Providers are allowed to be "" empty strings #1393

@lukehinds

Description

@lukehinds

Describe the issue

Providers are str for validation by Pydantic, but this still allows "" empty strings, which results in the server being unable to restart

Error: 1 validation error for ProviderEndpoint
name
  String should have at least 1 character [type=string_too_short, input_value='', input_type=str]
    For further information visit https://errors.pydantic.dev/2.10/v/string_too_short

Steps to Reproduce

create an empty provider name and submit, empty to restart the server

Operating System

Other

IDE and Version

n/a

Extension and Version

n/a

Provider

Anthropic

Model

n/a

Codegate version

n/a

Logs

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions