Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 14 additions & 10 deletions OpenAPI Client Unit Tests/Catalog/SearchTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,23 +18,27 @@ public void TestSearch()
searchResultsRequest.IncludeAttributes = true;
searchResultsRequest.Offset = 10;
searchResultsRequest.Limit = 10;
searchResultsRequest.DataOutputs = new EnumTypes.DataOutputType[] {
EnumTypes.DataOutputType.PRODUCTS,
EnumTypes.DataOutputType.CATEGORIES,
EnumTypes.DataOutputType.REFINEMENTS
};
searchResultsRequest.Offers = new EnumTypes.OfferType[] {
EnumTypes.OfferType.ALL
};
searchResultsRequest.DataOutputs = new EnumTypes.DataOutputType[] {
EnumTypes.DataOutputType.PRODUCTS,
EnumTypes.DataOutputType.CATEGORIES,
EnumTypes.DataOutputType.REFINEMENTS
};
searchResultsRequest.Offers = new EnumTypes.OfferType[] {
EnumTypes.OfferType.ALL
};

SearchResults searchResults = client.Search(searchResultsRequest);
Assert.IsTrue(searchResults.TotalResultSize > 0);
Assert.IsNotNull(searchResults.Categories);
Assert.IsTrue(searchResults.Categories.Count > 0);
Assert.IsNotNull(searchResults.Products);
Assert.IsTrue(searchResults.Products.Count > 0);
Assert.IsNotNull(searchResults.RefinementGroups);
Assert.IsTrue(searchResults.RefinementGroups.Count > 0);
Assert.IsTrue(searchResults.RefinementGroups.Count > 0);
Assert.IsTrue(searchResults.Products[0].ParentCategoryPaths.Count > 0);
Assert.IsTrue(searchResults.Products[0].ParentCategoryPaths[0].ParentCategories.Count > 0);
Assert.IsFalse(string.IsNullOrEmpty(searchResults.Products[0].ParentCategoryPaths[0].ParentCategories[0].Id));
Assert.IsFalse(string.IsNullOrEmpty(searchResults.Products[0].ParentCategoryPaths[0].ParentCategories[0].Name));
}
}
}
28 changes: 15 additions & 13 deletions OpenAPI Client/Generated/openapi-4.0.0.cs
Original file line number Diff line number Diff line change
Expand Up @@ -411,21 +411,23 @@ public List<Promotion> Promotions
}
}

[System.Xml.Serialization.XmlArrayAttribute(Order = 17)]
[System.Xml.Serialization.XmlArrayItemAttribute("ParentCategories", typeof(ParentCategory), IsNullable = false)]
public List<ParentCategory> ParentCategoryPaths
public List<ParentCategoryList> ParentCategoryPaths
{
get
{
return this.parentCategoryPathsField;
}
set
{
this.parentCategoryPathsField = value;
}
get;
set;
}
}

public partial class ParentCategoryList
{
public List<ParentCategory> ParentCategories
{
get;
set;
}

}

public partial class TrackList
{

Expand Down Expand Up @@ -1223,7 +1225,7 @@ public partial class ParentCategory

private string nameField;

public string id
public string Id
{
get
{
Expand All @@ -1235,7 +1237,7 @@ public string id
}
}

public string name
public string Name
{
get
{
Expand Down