-
Notifications
You must be signed in to change notification settings - Fork 219
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature: http language support #5778
base: main
Are you sure you want to change the base?
Conversation
…crosoft/kiota into feature/http-language-support
var pathParameters = requestBuilderClass | ||
.GetChildElements(true) | ||
.OfType<CodeProperty>() | ||
.Where(property => property.IsOfKind(CodePropertyKind.PathParameters) && !property.Name.Equals("pathParameters", StringComparison.OrdinalIgnoreCase)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Then use a constant reference instead please
namespace Kiota.Builder.Writers.Http; | ||
public class CodePropertyWriter(HttpConventionService conventionService) : BaseElementWriter<CodeProperty, HttpConventionService>(conventionService) | ||
{ | ||
public override void WriteCodeElement(CodeProperty codeElement, LanguageWriter writer) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we at least make a generic NO-OP writer, that we could reuse, to avoid the duplication?
…crosoft/kiota into feature/http-language-support
…crosoft/kiota into feature/http-language-support
- Use TryGet to avoid reference resolution errors
Let's remove #5546 from the items being closed as this is related to the extension that the work doesn't cover |
Add support for HTTP snippet generation as a language option.
Closes #5761 #5546 #5568 #5543