diff --git a/crates/bitwarden/src/client/client_settings.rs b/crates/bitwarden/src/client/client_settings.rs index a2aed76f1..74a8080a1 100644 --- a/crates/bitwarden/src/client/client_settings.rs +++ b/crates/bitwarden/src/client/client_settings.rs @@ -21,7 +21,7 @@ use serde::{Deserialize, Serialize}; /// /// Targets `localhost:8080` for debug builds. #[derive(Serialize, Deserialize, Debug, JsonSchema)] -#[serde(rename_all = "camelCase", deny_unknown_fields)] +#[serde(default, rename_all = "camelCase", deny_unknown_fields)] #[cfg_attr(feature = "mobile", derive(uniffi::Record))] pub struct ClientSettings { /// The identity url of the targeted Bitwarden instance. Defaults to `https://identity.bitwarden.com` diff --git a/languages/csharp/BitwardenSdk.cs b/languages/csharp/BitwardenSdk.cs index 286be75d5..388b7977f 100644 --- a/languages/csharp/BitwardenSdk.cs +++ b/languages/csharp/BitwardenSdk.cs @@ -1,6 +1,6 @@ using System.Runtime.InteropServices; -namespace Bit.Sdk +namespace Bitwarden.Sdk { internal class BitwardenSdk : IDisposable { diff --git a/languages/csharp/Program.cs b/languages/csharp/Program.cs index 359454e32..d2e047bfb 100644 --- a/languages/csharp/Program.cs +++ b/languages/csharp/Program.cs @@ -1,4 +1,4 @@ -using Bit.Sdk; +using Bitwarden.Sdk; var sdk = new BitwardenSdk(); sdk.PasswordLogin("test@bitwarden.com", "asdfasdf"); diff --git a/languages/csharp/bitwardenSdk.csproj b/languages/csharp/bitwardenSdk.csproj index 10e89212e..315bdca9f 100644 --- a/languages/csharp/bitwardenSdk.csproj +++ b/languages/csharp/bitwardenSdk.csproj @@ -5,13 +5,14 @@ net6.0 enable enable + Bitwarden.Sdk - + - + diff --git a/support/scripts/schemas.ts b/support/scripts/schemas.ts index f5d5bce4e..e08661017 100644 --- a/support/scripts/schemas.ts +++ b/support/scripts/schemas.ts @@ -56,7 +56,8 @@ async function main() { inputData, lang: "csharp", rendererOptions: { - namespace: "Bit.Sdk", + namespace: "Bitwarden.Sdk", + framework: "SystemTextJson", "csharp-version": "6", }, });