@@ -182,29 +182,29 @@ procedure TOpenApiAnalyzer.DoSolveServiceOperation(var ServiceName, ServiceDescr
182
182
case Options.ServiceOptions.SolvingMode of
183
183
TServiceSolvingMode.MultipleClientsFromFirstTagAndOperationId:
184
184
begin
185
- // if Operation.Tags.Count > 0 then
186
- // begin
187
- // ServiceName := Operation.Tags[0];
188
- // Tag := FDocument.Tags.Find(ServiceName);
189
- // if Tag <> nil then
190
- // ServiceDescription := Tag.Description;
191
- // end
192
- // else
193
- // ServiceName := '';
194
- // OperationName := Operation.OperationId;
185
+ if Operation.Tags.Count > 0 then
186
+ begin
187
+ ServiceName := Operation.Tags[0 ];
188
+ Tag := FDocument.Tags.Find(ServiceName);
189
+ if Tag <> nil then
190
+ ServiceDescription := Tag.Description;
191
+ end
192
+ else
193
+ ServiceName := ' ' ;
194
+ OperationName := Operation.OperationId;
195
195
end ;
196
196
TServiceSolvingMode.MultipleClientsFromXDataOperationId:
197
197
begin
198
- // P := Pos('.', Operation.OperationId);
199
- // ServiceName := Copy(Operation.OperationId, 1, P - 1);
200
- // OperationName := Copy(Operation.OperationId, P + 1);
201
- // if StartsText('I', ServiceName) and EndsText('Service', ServiceName) then
202
- // ServiceName := Copy(ServiceName, 2, Length(ServiceName) - 8);
198
+ P := Pos(' .' , Operation.OperationId);
199
+ ServiceName := Copy(Operation.OperationId, 1 , P - 1 );
200
+ OperationName := Copy(Operation.OperationId, P + 1 );
201
+ if StartsText(' I' , ServiceName) and EndsText(' Service' , ServiceName) then
202
+ ServiceName := Copy(ServiceName, 2 , Length(ServiceName) - 8 );
203
203
end ;
204
204
else
205
205
// TServiceSolvingMode.SingleClientFromOperationId
206
206
ServiceName := ' ' ;
207
- // OperationName := Operation.OperationId;
207
+ OperationName := Operation.OperationId;
208
208
end ;
209
209
end ;
210
210
0 commit comments