diff OrthancFramework/Sources/RestApi/RestApiCallDocumentation.cpp @ 4424:83371ccdfe80

openapi documentation is now completed
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 29 Dec 2020 19:28:53 +0100
parents a4518adede59
children d9473bd5ed43
line wrap: on
line diff
--- a/OrthancFramework/Sources/RestApi/RestApiCallDocumentation.cpp	Tue Dec 29 16:51:28 2020 +0100
+++ b/OrthancFramework/Sources/RestApi/RestApiCallDocumentation.cpp	Tue Dec 29 19:28:53 2020 +0100
@@ -179,8 +179,6 @@
   void RestApiCallDocumentation::SetHttpGetSample(const std::string& url,
                                                   bool isJson)
   {
-    //return;  // TODO -REMOVE
-    
 #if ORTHANC_ENABLE_CURL == 1
     HttpClient client;
     client.SetUrl(url);
@@ -480,14 +478,7 @@
       {
         if (uriArguments_.find(*it) == uriArguments_.end())
         {
-          LOG(WARNING) << "Adding missing expected URI argument: " << *it;
-          Json::Value p = Json::objectValue;
-          p["name"] = *it;
-          p["in"] = "path";
-          p["required"] = true;
-          p["schema"]["type"] = "string";
-          p["description"] = "";
-          parameters.append(p);
+          throw OrthancException(ErrorCode_InternalError, "Missing URI argument: " + *it);
         }
       }