@@ -67,7 +67,7 @@ public override void Visit(OpenApiOperation operation)
6767
6868 var operationId = operation . OperationId ;
6969 var operationTypeExtension = operation . Extensions ? . GetExtension ( "x-ms-docs-operation-type" ) ;
70- if ( operationTypeExtension . IsEquals ( "function" ) && operation . Parameters is { Count : > 0 } )
70+ if ( operationTypeExtension . IsEquals ( "function" ) && operation . Parameters is { Count : > 0 } )
7171 ResolveFunctionParameters ( operation . Parameters ) ;
7272
7373 // Order matters. Resolve operationId.
@@ -106,7 +106,7 @@ private static string ResolveByRefOperationId(string operationId)
106106 // Update $ref path operationId name
107107 // Ref key word is enclosed between lower-cased and upper-cased letters
108108 // Ex.: applications_GetRefCreatedOnBehalfOf to applications_GetCreatedOnBehalfOfByRef
109- return s_oDataRefRegex . Match ( operationId ) . Success ? $ "{ s_oDataRefRegex . Replace ( operationId , string . Empty ) } ByRef" : operationId ;
109+ return s_oDataRefRegex . IsMatch ( operationId ) ? $ "{ s_oDataRefRegex . Replace ( operationId , string . Empty ) } ByRef" : operationId ;
110110 }
111111
112112 private static string ResolveODataCastOperationId ( string operationId )
@@ -175,8 +175,8 @@ private static void ResolveFunctionParameters(IList<IOpenApiParameter> parameter
175175
176176 private void AddAdditionalPropertiesToSchema ( IOpenApiSchema schema )
177177 {
178- if ( schema is OpenApiSchema openApiSchema
179- && ! _schemaLoop . Contains ( schema )
178+ if ( schema is OpenApiSchema openApiSchema
179+ && ! _schemaLoop . Contains ( schema )
180180 && schema . Type . Equals ( JsonSchemaType . Object ) )
181181 {
182182 openApiSchema . AdditionalProperties = new OpenApiSchema ( ) { Type = JsonSchemaType . Object } ;
0 commit comments