2 instantiations of ParameterModel
Microsoft.DotNet.SwaggerGenerator.CodeGenerator (2)
Modeler\ServiceClientModelFactory.cs (2)
246
return new
ParameterModel
(parameterName, body.Required, null, type);
255
return new
ParameterModel
(parameter.Name, parameter.Required, parameter.In, type);
15 references to ParameterModel
Microsoft.DotNet.SwaggerGenerator.CodeGenerator (15)
Modeler\MethodModel.cs (12)
21
IEnumerable<
ParameterModel
> parameters,
36
public IImmutableList<
ParameterModel
> Parameters { get; }
47
public IEnumerable<
ParameterModel
> ConstantParameters =>
50
public IEnumerable<
ParameterModel
> NonConstantParameters =>
53
public IEnumerable<
ParameterModel
> FormalParameters => NonConstantParameters.OrderBy(p => p.Required ? 0 : 1).ThenBy(p => p.Name);
55
public IEnumerable<
ParameterModel
> FormalParametersNoPaging => NonConstantParameters.OrderBy(p => p.Required ? 0 : 1).ThenBy(p => p.Name).Where(p => Paginated == null || (p.Name != Paginated.PageParameterName && p.Name != Paginated.PageSizeParameterName));
57
public
ParameterModel
PageParameter => Paginated == null ? null : NonConstantParameters.Single(p => p.Name == Paginated.PageParameterName);
59
public
ParameterModel
PageSizeParameter => Paginated == null ? null : NonConstantParameters.Single(p => p.Name == Paginated.PageSizeParameterName);
61
public IEnumerable<
ParameterModel
> PathParameters =>
64
public IEnumerable<
ParameterModel
> QueryParameters =>
67
public IEnumerable<
ParameterModel
> HeaderParameters =>
70
public
ParameterModel
BodyParameter => Parameters.SingleOrDefault(p => p.Location == null);
Modeler\ServiceClientModelFactory.cs (3)
163
IList<
ParameterModel
> parameters = (operation.Parameters ?? Array.Empty<OpenApiParameter>())
239
private
ParameterModel
CreateParameterModel(OpenApiRequestBody body)
250
private
ParameterModel
CreateParameterModel(OpenApiParameter parameter)