﻿using Newtonsoft.Json;

namespace Clubhouse.io.net.Entities.Labels
{
    public class ClubhouseCreateLabelParams
    {
        [JsonProperty(PropertyName = "color")]
        public string Color { get; set; }

        [JsonProperty(PropertyName = "external_id")]
        public string ExternalID { get; set; }

        [JsonProperty(PropertyName = "name", Required = Required.Always)]
        public string Name { get; set; }
    }
}

﻿using Newtonsoft.Json;

namespace Clubhouse.io.net.Entities.Labels
{
    public class ClubhouseCreateLabelParams
    {
        [JsonProperty(PropertyName = "color", NullValueHandling = NullValueHandling.Ignore)]
        public string Color { get; set; }

        [JsonProperty(PropertyName = "external_id", NullValueHandling = NullValueHandling.Ignore)]
        public string ExternalID { get; set; }

        [JsonProperty(PropertyName = "name", Required = Required.Always)]
        public string Name { get; set; }
    }
}

Create Label failing due to null Color & ExternalID being sent to API
Create Label failing due to null Color & ExternalID being sent to API

