Skip to content

Commit 3956442

Browse files
committed
cleanup
1 parent 79c8df9 commit 3956442

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

lib/screens/home_page/editor_pane/details_card/request_pane/request_body.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import 'package:apidash/utils/convert_utils.dart';
21
import 'package:apidash_core/apidash_core.dart';
32
import 'package:apidash_design_system/apidash_design_system.dart';
43
import 'package:flutter/material.dart';

packages/apidash_core/lib/utils/http_request_utils.dart

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import 'dart:convert';
2-
31
import 'package:apidash_core/consts.dart';
42
import 'package:seed/seed.dart';
53
import '../models/models.dart';
@@ -104,10 +102,10 @@ String? getRequestBody(APIType type, HttpRequestModel httpRequestModel) {
104102
};
105103
}
106104

105+
// TODO: Expose this function to remove JSON comments
107106
String? removeJsonComments(String? json) {
108107
try {
109108
if (json == null) return null;
110-
111109
var parsed = json5.json5Decode(json);
112110
return kJsonEncoder.convert(parsed);
113111
} catch (e) {

0 commit comments

Comments
 (0)