Skip to content

Commit

Permalink
Minor
Browse files Browse the repository at this point in the history
  • Loading branch information
aritchie committed Oct 19, 2024
1 parent 00f7ecf commit ff830b9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ void GenerateContracts(OpenApiDocument document)
var argType = parameter.In == ParameterLocation.Path ? "Path" : "Query";
var typeName = this.GetSchemaType(parameter.Schema);
var propertyName = parameter.Name.Pascalize();
this.contractBuilder.AppendLine($" [global::Shiny.Mediator.Http.HttpParameter(global::Shiny.Mediator.Http.HttpParameterType.{argType}, \"{parameter.Name}\")]");
this.contractBuilder.AppendLine($" [global::Shiny.Mediator.Http.HttpParameterAttribute(global::Shiny.Mediator.Http.HttpParameterType.{argType}, \"{parameter.Name}\")]");
this.contractBuilder.AppendLine($" public {typeName} {propertyName} {{ get; set; }}");
this.contractBuilder.AppendLine();
output($"PROPERTY: {propertyName} ({typeName} - {argType})", DiagnosticSeverity.Info);
Expand Down

0 comments on commit ff830b9

Please sign in to comment.