Add support comments in JSON request body #599

This commit is contained in:
FreeBono
2025-02-25 21:38:05 +09:00
parent 5245052d6c
commit 4da5a49f44
5 changed files with 141 additions and 58 deletions

View File

@@ -1,3 +1,4 @@
import 'package:apidash/utils/convert_utils.dart';
import 'package:apidash_core/apidash_core.dart';
import 'package:apidash_design_system/apidash_design_system.dart';
import 'package:flutter/material.dart';
@@ -70,9 +71,10 @@ class EditRequestBody extends ConsumerWidget {
initialValue: requestModel?.httpRequestModel?.body,
onChanged: (String value) {
// changeToPostMethod();
ref
.read(collectionStateNotifierProvider.notifier)
.update(body: value);
.update(body: removeJsonComments(value));
},
hintText: kHintJson,
),