• Will Chen's avatar
    Allow passthrough for provider schemas (#1487) · e318ec25
    Will Chen 提交于
    Fixes #1472 
    
    <!-- CURSOR_SUMMARY -->
    > [!NOTE]
    > Switches `ProviderSettingSchema` union to `.passthrough()` variants to
    accept extra fields and avoid overlapping schema conflicts.
    > 
    > - **Schemas**:
    > - **`src/lib/schemas.ts`**: Update `ProviderSettingSchema` to use
    `.passthrough()` on `AzureProviderSettingSchema`,
    `VertexProviderSettingSchema`, and `RegularProviderSettingSchema` so
    unknown fields are preserved and overlapping required fields don’t cause
    mis-matches.
    > 
    > <sup>Written by [Cursor
    Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
    7afa4b83d713b9eb433d4cce28c7fee73cd7545b. This will update automatically
    on new commits. Configure
    [here](https://cursor.com/dashboard?tab=bugbot).</sup>
    <!-- /CURSOR_SUMMARY -->
    e318ec25
schemas.ts 9.8 KB