feat: remove unused openapi action button

This commit is contained in:
Udhay-Adithya
2025-09-27 18:06:02 +05:30
parent b840ba44de
commit 86f35755eb
5 changed files with 4 additions and 68 deletions

View File

@@ -69,20 +69,6 @@ void main() {
expect(payload['url'], 'https://api.apidash.dev/users');
expect(payload['headers'], isA<Map>());
});
test('buildActionMessageFromPayload returns two actions', () {
final op = spec.paths!['/users']!.post!;
final payload = OpenApiImportService.payloadForOperation(
baseUrl: spec.servers!.first.url!,
path: '/users',
method: 'post',
op: op,
);
final msg = OpenApiImportService.buildActionMessageFromPayload(payload);
final actions = (msg['actions'] as List).cast<Map<String, dynamic>>();
expect(actions.length, 2);
expect(actions.first['action'], 'apply_openapi');
});
});
group('OpenApiImportService extended coverage', () {