From 4fb43a34ec3d5f509f0dc61b764412d79b387fd9 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Thu, 14 Nov 2019 17:17:33 +0100 Subject: [PATCH] Fix required attributes. --- .../CodeGeneration/Program.cs | 1 + .../Management/Generated.cs | 332 +++++++++--------- .../Squidex.ClientLibrary.csproj | 2 +- 3 files changed, 167 insertions(+), 168 deletions(-) diff --git a/csharp/Squidex.ClientLibrary/CodeGeneration/Program.cs b/csharp/Squidex.ClientLibrary/CodeGeneration/Program.cs index 837516e8..88e99cdf 100644 --- a/csharp/Squidex.ClientLibrary/CodeGeneration/Program.cs +++ b/csharp/Squidex.ClientLibrary/CodeGeneration/Program.cs @@ -20,6 +20,7 @@ public static void Main() var generatorSettings = new CSharpClientGeneratorSettings(); generatorSettings.CSharpGeneratorSettings.Namespace = "Squidex.ClientLibrary.Management"; + generatorSettings.CSharpGeneratorSettings.RequiredPropertiesMustBeDefined = false; generatorSettings.GenerateClientInterfaces = true; generatorSettings.ExceptionClass = "SquidexManagementException"; generatorSettings.OperationNameGenerator = new TagNameGenerator(); diff --git a/csharp/Squidex.ClientLibrary/Squidex.ClientLibrary/Management/Generated.cs b/csharp/Squidex.ClientLibrary/Squidex.ClientLibrary/Management/Generated.cs index 95257f37..68f64816 100644 --- a/csharp/Squidex.ClientLibrary/Squidex.ClientLibrary/Management/Generated.cs +++ b/csharp/Squidex.ClientLibrary/Squidex.ClientLibrary/Management/Generated.cs @@ -13945,7 +13945,7 @@ public partial class UsersDto : Resource public long Total { get; set; } /// The users. - [Newtonsoft.Json.JsonProperty("items", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("items", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] public System.Collections.Generic.ICollection Items { get; set; } = new System.Collections.ObjectModel.Collection(); @@ -13956,26 +13956,26 @@ public partial class UsersDto : Resource public partial class UserDto : Resource { /// The id of the user. - [Newtonsoft.Json.JsonProperty("id", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("id", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] public string Id { get; set; } /// The email of the user. Unique value. - [Newtonsoft.Json.JsonProperty("email", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("email", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] public string Email { get; set; } /// The display name (usually first name and last name) of the user. - [Newtonsoft.Json.JsonProperty("displayName", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("displayName", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] public string DisplayName { get; set; } /// Determines if the user is locked. - [Newtonsoft.Json.JsonProperty("isLocked", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("isLocked", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public bool IsLocked { get; set; } /// Additional permissions for the user. - [Newtonsoft.Json.JsonProperty("permissions", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("permissions", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] public System.Collections.Generic.ICollection Permissions { get; set; } = new System.Collections.ObjectModel.Collection(); @@ -13986,7 +13986,7 @@ public partial class UserDto : Resource public abstract partial class Resource { /// The links. - [Newtonsoft.Json.JsonProperty("_links", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("_links", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] public System.Collections.Generic.IDictionary _links { get; set; } = new System.Collections.Generic.Dictionary(); @@ -13997,12 +13997,12 @@ public abstract partial class Resource public partial class ResourceLink { /// The link url. - [Newtonsoft.Json.JsonProperty("href", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("href", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] public string Href { get; set; } /// The link method. - [Newtonsoft.Json.JsonProperty("method", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("method", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] public string Method { get; set; } @@ -14017,22 +14017,22 @@ public partial class ResourceLink public partial class CreateUserDto { /// The email of the user. Unique value. - [Newtonsoft.Json.JsonProperty("email", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("email", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] public string Email { get; set; } /// The display name (usually first name and last name) of the user. - [Newtonsoft.Json.JsonProperty("displayName", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("displayName", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] public string DisplayName { get; set; } /// The password of the user. - [Newtonsoft.Json.JsonProperty("password", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("password", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] public string Password { get; set; } /// Additional permissions for the user. - [Newtonsoft.Json.JsonProperty("permissions", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("permissions", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] public System.Collections.Generic.ICollection Permissions { get; set; } = new System.Collections.ObjectModel.Collection(); @@ -14043,12 +14043,12 @@ public partial class CreateUserDto public partial class UpdateUserDto { /// The email of the user. Unique value. - [Newtonsoft.Json.JsonProperty("email", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("email", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] public string Email { get; set; } /// The display name (usually first name and last name) of the user. - [Newtonsoft.Json.JsonProperty("displayName", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("displayName", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] public string DisplayName { get; set; } @@ -14057,7 +14057,7 @@ public partial class UpdateUserDto public string Password { get; set; } /// Additional permissions for the user. - [Newtonsoft.Json.JsonProperty("permissions", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("permissions", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] public System.Collections.Generic.ICollection Permissions { get; set; } = new System.Collections.ObjectModel.Collection(); @@ -14174,12 +14174,12 @@ public partial class ContentsDto : Resource public long Total { get; set; } /// The content items. - [Newtonsoft.Json.JsonProperty("items", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("items", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] public System.Collections.Generic.ICollection Items { get; set; } = new System.Collections.ObjectModel.Collection(); /// The possible statuses. - [Newtonsoft.Json.JsonProperty("statuses", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("statuses", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] public System.Collections.Generic.ICollection Statuses { get; set; } = new System.Collections.ObjectModel.Collection(); @@ -14194,17 +14194,17 @@ public partial class ContentDto : Resource public System.Guid Id { get; set; } /// The user that has created the content item. - [Newtonsoft.Json.JsonProperty("createdBy", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("createdBy", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)] public string CreatedBy { get; set; } /// The user that has updated the content item. - [Newtonsoft.Json.JsonProperty("lastModifiedBy", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("lastModifiedBy", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)] public string LastModifiedBy { get; set; } /// The data of the content item. - [Newtonsoft.Json.JsonProperty("data", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("data", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] public object Data { get; set; } @@ -14308,7 +14308,7 @@ public partial class ScheduleJobDto public System.DateTimeOffset DueTime { get; set; } /// The user who schedule the content. - [Newtonsoft.Json.JsonProperty("scheduledBy", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("scheduledBy", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)] public string ScheduledBy { get; set; } @@ -14323,7 +14323,7 @@ public partial class FieldDto : Resource public long FieldId { get; set; } /// The name of the field. Must be unique within the schema. - [Newtonsoft.Json.JsonProperty("name", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("name", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] [System.ComponentModel.DataAnnotations.RegularExpression(@"^[a-z0-9]+(\-[a-z0-9]+)*$")] public string Name { get; set; } @@ -14341,12 +14341,12 @@ public partial class FieldDto : Resource public bool IsDisabled { get; set; } /// Defines the partitioning of the field. - [Newtonsoft.Json.JsonProperty("partitioning", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("partitioning", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] public string Partitioning { get; set; } /// The field properties. - [Newtonsoft.Json.JsonProperty("properties", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("properties", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] public FieldPropertiesDto Properties { get; set; } @@ -14396,9 +14396,8 @@ public abstract partial class FieldPropertiesDto public string EditorUrl { get; set; } /// Tags for automation processes. - [Newtonsoft.Json.JsonProperty("tags", Required = Newtonsoft.Json.Required.Always)] - [System.ComponentModel.DataAnnotations.Required] - public System.Collections.Generic.ICollection Tags { get; set; } = new System.Collections.ObjectModel.Collection(); + [Newtonsoft.Json.JsonProperty("tags", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.Collections.Generic.ICollection Tags { get; set; } } @@ -14821,7 +14820,7 @@ public partial class NestedFieldDto : Resource public long FieldId { get; set; } /// The name of the field. Must be unique within the schema. - [Newtonsoft.Json.JsonProperty("name", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("name", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] [System.ComponentModel.DataAnnotations.RegularExpression(@"^[a-z0-9]+(\-[a-z0-9]+)*$")] public string Name { get; set; } @@ -14839,7 +14838,7 @@ public partial class NestedFieldDto : Resource public bool IsDisabled { get; set; } /// The field properties. - [Newtonsoft.Json.JsonProperty("properties", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("properties", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] public FieldPropertiesDto Properties { get; set; } @@ -14850,12 +14849,12 @@ public partial class NestedFieldDto : Resource public partial class StatusInfoDto { /// The name of the status. - [Newtonsoft.Json.JsonProperty("status", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("status", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] public string Status { get; set; } /// The color of the status. - [Newtonsoft.Json.JsonProperty("color", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("color", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] public string Color { get; set; } @@ -14866,7 +14865,7 @@ public partial class StatusInfoDto public partial class ChangeStatusDto { /// The new status. - [Newtonsoft.Json.JsonProperty("status", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("status", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] public string Status { get; set; } @@ -14922,12 +14921,12 @@ public enum TranslationResult public partial class TranslateDto { /// The text to translate. - [Newtonsoft.Json.JsonProperty("text", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("text", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] public string Text { get; set; } /// The target language. - [Newtonsoft.Json.JsonProperty("targetLanguage", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("targetLanguage", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)] public string TargetLanguage { get; set; } @@ -15016,27 +15015,27 @@ public partial class StorageUsageDto public partial class SchemaDetailsDto : SchemaDto { /// The scripts. - [Newtonsoft.Json.JsonProperty("scripts", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("scripts", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] public SchemaScriptsDto Scripts { get; set; } = new SchemaScriptsDto(); /// The preview Urls. - [Newtonsoft.Json.JsonProperty("previewUrls", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("previewUrls", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] public System.Collections.Generic.IDictionary PreviewUrls { get; set; } = new System.Collections.Generic.Dictionary(); /// The name of fields that are used in content lists. - [Newtonsoft.Json.JsonProperty("fieldsInLists", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("fieldsInLists", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] public FieldNames FieldsInLists { get; set; } = new FieldNames(); /// The name of fields that are used in content references. - [Newtonsoft.Json.JsonProperty("fieldsInReferences", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("fieldsInReferences", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] public FieldNames FieldsInReferences { get; set; } = new FieldNames(); /// The list of fields. - [Newtonsoft.Json.JsonProperty("fields", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("fields", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] public System.Collections.Generic.ICollection Fields { get; set; } = new System.Collections.ObjectModel.Collection(); @@ -15083,7 +15082,7 @@ public partial class SchemaDto : Resource public System.Guid Id { get; set; } /// The name of the schema. Unique within the app. - [Newtonsoft.Json.JsonProperty("name", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("name", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] [System.ComponentModel.DataAnnotations.RegularExpression(@"^[a-z0-9]+(\-[a-z0-9]+)*$")] public string Name { get; set; } @@ -15093,7 +15092,7 @@ public partial class SchemaDto : Resource public string Category { get; set; } /// The schema properties. - [Newtonsoft.Json.JsonProperty("properties", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("properties", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] public SchemaPropertiesDto Properties { get; set; } = new SchemaPropertiesDto(); @@ -15106,12 +15105,12 @@ public partial class SchemaDto : Resource public bool IsPublished { get; set; } /// The user that has created the schema. - [Newtonsoft.Json.JsonProperty("createdBy", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("createdBy", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)] public string CreatedBy { get; set; } /// The user that has updated the schema. - [Newtonsoft.Json.JsonProperty("lastModifiedBy", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("lastModifiedBy", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)] public string LastModifiedBy { get; set; } @@ -15144,9 +15143,8 @@ public partial class SchemaPropertiesDto public string Hints { get; set; } /// Tags for automation processes. - [Newtonsoft.Json.JsonProperty("tags", Required = Newtonsoft.Json.Required.Always)] - [System.ComponentModel.DataAnnotations.Required] - public System.Collections.Generic.ICollection Tags { get; set; } = new System.Collections.ObjectModel.Collection(); + [Newtonsoft.Json.JsonProperty("tags", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.Collections.Generic.ICollection Tags { get; set; } } @@ -15155,7 +15153,7 @@ public partial class SchemaPropertiesDto public partial class AddFieldDto { /// The name of the field. Must be unique within the schema. - [Newtonsoft.Json.JsonProperty("name", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("name", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] [System.ComponentModel.DataAnnotations.RegularExpression(@"^[a-zA-Z0-9]+(\-[a-zA-Z0-9]+)*$")] public string Name { get; set; } @@ -15165,7 +15163,7 @@ public partial class AddFieldDto public string Partitioning { get; set; } /// The field properties. - [Newtonsoft.Json.JsonProperty("properties", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("properties", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] public FieldPropertiesDto Properties { get; set; } @@ -15190,7 +15188,7 @@ public partial class ConfigureUIFieldsDto public partial class ReorderFieldsDto { /// The field ids in the target order. - [Newtonsoft.Json.JsonProperty("fieldIds", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("fieldIds", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] public System.Collections.Generic.ICollection FieldIds { get; set; } = new System.Collections.ObjectModel.Collection(); @@ -15201,7 +15199,7 @@ public partial class ReorderFieldsDto public partial class UpdateFieldDto { /// The field properties. - [Newtonsoft.Json.JsonProperty("properties", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("properties", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] public FieldPropertiesDto Properties { get; set; } @@ -15222,7 +15220,7 @@ public partial class SchemasDto : Resource public partial class CreateSchemaDto : UpsertSchemaDto { /// The name of the schema. - [Newtonsoft.Json.JsonProperty("name", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("name", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] [System.ComponentModel.DataAnnotations.RegularExpression(@"^[a-z0-9]+(\-[a-z0-9]+)*$")] public string Name { get; set; } @@ -15276,7 +15274,7 @@ public abstract partial class UpsertSchemaDto public partial class UpsertSchemaFieldDto { /// The name of the field. Must be unique within the schema. - [Newtonsoft.Json.JsonProperty("name", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("name", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] [System.ComponentModel.DataAnnotations.RegularExpression(@"^[a-zA-Z0-9]+(\-[a-zA-Z0-9]+)*$")] public string Name { get; set; } @@ -15298,7 +15296,7 @@ public partial class UpsertSchemaFieldDto public string Partitioning { get; set; } /// The field properties. - [Newtonsoft.Json.JsonProperty("properties", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("properties", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] public FieldPropertiesDto Properties { get; set; } @@ -15313,7 +15311,7 @@ public partial class UpsertSchemaFieldDto public partial class UpsertSchemaNestedFieldDto { /// The name of the field. Must be unique within the schema. - [Newtonsoft.Json.JsonProperty("name", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("name", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] [System.ComponentModel.DataAnnotations.RegularExpression(@"^[a-zA-Z0-9]+(\-[a-zA-Z0-9]+)*$")] public string Name { get; set; } @@ -15331,7 +15329,7 @@ public partial class UpsertSchemaNestedFieldDto public bool IsDisabled { get; set; } /// The field properties. - [Newtonsoft.Json.JsonProperty("properties", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("properties", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] public FieldPropertiesDto Properties { get; set; } @@ -15392,12 +15390,12 @@ public partial class ConfigurePreviewUrlsDto : System.Collections.Generic.Dictio public partial class RuleElementDto { /// Describes the action or trigger type. - [Newtonsoft.Json.JsonProperty("description", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("description", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] public string Description { get; set; } /// The label for the action or trigger type. - [Newtonsoft.Json.JsonProperty("display", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("display", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] public string Display { get; set; } @@ -15418,7 +15416,7 @@ public partial class RuleElementDto public string ReadMore { get; set; } /// The properties. - [Newtonsoft.Json.JsonProperty("properties", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("properties", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] public System.Collections.Generic.ICollection Properties { get; set; } = new System.Collections.ObjectModel.Collection(); @@ -15429,18 +15427,18 @@ public partial class RuleElementDto public partial class RuleElementPropertyDto { /// The html editor. - [Newtonsoft.Json.JsonProperty("editor", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("editor", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))] public RuleActionPropertyEditor Editor { get; set; } /// The name of the editor. - [Newtonsoft.Json.JsonProperty("name", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("name", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] public string Name { get; set; } /// The label to use. - [Newtonsoft.Json.JsonProperty("display", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("display", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] public string Display { get; set; } @@ -15489,7 +15487,7 @@ public enum RuleActionPropertyEditor public partial class RulesDto : Resource { /// The rules. - [Newtonsoft.Json.JsonProperty("items", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("items", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] public System.Collections.Generic.ICollection Items { get; set; } = new System.Collections.ObjectModel.Collection(); @@ -15504,12 +15502,12 @@ public partial class RuleDto : Resource public System.Guid Id { get; set; } /// The user that has created the rule. - [Newtonsoft.Json.JsonProperty("createdBy", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("createdBy", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)] public string CreatedBy { get; set; } /// The user that has updated the rule. - [Newtonsoft.Json.JsonProperty("lastModifiedBy", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("lastModifiedBy", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)] public string LastModifiedBy { get; set; } @@ -15534,12 +15532,12 @@ public partial class RuleDto : Resource public string Name { get; set; } /// The trigger properties. - [Newtonsoft.Json.JsonProperty("trigger", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("trigger", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] public RuleTriggerDto Trigger { get; set; } /// The action properties. - [Newtonsoft.Json.JsonProperty("action", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("action", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public RuleAction Action { get; set; } /// The number of completed executions. @@ -15583,7 +15581,7 @@ public partial class AssetChangedRuleTriggerDto : RuleTriggerDto public partial class ContentChangedRuleTriggerDto : RuleTriggerDto { /// The schema settings. - [Newtonsoft.Json.JsonProperty("schemas", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("schemas", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] public System.Collections.Generic.ICollection Schemas { get; set; } = new System.Collections.ObjectModel.Collection(); @@ -15671,12 +15669,12 @@ public System.Collections.Generic.IDictionary AdditionalProperti public partial class CreateRuleDto { /// The trigger properties. - [Newtonsoft.Json.JsonProperty("trigger", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("trigger", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] public RuleTriggerDto Trigger { get; set; } /// The action properties. - [Newtonsoft.Json.JsonProperty("action", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("action", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public RuleAction Action { get; set; } @@ -15704,7 +15702,7 @@ public partial class UpdateRuleDto public partial class RuleEventsDto : Resource { /// The rule events. - [Newtonsoft.Json.JsonProperty("items", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("items", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] public System.Collections.Generic.ICollection Items { get; set; } = new System.Collections.ObjectModel.Collection(); @@ -15727,12 +15725,12 @@ public partial class RuleEventDto : Resource public System.DateTimeOffset Created { get; set; } /// The description. - [Newtonsoft.Json.JsonProperty("description", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("description", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] public string Description { get; set; } /// The name of the event. - [Newtonsoft.Json.JsonProperty("eventName", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("eventName", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] public string EventName { get; set; } @@ -15802,7 +15800,7 @@ public enum RuleJobResult public partial class AppPlansDto { /// The available plans. - [Newtonsoft.Json.JsonProperty("plans", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("plans", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] public System.Collections.Generic.ICollection Plans { get; set; } = new System.Collections.ObjectModel.Collection(); @@ -15825,17 +15823,17 @@ public partial class AppPlansDto public partial class PlanDto { /// The id of the plan. - [Newtonsoft.Json.JsonProperty("id", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("id", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] public string Id { get; set; } /// The name of the plan. - [Newtonsoft.Json.JsonProperty("name", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("name", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] public string Name { get; set; } /// The monthly costs of the plan. - [Newtonsoft.Json.JsonProperty("costs", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("costs", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] public string Costs { get; set; } @@ -15876,7 +15874,7 @@ public partial class PlanChangedDto public partial class ChangePlanDto { /// The new plan id. - [Newtonsoft.Json.JsonProperty("planId", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("planId", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] public string PlanId { get; set; } @@ -15893,7 +15891,7 @@ public partial class ExposedValues : System.Collections.Generic.DictionaryThe latest features. - [Newtonsoft.Json.JsonProperty("features", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("features", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] public System.Collections.Generic.ICollection Features { get; set; } = new System.Collections.ObjectModel.Collection(); @@ -15908,12 +15906,12 @@ public partial class FeaturesDto public partial class FeatureDto { /// The name of the feature. - [Newtonsoft.Json.JsonProperty("name", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("name", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] public string Name { get; set; } /// The description text. - [Newtonsoft.Json.JsonProperty("text", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("text", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] public string Text { get; set; } @@ -15924,12 +15922,12 @@ public partial class FeatureDto public partial class HistoryEventDto { /// The message of the event. - [Newtonsoft.Json.JsonProperty("message", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("message", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] public string Message { get; set; } /// The user who called the action. - [Newtonsoft.Json.JsonProperty("actor", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("actor", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] public string Actor { get; set; } @@ -15978,17 +15976,17 @@ public partial class CommentDto public System.Guid Id { get; set; } /// The time when the comment was created or updated last. - [Newtonsoft.Json.JsonProperty("time", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("time", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] public System.DateTimeOffset Time { get; set; } /// The user who created or updated the comment. - [Newtonsoft.Json.JsonProperty("user", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("user", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)] public string User { get; set; } /// The text of the comment. - [Newtonsoft.Json.JsonProperty("text", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("text", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] public string Text { get; set; } @@ -15999,7 +15997,7 @@ public partial class CommentDto public partial class EntityCreatedDto { /// Id of the created entity. - [Newtonsoft.Json.JsonProperty("id", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("id", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] public string Id { get; set; } @@ -16014,7 +16012,7 @@ public partial class EntityCreatedDto public partial class UpsertCommentDto { /// The comment text. - [Newtonsoft.Json.JsonProperty("text", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("text", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] public string Text { get; set; } @@ -16025,7 +16023,7 @@ public partial class UpsertCommentDto public partial class BackupJobsDto : Resource { /// The backups. - [Newtonsoft.Json.JsonProperty("items", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("items", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] public System.Collections.Generic.ICollection Items { get; set; } = new System.Collections.ObjectModel.Collection(); @@ -16084,12 +16082,12 @@ public enum JobStatus public partial class RestoreJobDto { /// The uri to load from. - [Newtonsoft.Json.JsonProperty("url", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("url", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] public System.Uri Url { get; set; } /// The status log. - [Newtonsoft.Json.JsonProperty("log", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("log", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] public System.Collections.Generic.ICollection Log { get; set; } = new System.Collections.ObjectModel.Collection(); @@ -16118,7 +16116,7 @@ public partial class RestoreRequestDto public string Name { get; set; } /// The url to the restore file. - [Newtonsoft.Json.JsonProperty("url", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("url", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] public System.Uri Url { get; set; } @@ -16133,7 +16131,7 @@ public partial class AssetsDto : Resource public long Total { get; set; } /// The assets. - [Newtonsoft.Json.JsonProperty("items", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("items", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] public System.Collections.Generic.ICollection Items { get; set; } = new System.Collections.ObjectModel.Collection(); @@ -16148,7 +16146,7 @@ public partial class AssetDto : Resource public System.Guid Id { get; set; } /// The file name. - [Newtonsoft.Json.JsonProperty("fileName", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("fileName", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] public string FileName { get; set; } @@ -16157,17 +16155,17 @@ public partial class AssetDto : Resource public string FileHash { get; set; } /// The slug. - [Newtonsoft.Json.JsonProperty("slug", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("slug", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] public string Slug { get; set; } /// The mime type. - [Newtonsoft.Json.JsonProperty("mimeType", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("mimeType", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] public string MimeType { get; set; } /// The file type. - [Newtonsoft.Json.JsonProperty("fileType", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("fileType", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] public string FileType { get; set; } @@ -16196,12 +16194,12 @@ public partial class AssetDto : Resource public int? PixelHeight { get; set; } /// The user that has created the schema. - [Newtonsoft.Json.JsonProperty("createdBy", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("createdBy", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)] public string CreatedBy { get; set; } /// The user that has updated the asset. - [Newtonsoft.Json.JsonProperty("lastModifiedBy", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("lastModifiedBy", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)] public string LastModifiedBy { get; set; } @@ -16256,7 +16254,7 @@ public partial class AnnotateAssetDto public partial class ClientsDto : Resource { /// The clients. - [Newtonsoft.Json.JsonProperty("items", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("items", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] public System.Collections.Generic.ICollection Items { get; set; } = new System.Collections.ObjectModel.Collection(); @@ -16267,17 +16265,17 @@ public partial class ClientsDto : Resource public partial class ClientDto : Resource { /// The client id. - [Newtonsoft.Json.JsonProperty("id", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("id", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] public string Id { get; set; } /// The client secret. - [Newtonsoft.Json.JsonProperty("secret", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("secret", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] public string Secret { get; set; } /// The client name. - [Newtonsoft.Json.JsonProperty("name", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("name", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] public string Name { get; set; } @@ -16292,7 +16290,7 @@ public partial class ClientDto : Resource public partial class CreateClientDto { /// The id of the client. - [Newtonsoft.Json.JsonProperty("id", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("id", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] [System.ComponentModel.DataAnnotations.RegularExpression(@"^[a-z0-9]+(\-[a-z0-9]+)*$")] public string Id { get; set; } @@ -16319,7 +16317,7 @@ public partial class UpdateClientDto public partial class ContributorsDto : Resource { /// The contributors. - [Newtonsoft.Json.JsonProperty("items", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("items", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] public System.Collections.Generic.ICollection Items { get; set; } = new System.Collections.ObjectModel.Collection(); @@ -16338,12 +16336,12 @@ public partial class ContributorsDto : Resource public partial class ContributorDto : Resource { /// The id of the user that contributes to the app. - [Newtonsoft.Json.JsonProperty("contributorId", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("contributorId", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] public string ContributorId { get; set; } /// The display name. - [Newtonsoft.Json.JsonProperty("contributorName", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("contributorName", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] public string ContributorName { get; set; } @@ -16368,7 +16366,7 @@ public partial class ContributorsMetadata public partial class AssignContributorDto { /// The id or email of the user to add to the app. - [Newtonsoft.Json.JsonProperty("contributorId", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("contributorId", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] public string ContributorId { get; set; } @@ -16387,7 +16385,7 @@ public partial class AssignContributorDto public partial class AppLanguagesDto : Resource { /// The languages. - [Newtonsoft.Json.JsonProperty("items", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("items", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] public System.Collections.Generic.ICollection Items { get; set; } = new System.Collections.ObjectModel.Collection(); @@ -16398,17 +16396,17 @@ public partial class AppLanguagesDto : Resource public partial class AppLanguageDto : Resource { /// The iso code of the language. - [Newtonsoft.Json.JsonProperty("iso2Code", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("iso2Code", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] public string Iso2Code { get; set; } /// The english name of the language. - [Newtonsoft.Json.JsonProperty("englishName", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("englishName", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] public string EnglishName { get; set; } /// The fallback languages. - [Newtonsoft.Json.JsonProperty("fallback", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("fallback", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] public System.Collections.Generic.ICollection Fallback { get; set; } = new System.Collections.ObjectModel.Collection(); @@ -16427,7 +16425,7 @@ public partial class AppLanguageDto : Resource public partial class AddLanguageDto { /// The language to add. - [Newtonsoft.Json.JsonProperty("language", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("language", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)] public string Language { get; set; } @@ -16456,7 +16454,7 @@ public partial class UpdateLanguageDto public partial class PatternsDto : Resource { /// The patterns. - [Newtonsoft.Json.JsonProperty("items", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("items", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] public System.Collections.Generic.ICollection Items { get; set; } = new System.Collections.ObjectModel.Collection(); @@ -16471,12 +16469,12 @@ public partial class PatternDto : Resource public System.Guid Id { get; set; } /// The name of the suggestion. - [Newtonsoft.Json.JsonProperty("name", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("name", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] public string Name { get; set; } /// The regex pattern. - [Newtonsoft.Json.JsonProperty("pattern", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("pattern", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] public string Pattern { get; set; } @@ -16491,12 +16489,12 @@ public partial class PatternDto : Resource public partial class UpdatePatternDto { /// The name of the suggestion. - [Newtonsoft.Json.JsonProperty("name", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("name", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] public string Name { get; set; } /// The regex pattern. - [Newtonsoft.Json.JsonProperty("pattern", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("pattern", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] public string Pattern { get; set; } @@ -16511,7 +16509,7 @@ public partial class UpdatePatternDto public partial class RolesDto : Resource { /// The roles. - [Newtonsoft.Json.JsonProperty("items", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("items", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] public System.Collections.Generic.ICollection Items { get; set; } = new System.Collections.ObjectModel.Collection(); @@ -16522,7 +16520,7 @@ public partial class RolesDto : Resource public partial class RoleDto : Resource { /// The role name. - [Newtonsoft.Json.JsonProperty("name", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("name", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] public string Name { get; set; } @@ -16539,7 +16537,7 @@ public partial class RoleDto : Resource public bool IsDefaultRole { get; set; } /// Associated list of permissions. - [Newtonsoft.Json.JsonProperty("permissions", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("permissions", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] public System.Collections.Generic.ICollection Permissions { get; set; } = new System.Collections.ObjectModel.Collection(); @@ -16550,7 +16548,7 @@ public partial class RoleDto : Resource public partial class AddRoleDto { /// The role name. - [Newtonsoft.Json.JsonProperty("name", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("name", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] public string Name { get; set; } @@ -16561,7 +16559,7 @@ public partial class AddRoleDto public partial class UpdateRoleDto { /// Associated list of permissions. - [Newtonsoft.Json.JsonProperty("permissions", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("permissions", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] public System.Collections.Generic.ICollection Permissions { get; set; } = new System.Collections.ObjectModel.Collection(); @@ -16572,7 +16570,7 @@ public partial class UpdateRoleDto public partial class AppDto : Resource { /// The name of the app. - [Newtonsoft.Json.JsonProperty("name", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("name", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] [System.ComponentModel.DataAnnotations.RegularExpression(@"^[a-z0-9]+(\-[a-z0-9]+)*$")] public string Name { get; set; } @@ -16628,7 +16626,7 @@ public partial class AppDto : Resource public partial class CreateAppDto { /// The name of the app. - [Newtonsoft.Json.JsonProperty("name", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("name", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] [System.ComponentModel.DataAnnotations.RegularExpression(@"^[a-z0-9]+(\-[a-z0-9]+)*$")] public string Name { get; set; } @@ -16658,12 +16656,12 @@ public partial class UpdateAppDto public partial class WorkflowsDto : Resource { /// The workflow. - [Newtonsoft.Json.JsonProperty("items", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("items", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] public System.Collections.Generic.ICollection Items { get; set; } = new System.Collections.ObjectModel.Collection(); /// The errros that should be fixed. - [Newtonsoft.Json.JsonProperty("errors", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("errors", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] public System.Collections.Generic.ICollection Errors { get; set; } = new System.Collections.ObjectModel.Collection(); @@ -16682,7 +16680,7 @@ public partial class WorkflowDto : Resource public string Name { get; set; } /// The workflow steps. - [Newtonsoft.Json.JsonProperty("steps", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("steps", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] public System.Collections.Generic.IDictionary Steps { get; set; } = new System.Collections.Generic.Dictionary(); @@ -16701,7 +16699,7 @@ public partial class WorkflowDto : Resource public partial class WorkflowStepDto { /// The transitions. - [Newtonsoft.Json.JsonProperty("transitions", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("transitions", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] public System.Collections.Generic.IDictionary Transitions { get; set; } = new System.Collections.Generic.Dictionary(); @@ -16742,7 +16740,7 @@ public partial class WorkflowTransitionDto public partial class AddWorkflowDto { /// The name of the workflow. - [Newtonsoft.Json.JsonProperty("name", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("name", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] public string Name { get; set; } @@ -16757,7 +16755,7 @@ public partial class UpdateWorkflowDto public string Name { get; set; } /// The workflow steps. - [Newtonsoft.Json.JsonProperty("steps", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("steps", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] public System.Collections.Generic.IDictionary Steps { get; set; } = new System.Collections.Generic.Dictionary(); @@ -16775,7 +16773,7 @@ public partial class UpdateWorkflowDto [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.27.0 (Newtonsoft.Json v9.0.0.0)")] public partial class ErrorDto { - [Newtonsoft.Json.JsonProperty("message", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("message", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] public string Message { get; set; } @@ -16792,7 +16790,7 @@ public partial class ErrorDto public partial class WebhookRuleActionDto : RuleAction { /// The url to the webhook. - [Newtonsoft.Json.JsonProperty("url", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("url", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] public System.Uri Url { get; set; } @@ -16811,17 +16809,17 @@ public partial class WebhookRuleActionDto : RuleAction public partial class TweetRuleActionDto : RuleAction { /// The generated access token. - [Newtonsoft.Json.JsonProperty("accessToken", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("accessToken", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] public string AccessToken { get; set; } /// The generated access secret. - [Newtonsoft.Json.JsonProperty("accessSecret", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("accessSecret", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] public string AccessSecret { get; set; } /// The text that is sent as tweet to twitter. - [Newtonsoft.Json.JsonProperty("text", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("text", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] public string Text { get; set; } @@ -16832,12 +16830,12 @@ public partial class TweetRuleActionDto : RuleAction public partial class SlackRuleActionDto : RuleAction { /// The slack webhook url. - [Newtonsoft.Json.JsonProperty("webhookUrl", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("webhookUrl", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] public System.Uri WebhookUrl { get; set; } /// The text that is sent as message to slack. - [Newtonsoft.Json.JsonProperty("text", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("text", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] public string Text { get; set; } @@ -16848,12 +16846,12 @@ public partial class SlackRuleActionDto : RuleAction public partial class PrerenderRuleActionDto : RuleAction { /// The prerender token from your account. - [Newtonsoft.Json.JsonProperty("token", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("token", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] public string Token { get; set; } /// The url to recache. - [Newtonsoft.Json.JsonProperty("url", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("url", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] public string Url { get; set; } @@ -16864,17 +16862,17 @@ public partial class PrerenderRuleActionDto : RuleAction public partial class MediumRuleActionDto : RuleAction { /// The self issued access token. - [Newtonsoft.Json.JsonProperty("accessToken", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("accessToken", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] public string AccessToken { get; set; } /// The title, used for the url. - [Newtonsoft.Json.JsonProperty("title", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("title", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] public string Title { get; set; } /// The content, either html or markdown. - [Newtonsoft.Json.JsonProperty("content", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("content", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] public string Content { get; set; } @@ -16901,12 +16899,12 @@ public partial class MediumRuleActionDto : RuleAction public partial class FastlyRuleActionDto : RuleAction { /// The API key to grant access to Squidex. - [Newtonsoft.Json.JsonProperty("apiKey", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("apiKey", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] public string ApiKey { get; set; } /// The ID of the fastly service. - [Newtonsoft.Json.JsonProperty("serviceId", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("serviceId", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] public string ServiceId { get; set; } @@ -16917,45 +16915,45 @@ public partial class FastlyRuleActionDto : RuleAction public partial class EmailRuleActionDto : RuleAction { /// The IP address or host to the SMTP server. - [Newtonsoft.Json.JsonProperty("serverHost", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("serverHost", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] public string ServerHost { get; set; } /// The port to the SMTP server. - [Newtonsoft.Json.JsonProperty("serverPort", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("serverPort", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public int ServerPort { get; set; } /// Specify whether the SMPT client uses Secure Sockets Layer (SSL) to encrypt the connection. - [Newtonsoft.Json.JsonProperty("serverUseSsl", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("serverUseSsl", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public bool ServerUseSsl { get; set; } /// The password for the SMTP server. - [Newtonsoft.Json.JsonProperty("serverPassword", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("serverPassword", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] public string ServerPassword { get; set; } /// The username for the SMTP server. - [Newtonsoft.Json.JsonProperty("serverUsername", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("serverUsername", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] public string ServerUsername { get; set; } /// The email sending address. - [Newtonsoft.Json.JsonProperty("messageFrom", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("messageFrom", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] public string MessageFrom { get; set; } /// The email message will be sent to. - [Newtonsoft.Json.JsonProperty("messageTo", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("messageTo", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] public string MessageTo { get; set; } /// The subject line for this email message. - [Newtonsoft.Json.JsonProperty("messageSubject", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("messageSubject", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] public string MessageSubject { get; set; } /// The message body. - [Newtonsoft.Json.JsonProperty("messageBody", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("messageBody", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] public string MessageBody { get; set; } @@ -16966,17 +16964,17 @@ public partial class EmailRuleActionDto : RuleAction public partial class ElasticSearchRuleActionDto : RuleAction { /// The url to the elastic search instance or cluster. - [Newtonsoft.Json.JsonProperty("host", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("host", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] public System.Uri Host { get; set; } /// The name of the index. - [Newtonsoft.Json.JsonProperty("indexName", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("indexName", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] public string IndexName { get; set; } /// The name of the index type. - [Newtonsoft.Json.JsonProperty("indexType", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("indexType", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] public string IndexType { get; set; } @@ -16995,22 +16993,22 @@ public partial class ElasticSearchRuleActionDto : RuleAction public partial class DiscourseRuleActionDto : RuleAction { /// The url to the discourse server. - [Newtonsoft.Json.JsonProperty("url", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("url", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] public System.Uri Url { get; set; } /// The api key to authenticate to your discourse server. - [Newtonsoft.Json.JsonProperty("apiKey", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("apiKey", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] public string ApiKey { get; set; } /// The api username to authenticate to your discourse server. - [Newtonsoft.Json.JsonProperty("apiUsername", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("apiUsername", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] public string ApiUsername { get; set; } /// The text as markdown. - [Newtonsoft.Json.JsonProperty("text", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("text", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] public string Text { get; set; } @@ -17033,7 +17031,7 @@ public partial class DiscourseRuleActionDto : RuleAction public partial class CommentRuleActionDto : RuleAction { /// The comment text. - [Newtonsoft.Json.JsonProperty("text", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("text", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] public string Text { get; set; } @@ -17048,12 +17046,12 @@ public partial class CommentRuleActionDto : RuleAction public partial class AzureQueueRuleActionDto : RuleAction { /// The connection string to the storage account. - [Newtonsoft.Json.JsonProperty("connectionString", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("connectionString", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] public string ConnectionString { get; set; } /// The name of the queue. - [Newtonsoft.Json.JsonProperty("queue", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("queue", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] public string Queue { get; set; } @@ -17064,17 +17062,17 @@ public partial class AzureQueueRuleActionDto : RuleAction public partial class AlgoliaRuleActionDto : RuleAction { /// The application ID. - [Newtonsoft.Json.JsonProperty("appId", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("appId", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] public string AppId { get; set; } /// The API key to grant access to Squidex. - [Newtonsoft.Json.JsonProperty("apiKey", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("apiKey", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] public string ApiKey { get; set; } /// The name of the index. - [Newtonsoft.Json.JsonProperty("indexName", Required = Newtonsoft.Json.Required.Always)] + [Newtonsoft.Json.JsonProperty("indexName", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.ComponentModel.DataAnnotations.Required] public string IndexName { get; set; } diff --git a/csharp/Squidex.ClientLibrary/Squidex.ClientLibrary/Squidex.ClientLibrary.csproj b/csharp/Squidex.ClientLibrary/Squidex.ClientLibrary/Squidex.ClientLibrary.csproj index f0a4479c..709d0ae8 100644 --- a/csharp/Squidex.ClientLibrary/Squidex.ClientLibrary/Squidex.ClientLibrary.csproj +++ b/csharp/Squidex.ClientLibrary/Squidex.ClientLibrary/Squidex.ClientLibrary.csproj @@ -11,7 +11,7 @@ https://raw.githubusercontent.com/Squidex/squidex/master/media/logo-squared.png MIT https://github.com/Squidex/squidex/ - 4.0.1 + 4.0.2