[C++] [Pistache] Model validation, general overhaul (#9251)

* overhaul pistache templates

* fix function signature in model-source
return type now aligns with definition in model-header

* use default keyword for destructors

* generate pistache samples

* move bin/configs/other/cpp-pistache-server-cpp-pistache.yaml to bin/configs/cpp-pistache-server-cpp-pistache.yaml

* Only generate validation body if necessary

* generate pistache samples
This commit is contained in:
Julian G
2021-05-05 10:52:47 +02:00
committed by GitHub
parent 4d2b022619
commit 8f5639554e
40 changed files with 1461 additions and 537 deletions

View File

@@ -19,9 +19,10 @@ namespace api {
using namespace org::openapitools::server::model;
PetApiImpl::PetApiImpl(std::shared_ptr<Pistache::Rest::Router> rtr)
PetApiImpl::PetApiImpl(const std::shared_ptr<Pistache::Rest::Router>& rtr)
: PetApi(rtr)
{ }
{
}
void PetApiImpl::add_pet(const Pet &body, Pistache::Http::ResponseWriter &response) {
response.send(Pistache::Http::Code::Ok, "Do some magic\n");