Skip to content

Commit 7ac6245

Browse files
committed
Renamed isReference to ProcessAsReference
1 parent c6f9ff2 commit 7ac6245

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

src/Microsoft.OpenApi/Services/OpenApiWalker.cs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ internal void Walk(OpenApiContact contact)
328328
/// </summary>
329329
internal void Walk(OpenApiCallback callback, bool isComponent = false)
330330
{
331-
if (callback == null || IsReference(callback, isComponent))
331+
if (callback == null || ProcessAsReference(callback, isComponent))
332332
{
333333
return;
334334
}
@@ -352,7 +352,7 @@ internal void Walk(OpenApiCallback callback, bool isComponent = false)
352352
/// </summary>
353353
internal void Walk(OpenApiTag tag)
354354
{
355-
if (tag == null || IsReference(tag))
355+
if (tag == null || ProcessAsReference(tag))
356356
{
357357
return;
358358
}
@@ -537,7 +537,7 @@ internal void Walk(IList<OpenApiParameter> parameters)
537537
/// </summary>
538538
internal void Walk(OpenApiParameter parameter, bool isComponent = false)
539539
{
540-
if (parameter == null || IsReference(parameter, isComponent))
540+
if (parameter == null || ProcessAsReference(parameter, isComponent))
541541
{
542542
return;
543543
}
@@ -579,7 +579,7 @@ internal void Walk(OpenApiResponses responses)
579579
/// </summary>
580580
internal void Walk(OpenApiResponse response, bool isComponent = false)
581581
{
582-
if (response == null || IsReference(response, isComponent))
582+
if (response == null || ProcessAsReference(response, isComponent))
583583
{
584584
return;
585585
}
@@ -596,7 +596,7 @@ internal void Walk(OpenApiResponse response, bool isComponent = false)
596596
/// </summary>
597597
internal void Walk(OpenApiRequestBody requestBody, bool isComponent = false)
598598
{
599-
if (requestBody == null || IsReference(requestBody, isComponent))
599+
if (requestBody == null || ProcessAsReference(requestBody, isComponent))
600600
{
601601
return;
602602
}
@@ -739,7 +739,7 @@ internal void Walk(OpenApiEncoding encoding)
739739
/// </summary>
740740
internal void Walk(OpenApiSchema schema, bool isComponent = false)
741741
{
742-
if (schema == null || IsReference(schema, isComponent))
742+
if (schema == null || ProcessAsReference(schema, isComponent))
743743
{
744744
return;
745745
}
@@ -826,7 +826,7 @@ internal void Walk(IOpenApiAny example)
826826
/// </summary>
827827
internal void Walk(OpenApiExample example, bool isComponent = false)
828828
{
829-
if (example == null || IsReference(example, isComponent))
829+
if (example == null || ProcessAsReference(example, isComponent))
830830
{
831831
return;
832832
}
@@ -932,7 +932,7 @@ internal void Walk(IDictionary<string,OpenApiLink> links)
932932
/// </summary>
933933
internal void Walk(OpenApiLink link, bool isComponent = false)
934934
{
935-
if (link == null || IsReference(link, isComponent))
935+
if (link == null || ProcessAsReference(link, isComponent))
936936
{
937937
return;
938938
}
@@ -947,7 +947,7 @@ internal void Walk(OpenApiLink link, bool isComponent = false)
947947
/// </summary>
948948
internal void Walk(OpenApiHeader header, bool isComponent = false)
949949
{
950-
if (header == null || IsReference(header, isComponent))
950+
if (header == null || ProcessAsReference(header, isComponent))
951951
{
952952
return;
953953
}
@@ -979,7 +979,7 @@ internal void Walk(OpenApiSecurityRequirement securityRequirement)
979979
/// </summary>
980980
internal void Walk(OpenApiSecurityScheme securityScheme)
981981
{
982-
if (securityScheme == null || IsReference(securityScheme))
982+
if (securityScheme == null || ProcessAsReference(securityScheme))
983983
{
984984
return;
985985
}
@@ -1056,7 +1056,7 @@ private void Walk(string context, Action walk)
10561056
/// <summary>
10571057
/// Identify if an element is just a reference to a component, or an actual component
10581058
/// </summary>
1059-
private bool IsReference(IOpenApiReferenceable referenceable, bool isComponent = false)
1059+
private bool ProcessAsReference(IOpenApiReferenceable referenceable, bool isComponent = false)
10601060
{
10611061
var isReference = referenceable.Reference != null && !isComponent;
10621062
if (isReference)

0 commit comments

Comments
 (0)