Skip to content

Microsoft.Azure.Management.HDInsight.Job.Models.Profile has two properties with JobId #2542

@MarimuthuSA

Description

@MarimuthuSA

There are two properties in the Microsoft.Azure.Management.HDInsight.Job.Models.Profile with jobId (case insensitive). One is string _jobId whereas another one is JobID _jobID.

namespace Microsoft.Azure.Management.HDInsight.Job.Models;
public class Profile
{
private string _jobFile;
private string _jobId;
private JobID _jobID;
private string _jobName;
private string _queueName;
private string _url;
private string _user;
}

On trying to serialize this object, getting below exception.

System.InvalidOperationException : The JSON property name for 'Microsoft.Azure.Management.HDInsight.Job.Models.Profile.JobID' collides with another property.

Though it is not a blocking issue, it would be good coding practice to avoid properties which differs only in case.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions