Skip to content

Commit

Permalink
prep for RC (#1840)
Browse files Browse the repository at this point in the history
  • Loading branch information
ramsessanchez authored Feb 7, 2024
1 parent ee1c373 commit 2c135ec
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CodeSnippetsReflection.OpenAPI/OpenAPISnippetsGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ public string ProcessPayloadRequest(HttpRequestMessage requestPayload, string la
"powershell",
"php",
"python",
"cli"
"cli",
"java"
};
private static ILanguageGenerator<SnippetModel, OpenApiUrlTreeNode> GetLanguageGenerator(string language) {
return language.ToLowerInvariant() switch {
Expand All @@ -96,6 +97,7 @@ private static ILanguageGenerator<SnippetModel, OpenApiUrlTreeNode> GetLanguageG
"php" => new PhpGenerator(),
"python" => new PythonGenerator(),
"cli" => new GraphCliGenerator(),
"java" => new JavaGenerator(),
_ => throw new ArgumentOutOfRangeException($"Language '{language}' is not supported"),
};
}
Expand Down

0 comments on commit 2c135ec

Please sign in to comment.