1
0
mirror of https://github.com/bitwarden/server synced 2026-01-10 12:33:49 +00:00

Add #nullable disable to platform code (#6057)

This commit is contained in:
Justin Baur
2025-07-08 10:25:59 -04:00
committed by GitHub
parent 7fb7d6fa56
commit fa0c9cb387
291 changed files with 1158 additions and 296 deletions

View File

@@ -1,4 +1,7 @@
using Bit.Core.Entities;
// FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using Bit.Core.Entities;
using Bit.Core.Enums;
using Bit.Core.Models.Data.Organizations.OrganizationSponsorships;

View File

@@ -1,4 +1,7 @@
using Bit.Core.Models.Data.Organizations.OrganizationSponsorships;
// FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using Bit.Core.Models.Data.Organizations.OrganizationSponsorships;
namespace Bit.Core.Models.Api.Request.OrganizationSponsorships;

View File

@@ -1,4 +1,7 @@
using System.ComponentModel.DataAnnotations;
// FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using System.ComponentModel.DataAnnotations;
namespace Bit.Core.Models.Api;

View File

@@ -1,4 +1,7 @@
using System.ComponentModel.DataAnnotations;
// FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using System.ComponentModel.DataAnnotations;
using Bit.Core.Enums;
namespace Bit.Core.Models.Api;

View File

@@ -1,4 +1,7 @@
using System.ComponentModel.DataAnnotations;
// FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using System.ComponentModel.DataAnnotations;
namespace Bit.Core.Models.Api;

View File

@@ -1,4 +1,7 @@
using System.Text.Json.Serialization;
// FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using System.Text.Json.Serialization;
namespace Bit.Core.Models.Api.Response.Duo;

View File

@@ -1,4 +1,7 @@
using Microsoft.AspNetCore.Mvc.ModelBinding;
// FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using Microsoft.AspNetCore.Mvc.ModelBinding;
namespace Bit.Core.Models.Api;

View File

@@ -1,4 +1,7 @@
using Bit.Core.Enums;
// FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using Bit.Core.Enums;
using Bit.Core.Models.Data.Organizations.OrganizationSponsorships;
namespace Bit.Core.Models.Api.Response.OrganizationSponsorships;

View File

@@ -1,4 +1,7 @@
using Bit.Core.Models.Data.Organizations.OrganizationSponsorships;
// FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using Bit.Core.Models.Data.Organizations.OrganizationSponsorships;
namespace Bit.Core.Models.Api.Response.OrganizationSponsorships;

View File

@@ -1,4 +1,7 @@
using Bit.Core.AdminConsole.Entities;
// FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using Bit.Core.AdminConsole.Entities;
using Bit.Core.Exceptions;
using Stripe;
using Plan = Bit.Core.Models.StaticStore.Plan;

View File

@@ -1,4 +1,7 @@
using Bit.Core.Entities;
// FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using Bit.Core.Entities;
using Bit.Core.Enums;
namespace Bit.Core.Models.Business;

View File

@@ -1,4 +1,7 @@
using Bit.Core.Billing.Enums;
// FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using Bit.Core.Billing.Enums;
namespace Bit.Core.Models.Business;

View File

@@ -1,4 +1,7 @@
using Stripe;
// FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using Stripe;
namespace Bit.Core.Models.Business;

View File

@@ -1,4 +1,7 @@
using Bit.Core.Billing.Enums;
// FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using Bit.Core.Billing.Enums;
using Stripe;
namespace Bit.Core.Models.Business;

View File

