@@ -328,7 +328,7 @@ internal void Walk(OpenApiContact contact)
328
328
/// </summary>
329
329
internal void Walk ( OpenApiCallback callback , bool isComponent = false )
330
330
{
331
- if ( callback == null || IsReference ( callback , isComponent ) )
331
+ if ( callback == null || ProcessAsReference ( callback , isComponent ) )
332
332
{
333
333
return ;
334
334
}
@@ -352,7 +352,7 @@ internal void Walk(OpenApiCallback callback, bool isComponent = false)
352
352
/// </summary>
353
353
internal void Walk ( OpenApiTag tag )
354
354
{
355
- if ( tag == null || IsReference ( tag ) )
355
+ if ( tag == null || ProcessAsReference ( tag ) )
356
356
{
357
357
return ;
358
358
}
@@ -537,7 +537,7 @@ internal void Walk(IList<OpenApiParameter> parameters)
537
537
/// </summary>
538
538
internal void Walk ( OpenApiParameter parameter , bool isComponent = false )
539
539
{
540
- if ( parameter == null || IsReference ( parameter , isComponent ) )
540
+ if ( parameter == null || ProcessAsReference ( parameter , isComponent ) )
541
541
{
542
542
return ;
543
543
}
@@ -579,7 +579,7 @@ internal void Walk(OpenApiResponses responses)
579
579
/// </summary>
580
580
internal void Walk ( OpenApiResponse response , bool isComponent = false )
581
581
{
582
- if ( response == null || IsReference ( response , isComponent ) )
582
+ if ( response == null || ProcessAsReference ( response , isComponent ) )
583
583
{
584
584
return ;
585
585
}
@@ -596,7 +596,7 @@ internal void Walk(OpenApiResponse response, bool isComponent = false)
596
596
/// </summary>
597
597
internal void Walk ( OpenApiRequestBody requestBody , bool isComponent = false )
598
598
{
599
- if ( requestBody == null || IsReference ( requestBody , isComponent ) )
599
+ if ( requestBody == null || ProcessAsReference ( requestBody , isComponent ) )
600
600
{
601
601
return ;
602
602
}
@@ -739,7 +739,7 @@ internal void Walk(OpenApiEncoding encoding)
739
739
/// </summary>
740
740
internal void Walk ( OpenApiSchema schema , bool isComponent = false )
741
741
{
742
- if ( schema == null || IsReference ( schema , isComponent ) )
742
+ if ( schema == null || ProcessAsReference ( schema , isComponent ) )
743
743
{
744
744
return ;
745
745
}
@@ -826,7 +826,7 @@ internal void Walk(IOpenApiAny example)
826
826
/// </summary>
827
827
internal void Walk ( OpenApiExample example , bool isComponent = false )
828
828
{
829
- if ( example == null || IsReference ( example , isComponent ) )
829
+ if ( example == null || ProcessAsReference ( example , isComponent ) )
830
830
{
831
831
return ;
832
832
}
@@ -932,7 +932,7 @@ internal void Walk(IDictionary<string,OpenApiLink> links)
932
932
/// </summary>
933
933
internal void Walk ( OpenApiLink link , bool isComponent = false )
934
934
{
935
- if ( link == null || IsReference ( link , isComponent ) )
935
+ if ( link == null || ProcessAsReference ( link , isComponent ) )
936
936
{
937
937
return ;
938
938
}
@@ -947,7 +947,7 @@ internal void Walk(OpenApiLink link, bool isComponent = false)
947
947
/// </summary>
948
948
internal void Walk ( OpenApiHeader header , bool isComponent = false )
949
949
{
950
- if ( header == null || IsReference ( header , isComponent ) )
950
+ if ( header == null || ProcessAsReference ( header , isComponent ) )
951
951
{
952
952
return ;
953
953
}
@@ -979,7 +979,7 @@ internal void Walk(OpenApiSecurityRequirement securityRequirement)
979
979
/// </summary>
980
980
internal void Walk ( OpenApiSecurityScheme securityScheme )
981
981
{
982
- if ( securityScheme == null || IsReference ( securityScheme ) )
982
+ if ( securityScheme == null || ProcessAsReference ( securityScheme ) )
983
983
{
984
984
return ;
985
985
}
@@ -1056,7 +1056,7 @@ private void Walk(string context, Action walk)
1056
1056
/// <summary>
1057
1057
/// Identify if an element is just a reference to a component, or an actual component
1058
1058
/// </summary>
1059
- private bool IsReference ( IOpenApiReferenceable referenceable , bool isComponent = false )
1059
+ private bool ProcessAsReference ( IOpenApiReferenceable referenceable , bool isComponent = false )
1060
1060
{
1061
1061
var isReference = referenceable . Reference != null && ! isComponent ;
1062
1062
if ( isReference )
0 commit comments