From fad9b58d6a1cf918a44d2702db0c424a6b99c1f9 Mon Sep 17 00:00:00 2001 From: Tom Kroening Date: Thu, 1 Sep 2022 10:07:30 -0500 Subject: [PATCH] Changed WorkflowInfoDatamart type to string to be in alignment with other WorkflowInfo objects. Deserialization was causing an exception as the class was not structured in alignment with the JSON: JsonSerializationException: Error converting value "Sql" to type 'Microsoft.PowerBI.Api.Models.DatamartType'. --- sdk/PowerBI.Api/Source/Models/WorkspaceInfoDatamart.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sdk/PowerBI.Api/Source/Models/WorkspaceInfoDatamart.cs b/sdk/PowerBI.Api/Source/Models/WorkspaceInfoDatamart.cs index fc6b4d8a..ec5ac1e8 100644 --- a/sdk/PowerBI.Api/Source/Models/WorkspaceInfoDatamart.cs +++ b/sdk/PowerBI.Api/Source/Models/WorkspaceInfoDatamart.cs @@ -51,7 +51,7 @@ public WorkspaceInfoDatamart() /// The data source usages /// The user access details for a Power BI /// datamart. - public WorkspaceInfoDatamart(System.Guid id, string name = default(string), string description = default(string), DatamartType type = default(DatamartType), DatamartStatus1 status = default(DatamartStatus1), DatamartState state = default(DatamartState), string suspendedBatchId = default(string), EndorsementDetails endorsementDetails = default(EndorsementDetails), SensitivityLabel sensitivityLabel = default(SensitivityLabel), string modifiedBy = default(string), System.DateTime? modifiedDateTime = default(System.DateTime?), string configuredBy = default(string), string modifiedById = default(string), string configuredById = default(string), IList upstreamDataflows = default(IList), IList datasourceUsages = default(IList), IList users = default(IList)) + public WorkspaceInfoDatamart(System.Guid id, string name = default(string), string description = default(string), string type = default(string), DatamartStatus1 status = default(DatamartStatus1), DatamartState state = default(DatamartState), string suspendedBatchId = default(string), EndorsementDetails endorsementDetails = default(EndorsementDetails), SensitivityLabel sensitivityLabel = default(SensitivityLabel), string modifiedBy = default(string), System.DateTime? modifiedDateTime = default(System.DateTime?), string configuredBy = default(string), string modifiedById = default(string), string configuredById = default(string), IList upstreamDataflows = default(IList), IList datasourceUsages = default(IList), IList users = default(IList)) { Id = id; Name = name; @@ -99,7 +99,7 @@ public WorkspaceInfoDatamart() /// /// [JsonProperty(PropertyName = "type")] - public DatamartType Type { get; set; } + public string Type { get; set; } /// ///