[cpp-pistache-server] Fix missing semicolon in template and missing code to set default values of model schema (#10136)

* BUG FIX: A missing semicolon in cpp-pistache-server generated code.

* BUG FIX: Provide default values of schema in cpp-pistache-server generated code.

* BUG FIX: Provide default values of schema in cpp-pistache-server generated code.
This commit is contained in:
shayan-eftekhari
2021-08-14 18:32:14 +02:00
committed by GitHub
parent 55ff5a0807
commit 8569ff8203
5 changed files with 61 additions and 24 deletions

View File

@@ -51,7 +51,7 @@ std::pair<Pistache::Http::Code, std::string> StoreApi::handleParsingException(co
} catch (org::openapitools::server::helpers::ValidationException &e) {
return std::make_pair(Pistache::Http::Code::Bad_Request, e.what());
} catch (std::exception &e) {
return std::make_pair(Pistache::Http::Code::Internal_Server_Error, e.what())
return std::make_pair(Pistache::Http::Code::Internal_Server_Error, e.what());
}
}