Skip to content

Commit

Permalink
update request configuration class (#2034)
Browse files Browse the repository at this point in the history
* Merge dev to master (#2013)

Bump apidoctor from 1708be5 to 1916d8c (#2004)

Add use import statements for PHP Snippets (#2000)

Bump Microsoft.OpenApi.OData from 1.6.0 to 1.6.1 (#2007)

Bump Microsoft.VisualStudio.Azure.Containers.Tools.Targets (#2008)

Bump MSTest.TestFramework from 3.2.2 to 3.3.0 (#2009)

Bump MSTest.TestFramework from 3.3.0 to 3.3.1 (#2011)

Bump Microsoft.VisualStudio.Azure.Containers.Tools.Targets (#2010)

Chore: change drop location (#2012)

* Remove built request configiguation name

* Update unit tests for updated request configuration name

* Update imports to inlcude base request configuration

* update tests

---------

Co-authored-by: Millicent Achieng <achieng.milli@gmail.com>
Co-authored-by: Charles Wahome <thewahome.cw@gmail.com>
  • Loading branch information
3 people authored and SilasKenneth committed May 23, 2024
1 parent 8658aff commit 394806a
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ private static HashSet<string> GetImportStatements(SnippetModel snippetModel)
var namespaceParts = importModelNamespace.Split('.').Select((s, i) => i == import.ModelProperty.NamespaceName.Split('.').Length - 1 ? s.ToSnakeCase() : s.ToLowerInvariant());
var importString = $"{requestBuilderImportPrefix}.{string.Join(".", namespaceParts)}.{typeDefinition.ToSnakeCase()} import {typeDefinition}";
snippetImports.Add($"{importString.Replace(".me.", ".users.item.")}");

}
else{
snippetImports.Add($"{modelImportPrefix}{namespaceValue}.{typeDefinition.ToSnakeCase()} import {typeDefinition}");
Expand Down

0 comments on commit 394806a

Please sign in to comment.