Skip to content

Commit

Permalink
Merge pull request #192 from PHOENIXCONTACT/bugfix/possible-type-seri…
Browse files Browse the repository at this point in the history
…alization

update the GetProductCustomization method.
  • Loading branch information
MathoMathiasCamara authored Nov 21, 2022
2 parents f79e790 + db7cd06 commit 6e5e8b3
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
using Moryx.Serialization;
using System.Net;
using Moryx.AbstractionLayer.Properties;
using Moryx.Configuration;

namespace Moryx.AbstractionLayer.Products.Endpoints
{
Expand Down Expand Up @@ -44,7 +45,7 @@ public ActionResult<ProductCustomization> GetProductCustomization()
Importers = _productManagement.Importers.Select(i => new ProductImporter
{
Name = i.Key,
Parameters = EntryConvert.EncodeObject(i.Value)
Parameters = EntryConvert.EncodeObject(i.Value, new PossibleValuesSerialization(null, new ValueProviderExecutor(new ValueProviderExecutorSettings().AddDefaultValueProvider())))
}).ToArray()
};
}
Expand Down

0 comments on commit 6e5e8b3

Please sign in to comment.