mirror of
https://github.com/foss42/apidash.git
synced 2025-12-04 03:46:57 +08:00
Address review comments: Remove security notices from code generators, restore debugPrint statements, remove extra documentation files
Co-authored-by: animator <615622+animator@users.noreply.github.com>
This commit is contained in:
@@ -89,8 +89,7 @@ func main() {
|
||||
HttpRequestModel requestModel,
|
||||
) {
|
||||
try {
|
||||
String result = "// SECURITY NOTICE: Please validate all inputs and URLs before use in production\n";
|
||||
result += "// This code is generated for testing purposes\n\n";
|
||||
String result = "";
|
||||
var hasBody = false;
|
||||
|
||||
String url = requestModel.url;
|
||||
|
||||
@@ -92,8 +92,7 @@ import okhttp3.MultipartBody;""";
|
||||
HttpRequestModel requestModel,
|
||||
) {
|
||||
try {
|
||||
String result = "// SECURITY NOTICE: Please validate all inputs and URLs before use in production\n";
|
||||
result += "// This code is generated for testing purposes\n\n";
|
||||
String result = "";
|
||||
bool hasQuery = false;
|
||||
bool hasBody = false;
|
||||
bool hasFormData = false;
|
||||
|
||||
@@ -80,8 +80,7 @@ import okhttp3.MediaType.Companion.toMediaType""";
|
||||
HttpRequestModel requestModel,
|
||||
) {
|
||||
try {
|
||||
String result = "// SECURITY NOTICE: Please validate all inputs and URLs before use in production\n";
|
||||
result += "// This code is generated for testing purposes\n\n";
|
||||
String result = "";
|
||||
bool hasQuery = false;
|
||||
bool hasBody = false;
|
||||
bool hasFormData = false;
|
||||
|
||||
@@ -82,8 +82,7 @@ print('Response Body:', response.text)
|
||||
String? boundary,
|
||||
}) {
|
||||
try {
|
||||
String result = "# SECURITY NOTICE: Please validate all inputs and URLs before use in production\n";
|
||||
result += "# This code is generated for testing purposes\n\n";
|
||||
String result = "";
|
||||
bool hasQuery = false;
|
||||
bool hasHeaders = false;
|
||||
bool hasBody = false;
|
||||
|
||||
Reference in New Issue
Block a user