@@ -1,4 +1,7 @@
namespace Bit.Core.Models.Business;
// FIXME: Update this file to be null safe and then delete the line below
#nullable disable
namespace Bit.Core.Models.Business;
public class TaxInfo
{

View File

@@ -1,4 +1,7 @@
using System.Text.Json.Serialization;
// FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using System.Text.Json.Serialization;
using Bit.Core.Entities;
using Bit.Core.Enums;
using Bit.Core.Tokens;

View File

@@ -1,4 +1,7 @@
using System.Reflection;
// FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using System.Reflection;
using System.Security.Claims;
using System.Security.Cryptography;
using System.Security.Cryptography.X509Certificates;

View File

@@ -1,4 +1,7 @@
namespace Bit.Core.Models.Data;
// FIXME: Update this file to be null safe and then delete the line below
#nullable disable
namespace Bit.Core.Models.Data;
public class CollectionAccessDetails
{

View File

@@ -1,4 +1,7 @@
using Azure;
// FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using Azure;
using Azure.Data.Tables;
namespace Bit.Core.Models.Data;

View File

@@ -1,4 +1,7 @@
using Bit.Core.Entities;
// FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using Bit.Core.Entities;
using Bit.Core.Enums;
using Bit.Core.Models.OrganizationConnectionConfigs;

View File

@@ -1,4 +1,7 @@
namespace Bit.Core.Models.Data.Organizations;
// FIXME: Update this file to be null safe and then delete the line below
#nullable disable
namespace Bit.Core.Models.Data.Organizations;
public class OrganizationDomainSsoDetailsData
{

View File

@@ -1,4 +1,7 @@
using Bit.Core.Entities;
// FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using Bit.Core.Entities;
using Bit.Core.Enums;
namespace Bit.Core.Models.Data.Organizations.OrganizationSponsorships;

View File

@@ -1,4 +1,7 @@
namespace Bit.Core.Models.Data.Organizations.OrganizationSponsorships;
// FIXME: Update this file to be null safe and then delete the line below
#nullable disable
namespace Bit.Core.Models.Data.Organizations.OrganizationSponsorships;
public class OrganizationSponsorshipSyncData
{

View File

@@ -1,4 +1,7 @@
namespace Bit.Core.Models.Data.Organizations;
// FIXME: Update this file to be null safe and then delete the line below
#nullable disable
namespace Bit.Core.Models.Data.Organizations;
public class VerifiedOrganizationDomainSsoDetail
{

View File

@@ -1,4 +1,7 @@
namespace Bit.Core.Models.Data;
// FIXME: Update this file to be null safe and then delete the line below
#nullable disable
namespace Bit.Core.Models.Data;
public class PageOptions
{

View File

@@ -1,4 +1,7 @@
namespace Bit.Core.Models.Data;
// FIXME: Update this file to be null safe and then delete the line below
#nullable disable
namespace Bit.Core.Models.Data;
public class PagedResult<T>
{

View File

@@ -1,4 +1,7 @@
namespace Bit.Core.Models;
// FIXME: Update this file to be null safe and then delete the line below
#nullable disable
namespace Bit.Core.Models;
public interface IExternal
{

View File

@@ -1,4 +1,7 @@
namespace Bit.Core.Models.Mail;
// FIXME: Update this file to be null safe and then delete the line below
#nullable disable
namespace Bit.Core.Models.Mail;
public class AdminResetPasswordViewModel : BaseMailModel
{

View File

@@ -1,4 +1,7 @@
namespace Bit.Core.Models.Mail;
// FIXME: Update this file to be null safe and then delete the line below
#nullable disable
namespace Bit.Core.Models.Mail;
public class BaseMailModel
{

View File

@@ -1,4 +1,7 @@
namespace Bit.Core.Models.Mail;
// FIXME: Update this file to be null safe and then delete the line below
#nullable disable
namespace Bit.Core.Models.Mail;
public class BaseTitleContactUsMailModel : BaseMailModel
{

View File

@@ -1,4 +1,7 @@
namespace Bit.Core.Models.Mail;
// FIXME: Update this file to be null safe and then delete the line below
#nullable disable
namespace Bit.Core.Models.Mail;
public class ChangeEmailExistsViewModel : BaseMailModel
{

View File

@@ -1,4 +1,7 @@
namespace Bit.Core.Models.Mail;
// FIXME: Update this file to be null safe and then delete the line below
#nullable disable
namespace Bit.Core.Models.Mail;
public class ClaimedDomainUserNotificationViewModel : BaseTitleContactUsMailModel
{

View File

@@ -1,4 +1,7 @@
namespace Bit.Core.Models.Mail.FamiliesForEnterprise;
// FIXME: Update this file to be null safe and then delete the line below
#nullable disable
namespace Bit.Core.Models.Mail.FamiliesForEnterprise;
public class FamiliesForEnterpriseOfferViewModel : BaseMailModel
{

View File

@@ -1,4 +1,7 @@
namespace Bit.Core.Models.Mail.FamiliesForEnterprise;
// FIXME: Update this file to be null safe and then delete the line below
#nullable disable
namespace Bit.Core.Models.Mail.FamiliesForEnterprise;
public class FamiliesForEnterpriseRemoveOfferViewModel : BaseMailModel
{

View File

@@ -1,4 +1,7 @@
namespace Bit.Core.Models.Mail;
// FIXME: Update this file to be null safe and then delete the line below
#nullable disable
namespace Bit.Core.Models.Mail;
public class InvoiceUpcomingViewModel : BaseMailModel
{

View File

@@ -1,4 +1,7 @@
namespace Bit.Core.Models.Mail;
// FIXME: Update this file to be null safe and then delete the line below
#nullable disable
namespace Bit.Core.Models.Mail;
public class LicenseExpiredViewModel : BaseMailModel
{

View File

@@ -1,4 +1,7 @@
namespace Bit.Core.Models.Mail;
// FIXME: Update this file to be null safe and then delete the line below
#nullable disable
namespace Bit.Core.Models.Mail;
public class MailMessage
{

View File

@@ -1,4 +1,7 @@
using System.Text.Json.Serialization;
// FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using System.Text.Json.Serialization;
using Bit.Core.Utilities;
namespace Bit.Core.Models.Mail;

View File

@@ -1,4 +1,7 @@
namespace Bit.Core.Models.Mail;
// FIXME: Update this file to be null safe and then delete the line below
#nullable disable
namespace Bit.Core.Models.Mail;
public class NewDeviceLoggedInModel : BaseMailModel
{

View File

@@ -1,4 +1,7 @@
namespace Bit.Core.Models.Mail;
// FIXME: Update this file to be null safe and then delete the line below
#nullable disable
namespace Bit.Core.Models.Mail;
public class OrganizationDomainUnverifiedViewModel
{

View File

@@ -1,4 +1,7 @@
using Bit.Core.Models.Mail;
// FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using Bit.Core.Models.Mail;
namespace Bit.Core.Auth.Models.Mail;

View File

@@ -1,4 +1,7 @@
using Bit.Core.AdminConsole.Entities;
// FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using Bit.Core.AdminConsole.Entities;
using Bit.Core.Auth.Models.Business;
using Bit.Core.Billing.Enums;
using Bit.Core.Entities;

View File

@@ -1,4 +1,7 @@
namespace Bit.Core.Models.Mail;
// FIXME: Update this file to be null safe and then delete the line below
#nullable disable
namespace Bit.Core.Models.Mail;
public class OrganizationSeatsAutoscaledViewModel : BaseMailModel
{

View File

@@ -1,4 +1,7 @@
namespace Bit.Core.Models.Mail;
// FIXME: Update this file to be null safe and then delete the line below
#nullable disable
namespace Bit.Core.Models.Mail;
public class OrganizationSeatsMaxReachedViewModel : BaseMailModel
{

View File

@@ -1,4 +1,7 @@
namespace Bit.Core.Models.Mail;
// FIXME: Update this file to be null safe and then delete the line below
#nullable disable
namespace Bit.Core.Models.Mail;
public class OrganizationServiceAccountsMaxReachedViewModel
{

View File

@@ -1,4 +1,7 @@
namespace Bit.Core.Models.Mail;
// FIXME: Update this file to be null safe and then delete the line below
#nullable disable
namespace Bit.Core.Models.Mail;
public class OrganizationUserAcceptedViewModel : BaseMailModel
{

View File

@@ -1,4 +1,7 @@
namespace Bit.Core.Models.Mail;
// FIXME: Update this file to be null safe and then delete the line below
#nullable disable
namespace Bit.Core.Models.Mail;
public class OrganizationUserConfirmedViewModel : BaseTitleContactUsMailModel
{

View File

@@ -1,4 +1,7 @@
using System.Net;
// FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using System.Net;
using Bit.Core.Auth.Models.Business;
using Bit.Core.Entities;
using Bit.Core.Settings;

View File

@@ -1,4 +1,7 @@
namespace Bit.Core.Models.Mail;
// FIXME: Update this file to be null safe and then delete the line below
#nullable disable
namespace Bit.Core.Models.Mail;
public class OrganizationUserRemovedForPolicySingleOrgViewModel : BaseMailModel
{

View File

@@ -1,4 +1,7 @@
namespace Bit.Core.Models.Mail;
// FIXME: Update this file to be null safe and then delete the line below
#nullable disable
namespace Bit.Core.Models.Mail;
public class OrganizationUserRemovedForPolicyTwoStepViewModel : BaseMailModel
{

View File

@@ -1,4 +1,7 @@
namespace Bit.Core.Models.Mail;
// FIXME: Update this file to be null safe and then delete the line below
#nullable disable
namespace Bit.Core.Models.Mail;
public class OrganizationUserRevokedForPolicySingleOrgViewModel : BaseMailModel
{

View File

@@ -1,4 +1,7 @@
namespace Bit.Core.Models.Mail;
// FIXME: Update this file to be null safe and then delete the line below
#nullable disable
namespace Bit.Core.Models.Mail;
public class OrganizationUserRevokedForPolicyTwoFactorViewModel : BaseMailModel
{

View File

@@ -1,4 +1,7 @@
namespace Bit.Core.Models.Mail.Provider;
// FIXME: Update this file to be null safe and then delete the line below
#nullable disable
namespace Bit.Core.Models.Mail.Provider;
public class ProviderInitiateDeleteModel : BaseMailModel
{

View File

@@ -1,4 +1,7 @@
namespace Bit.Core.Models.Mail.Provider;
// FIXME: Update this file to be null safe and then delete the line below
#nullable disable
namespace Bit.Core.Models.Mail.Provider;
public class ProviderSetupInviteViewModel : BaseMailModel
{

View File

@@ -1,4 +1,7 @@
namespace Bit.Core.Models.Mail.Provider;
// FIXME: Update this file to be null safe and then delete the line below
#nullable disable
namespace Bit.Core.Models.Mail.Provider;
public class ProviderUpdatePaymentMethodViewModel : BaseMailModel
{

View File

@@ -1,4 +1,7 @@
namespace Bit.Core.Models.Mail.Provider;
// FIXME: Update this file to be null safe and then delete the line below
#nullable disable
namespace Bit.Core.Models.Mail.Provider;
public class ProviderUserConfirmedViewModel : BaseMailModel
{

View File

@@ -1,4 +1,7 @@
namespace Bit.Core.Models.Mail.Provider;
// FIXME: Update this file to be null safe and then delete the line below
#nullable disable
namespace Bit.Core.Models.Mail.Provider;
public class ProviderUserInvitedViewModel : BaseMailModel
{

View File

@@ -1,4 +1,7 @@
namespace Bit.Core.Models.Mail.Provider;
// FIXME: Update this file to be null safe and then delete the line below
#nullable disable
namespace Bit.Core.Models.Mail.Provider;
public class ProviderUserRemovedViewModel : BaseMailModel
{

View File

@@ -1,4 +1,7 @@
namespace Bit.Core.Models.Mail;
// FIXME: Update this file to be null safe and then delete the line below
#nullable disable
namespace Bit.Core.Models.Mail;
public class SecurityTaskNotificationViewModel : BaseMailModel
{

View File

@@ -1,4 +1,7 @@
namespace Bit.Core.Models.Mail;
// FIXME: Update this file to be null safe and then delete the line below
#nullable disable
namespace Bit.Core.Models.Mail;
/// <summary>
/// This view model is used to set-up email two factor authentication, to log in with email two factor authentication,

View File

@@ -1,4 +1,7 @@
namespace Bit.Core.Models.Mail;
// FIXME: Update this file to be null safe and then delete the line below
#nullable disable
namespace Bit.Core.Models.Mail;
public class UpdateTempPasswordViewModel
{

View File

@@ -1,4 +1,7 @@
namespace Bit.Core.Models.Mail;
// FIXME: Update this file to be null safe and then delete the line below
#nullable disable
namespace Bit.Core.Models.Mail;
public class UserVerificationEmailTokenViewModel : BaseMailModel
{

View File

@@ -1,4 +1,7 @@
namespace Bit.Core.Models.OrganizationConnectionConfigs;
// FIXME: Update this file to be null safe and then delete the line below
#nullable disable
namespace Bit.Core.Models.OrganizationConnectionConfigs;
public class BillingSyncConfig : IConnectionConfig
{

View File

@@ -1,4 +1,7 @@
namespace Bit.Core.Models.BitStripe;
// FIXME: Update this file to be null safe and then delete the line below
#nullable disable
namespace Bit.Core.Models.BitStripe;
// Stripe's SubscriptionListOptions model has a complex input for date filters.
// It expects a dictionary, and has lots of validation rules around what can have a value and what can't.