diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md
index 04873dba..5bdb6ff8 100644
--- a/.github/pull_request_template.md
+++ b/.github/pull_request_template.md
@@ -9,6 +9,7 @@ _Add your description_
### Checklist
- [ ] I have gone through the [contributing guide](https://github.com/foss42/apidash/blob/main/CONTRIBUTING.md)
+- [ ] I have updated my branch and synced it with project `main` branch before making this PR
- [ ] I have run the tests (`flutter test`) and all tests are passing
## Added/updated tests?
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 46a9b053..211eaf06 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -129,21 +129,28 @@ flutter test test/widgets/codegen_previewer_test.dart
Instead of copy pasting from pub.dev, it is recommended that you use `flutter pub add package_name` to add a new package to `pubspec.yaml`. You can read more [here](https://docs.flutter.dev/packages-and-plugins/using-packages#adding-a-package-dependency-to-an-app-using-flutter-pub-add).
-## Troubleshooting Common Issues
+## Platform-specific Additional Instructions
-### Network Connection Issues on macOS
+### macOS
-If you encounter a network connection error similar to the following while running your Flutter app on macOS:
+Add below keys to `macos/Runner/DebugProfile.entitlements` and `macos/Runner/Release.entitlements`.
+
+```
+ com.apple.security.network.server
+
+ com.apple.security.network.client
+
+ com.apple.security.files.downloads.read-write
+
+ com.apple.security.files.user-selected.read-write
+
+```
+
+If not added, you can encounter a network connection error similar to the following while running your Flutter app on macOS:
```
ClientException with SocketException: Connection failed (OS Error: Operation not permitted, errno = 1)
```
-Add below key to `macos/Runner/DebugProfile.entitlements` and `macos/Runner/Release.entitlements`.
-
-```
- com.apple.security.network.client
-
-```
You can read more [here](https://docs.flutter.dev/platform-integration/macos/building#setting-up-entitlements)
diff --git a/lib/codegen/others/curl.dart b/lib/codegen/others/curl.dart
index 2ba59765..2f177609 100644
--- a/lib/codegen/others/curl.dart
+++ b/lib/codegen/others/curl.dart
@@ -58,7 +58,7 @@ class cURLCodeGen {
} else if (requestModel.hasFormData) {
for (var formData in requestModel.formDataList) {
var templateFormData = jj.Template(kTemplateFormData);
- if (formData.name.isNotEmpty && formData.value.isNotEmpty) {
+ if (formData.name.isNotEmpty) {
result += templateFormData.render({
"name": formData.name,
"value":
diff --git a/lib/models/request_model.dart b/lib/models/request_model.dart
index 6bdff603..0ea6d735 100644
--- a/lib/models/request_model.dart
+++ b/lib/models/request_model.dart
@@ -80,10 +80,10 @@ class RequestModel {
bool get hasFormData =>
kMethodsWithBody.contains(method) &&
hasFormDataContentType &&
- (requestFormDataList ?? []).isNotEmpty;
+ formDataMapList.isNotEmpty;
List get formDataList =>
requestFormDataList ?? [];
- List