fix: base url creation for openapi spec

This commit is contained in:
Udhay-Adithya
2025-09-27 20:56:30 +05:30
parent d2a5a774df
commit 15821a06ea
3 changed files with 162 additions and 41 deletions

View File

@@ -1,3 +1,5 @@
import 'dart:developer';
import 'package:flutter/material.dart';
import 'package:openapi_spec/openapi_spec.dart';
@@ -55,6 +57,11 @@ class DashbotImportNowButton extends ConsumerWidget with DashbotActionMixin {
method: s.method,
op: s.op,
);
log("SorceName: $sourceName");
payload['sourceName'] =
(sourceName != null && sourceName.trim().isNotEmpty)
? sourceName
: spec.info.title;
await chatNotifier.applyAutoFix(ChatAction.fromJson({
'action': 'apply_openapi',
'actionType': 'apply_openapi',