Skip to content
This repository was archived by the owner on Feb 23, 2024. It is now read-only.

Commit 7244cc9

Browse files
author
Razvan Popescu
committed
fix API products deserialize object
1 parent 945ebae commit 7244cc9

File tree

1 file changed

+1
-1
lines changed
  • src/APIM_ARMTemplate/apimtemplate/Extractor/EntityExtractors

1 file changed

+1
-1
lines changed

src/APIM_ARMTemplate/apimtemplate/Extractor/EntityExtractors/APIExtractor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ public async Task<Template> GenerateAPIsARMTemplate(string apimname, string reso
265265
Console.WriteLine("'{0}' Product association found", apiProductName);
266266

267267
// convert returned api product associations to template resource class
268-
ProductAPITemplateResource productAPIResource = JsonConvert.DeserializeObject<ProductAPITemplateResource>(apiProducts);
268+
ProductAPITemplateResource productAPIResource = JsonConvert.DeserializeObject<ProductAPITemplateResource>(item.ToString());
269269
productAPIResource.type = ResourceTypeConstants.ProductAPI;
270270
productAPIResource.name = $"[concat(parameters('ApimServiceName'), '/{apiProductName}/{oApiName}')]";
271271
productAPIResource.apiVersion = GlobalConstants.APIVersion;

0 commit comments

Comments
 (0)