Skip to content

Commit

Permalink
Throw error for not supported case
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Omondi committed Apr 19, 2024
1 parent b59fce3 commit 6cbc453
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Kiota.Builder/Plugins/PluginsGenerationService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,10 @@ public async Task GenerateManifestAsync(CancellationToken cancellationToken = de
apiManifest.ApiDependencies.AddOrReplace(Configuration.ClientClassName, Configuration.ToApiDependency(OAIDocument.HashCode ?? string.Empty, TreeNode?.GetRequestInfo().ToDictionary(static x => x.Key, static x => x.Value) ?? []));
apiManifest.Write(writer);
break;
case PluginType.OpenAI:
//TODO add support for OpenAI plugin type generation
case PluginType.OpenAI://TODO add support for OpenAI plugin type generation

Check warning on line 72 in src/Kiota.Builder/Plugins/PluginsGenerationService.cs

View workflow job for this annotation

GitHub Actions / Build

Complete the task associated to this 'TODO' comment. (https://rules.sonarsource.com/csharp/RSPEC-1135)
// intentional drop to the default case
default:
continue;
throw new NotImplementedException($"The {pluginType} plugin is not implemented.");
}
await writer.FlushAsync(cancellationToken).ConfigureAwait(false);
}
Expand Down

0 comments on commit 6cbc453

Please sign in to comment.