mirror of
https://github.com/foss42/apidash.git
synced 2025-12-09 14:40:20 +08:00
Add support comments in JSON request body #599
This commit is contained in:
@@ -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,
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user