Skip to content

Commit

Permalink
- fixes a bug where inline enum type name would not be sanitized
Browse files Browse the repository at this point in the history
  • Loading branch information
baywet committed Oct 12, 2023
1 parent 4daac19 commit 99f172e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Kiota.Builder/KiotaBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2314,7 +2314,7 @@ private void AddPropertyForQueryParameter(OpenApiUrlTreeNode node, OperationType
var shortestNamespace = GetShortestNamespace(codeNamespace, schema);
var enumName = schema.GetSchemaName().CleanupSymbolName();
if (string.IsNullOrEmpty(enumName))
enumName = $"{operationType.ToString().ToFirstCharacterUpperCase()}{parameter.Name.ToFirstCharacterUpperCase()}QueryParameterType";
enumName = $"{operationType.ToString().ToFirstCharacterUpperCase()}{parameter.Name.CleanupSymbolName().ToFirstCharacterUpperCase()}QueryParameterType";
if (AddEnumDeclarationIfDoesntExist(node, schema, enumName, shortestNamespace) is { } enumDeclaration)
{
resultType = new CodeType
Expand Down

0 comments on commit 99f172e

Please sign in to comment.