diff --git a/modules/openapi-generator/src/main/resources/cpp-pistache-server/api-source.mustache b/modules/openapi-generator/src/main/resources/cpp-pistache-server/api-source.mustache index c529fbea5799..3f7f4e0b7402 100644 --- a/modules/openapi-generator/src/main/resources/cpp-pistache-server/api-source.mustache +++ b/modules/openapi-generator/src/main/resources/cpp-pistache-server/api-source.mustache @@ -79,10 +79,14 @@ void {{classname}}::{{operationIdSnakeCase}}_handler(const Pistache::Rest::Reque try { this->{{operationIdSnakeCase}}(request, response); {{/vendorExtensions.x-codegen-pistache-isParsingSupported}} - } catch (std::runtime_error & e) { - //send a 400 error - response.send(Pistache::Http::Code::Bad_Request, e.what()); - return; + } catch (nlohmann::detail::exception &e) { + //send a 400 error + response.send(Pistache::Http::Code::Bad_Request, e.what()); + return; + } catch (std::runtime_error &e) { + //send a 500 error + response.send(Pistache::Http::Code::Internal_Server_Error, e.what()); + return; } } diff --git a/samples/server/petstore/cpp-pistache/api/PetApi.cpp b/samples/server/petstore/cpp-pistache/api/PetApi.cpp index 5ffab955c55c..5ef93e9f73e2 100644 --- a/samples/server/petstore/cpp-pistache/api/PetApi.cpp +++ b/samples/server/petstore/cpp-pistache/api/PetApi.cpp @@ -2,7 +2,7 @@ * OpenAPI Petstore * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. * -* OpenAPI spec version: 1.0.0 +* The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -54,10 +54,14 @@ void PetApi::add_pet_handler(const Pistache::Rest::Request &request, Pistache::H try { nlohmann::json::parse(request.body()).get_to(body); this->add_pet(body, response); - } catch (std::runtime_error & e) { - //send a 400 error - response.send(Pistache::Http::Code::Bad_Request, e.what()); - return; + } catch (nlohmann::detail::exception &e) { + //send a 400 error + response.send(Pistache::Http::Code::Bad_Request, e.what()); + return; + } catch (std::runtime_error &e) { + //send a 500 error + response.send(Pistache::Http::Code::Internal_Server_Error, e.what()); + return; } } @@ -70,10 +74,14 @@ void PetApi::delete_pet_handler(const Pistache::Rest::Request &request, Pistache try { this->delete_pet(petId, apiKey, response); - } catch (std::runtime_error & e) { - //send a 400 error - response.send(Pistache::Http::Code::Bad_Request, e.what()); - return; + } catch (nlohmann::detail::exception &e) { + //send a 400 error + response.send(Pistache::Http::Code::Bad_Request, e.what()); + return; + } catch (std::runtime_error &e) { + //send a 500 error + response.send(Pistache::Http::Code::Internal_Server_Error, e.what()); + return; } } @@ -91,10 +99,14 @@ void PetApi::find_pets_by_status_handler(const Pistache::Rest::Request &request, try { this->find_pets_by_status(status, response); - } catch (std::runtime_error & e) { - //send a 400 error - response.send(Pistache::Http::Code::Bad_Request, e.what()); - return; + } catch (nlohmann::detail::exception &e) { + //send a 400 error + response.send(Pistache::Http::Code::Bad_Request, e.what()); + return; + } catch (std::runtime_error &e) { + //send a 500 error + response.send(Pistache::Http::Code::Internal_Server_Error, e.what()); + return; } } @@ -112,10 +124,14 @@ void PetApi::find_pets_by_tags_handler(const Pistache::Rest::Request &request, P try { this->find_pets_by_tags(tags, response); - } catch (std::runtime_error & e) { - //send a 400 error - response.send(Pistache::Http::Code::Bad_Request, e.what()); - return; + } catch (nlohmann::detail::exception &e) { + //send a 400 error + response.send(Pistache::Http::Code::Bad_Request, e.what()); + return; + } catch (std::runtime_error &e) { + //send a 500 error + response.send(Pistache::Http::Code::Internal_Server_Error, e.what()); + return; } } @@ -125,10 +141,14 @@ void PetApi::get_pet_by_id_handler(const Pistache::Rest::Request &request, Pista try { this->get_pet_by_id(petId, response); - } catch (std::runtime_error & e) { - //send a 400 error - response.send(Pistache::Http::Code::Bad_Request, e.what()); - return; + } catch (nlohmann::detail::exception &e) { + //send a 400 error + response.send(Pistache::Http::Code::Bad_Request, e.what()); + return; + } catch (std::runtime_error &e) { + //send a 500 error + response.send(Pistache::Http::Code::Internal_Server_Error, e.what()); + return; } } @@ -141,30 +161,42 @@ void PetApi::update_pet_handler(const Pistache::Rest::Request &request, Pistache try { nlohmann::json::parse(request.body()).get_to(body); this->update_pet(body, response); - } catch (std::runtime_error & e) { - //send a 400 error - response.send(Pistache::Http::Code::Bad_Request, e.what()); - return; + } catch (nlohmann::detail::exception &e) { + //send a 400 error + response.send(Pistache::Http::Code::Bad_Request, e.what()); + return; + } catch (std::runtime_error &e) { + //send a 500 error + response.send(Pistache::Http::Code::Internal_Server_Error, e.what()); + return; } } void PetApi::update_pet_with_form_handler(const Pistache::Rest::Request &request, Pistache::Http::ResponseWriter response) { try { this->update_pet_with_form(request, response); - } catch (std::runtime_error & e) { - //send a 400 error - response.send(Pistache::Http::Code::Bad_Request, e.what()); - return; + } catch (nlohmann::detail::exception &e) { + //send a 400 error + response.send(Pistache::Http::Code::Bad_Request, e.what()); + return; + } catch (std::runtime_error &e) { + //send a 500 error + response.send(Pistache::Http::Code::Internal_Server_Error, e.what()); + return; } } void PetApi::upload_file_handler(const Pistache::Rest::Request &request, Pistache::Http::ResponseWriter response) { try { this->upload_file(request, response); - } catch (std::runtime_error & e) { - //send a 400 error - response.send(Pistache::Http::Code::Bad_Request, e.what()); - return; + } catch (nlohmann::detail::exception &e) { + //send a 400 error + response.send(Pistache::Http::Code::Bad_Request, e.what()); + return; + } catch (std::runtime_error &e) { + //send a 500 error + response.send(Pistache::Http::Code::Internal_Server_Error, e.what()); + return; } } diff --git a/samples/server/petstore/cpp-pistache/api/PetApi.h b/samples/server/petstore/cpp-pistache/api/PetApi.h index c84ca384279e..d991d13abaed 100644 --- a/samples/server/petstore/cpp-pistache/api/PetApi.h +++ b/samples/server/petstore/cpp-pistache/api/PetApi.h @@ -2,7 +2,7 @@ * OpenAPI Petstore * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. * -* OpenAPI spec version: 1.0.0 +* The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/samples/server/petstore/cpp-pistache/api/StoreApi.cpp b/samples/server/petstore/cpp-pistache/api/StoreApi.cpp index 98e4d387a190..6987e9cc8538 100644 --- a/samples/server/petstore/cpp-pistache/api/StoreApi.cpp +++ b/samples/server/petstore/cpp-pistache/api/StoreApi.cpp @@ -2,7 +2,7 @@ * OpenAPI Petstore * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. * -* OpenAPI spec version: 1.0.0 +* The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -47,10 +47,14 @@ void StoreApi::delete_order_handler(const Pistache::Rest::Request &request, Pist try { this->delete_order(orderId, response); - } catch (std::runtime_error & e) { - //send a 400 error - response.send(Pistache::Http::Code::Bad_Request, e.what()); - return; + } catch (nlohmann::detail::exception &e) { + //send a 400 error + response.send(Pistache::Http::Code::Bad_Request, e.what()); + return; + } catch (std::runtime_error &e) { + //send a 500 error + response.send(Pistache::Http::Code::Internal_Server_Error, e.what()); + return; } } @@ -58,10 +62,14 @@ void StoreApi::get_inventory_handler(const Pistache::Rest::Request &request, Pis try { this->get_inventory(response); - } catch (std::runtime_error & e) { - //send a 400 error - response.send(Pistache::Http::Code::Bad_Request, e.what()); - return; + } catch (nlohmann::detail::exception &e) { + //send a 400 error + response.send(Pistache::Http::Code::Bad_Request, e.what()); + return; + } catch (std::runtime_error &e) { + //send a 500 error + response.send(Pistache::Http::Code::Internal_Server_Error, e.what()); + return; } } @@ -71,10 +79,14 @@ void StoreApi::get_order_by_id_handler(const Pistache::Rest::Request &request, P try { this->get_order_by_id(orderId, response); - } catch (std::runtime_error & e) { - //send a 400 error - response.send(Pistache::Http::Code::Bad_Request, e.what()); - return; + } catch (nlohmann::detail::exception &e) { + //send a 400 error + response.send(Pistache::Http::Code::Bad_Request, e.what()); + return; + } catch (std::runtime_error &e) { + //send a 500 error + response.send(Pistache::Http::Code::Internal_Server_Error, e.what()); + return; } } @@ -87,10 +99,14 @@ void StoreApi::place_order_handler(const Pistache::Rest::Request &request, Pista try { nlohmann::json::parse(request.body()).get_to(body); this->place_order(body, response); - } catch (std::runtime_error & e) { - //send a 400 error - response.send(Pistache::Http::Code::Bad_Request, e.what()); - return; + } catch (nlohmann::detail::exception &e) { + //send a 400 error + response.send(Pistache::Http::Code::Bad_Request, e.what()); + return; + } catch (std::runtime_error &e) { + //send a 500 error + response.send(Pistache::Http::Code::Internal_Server_Error, e.what()); + return; } } diff --git a/samples/server/petstore/cpp-pistache/api/StoreApi.h b/samples/server/petstore/cpp-pistache/api/StoreApi.h index cde0755f1383..f69875c4678d 100644 --- a/samples/server/petstore/cpp-pistache/api/StoreApi.h +++ b/samples/server/petstore/cpp-pistache/api/StoreApi.h @@ -2,7 +2,7 @@ * OpenAPI Petstore * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. * -* OpenAPI spec version: 1.0.0 +* The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/samples/server/petstore/cpp-pistache/api/UserApi.cpp b/samples/server/petstore/cpp-pistache/api/UserApi.cpp index f539a61c7e96..f64232454a2c 100644 --- a/samples/server/petstore/cpp-pistache/api/UserApi.cpp +++ b/samples/server/petstore/cpp-pistache/api/UserApi.cpp @@ -2,7 +2,7 @@ * OpenAPI Petstore * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. * -* OpenAPI spec version: 1.0.0 +* The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -54,10 +54,14 @@ void UserApi::create_user_handler(const Pistache::Rest::Request &request, Pistac try { nlohmann::json::parse(request.body()).get_to(body); this->create_user(body, response); - } catch (std::runtime_error & e) { - //send a 400 error - response.send(Pistache::Http::Code::Bad_Request, e.what()); - return; + } catch (nlohmann::detail::exception &e) { + //send a 400 error + response.send(Pistache::Http::Code::Bad_Request, e.what()); + return; + } catch (std::runtime_error &e) { + //send a 500 error + response.send(Pistache::Http::Code::Internal_Server_Error, e.what()); + return; } } @@ -69,10 +73,14 @@ void UserApi::create_users_with_array_input_handler(const Pistache::Rest::Reques try { nlohmann::json::parse(request.body()).get_to(body); this->create_users_with_array_input(body, response); - } catch (std::runtime_error & e) { - //send a 400 error - response.send(Pistache::Http::Code::Bad_Request, e.what()); - return; + } catch (nlohmann::detail::exception &e) { + //send a 400 error + response.send(Pistache::Http::Code::Bad_Request, e.what()); + return; + } catch (std::runtime_error &e) { + //send a 500 error + response.send(Pistache::Http::Code::Internal_Server_Error, e.what()); + return; } } @@ -84,10 +92,14 @@ void UserApi::create_users_with_list_input_handler(const Pistache::Rest::Request try { nlohmann::json::parse(request.body()).get_to(body); this->create_users_with_list_input(body, response); - } catch (std::runtime_error & e) { - //send a 400 error - response.send(Pistache::Http::Code::Bad_Request, e.what()); - return; + } catch (nlohmann::detail::exception &e) { + //send a 400 error + response.send(Pistache::Http::Code::Bad_Request, e.what()); + return; + } catch (std::runtime_error &e) { + //send a 500 error + response.send(Pistache::Http::Code::Internal_Server_Error, e.what()); + return; } } @@ -97,10 +109,14 @@ void UserApi::delete_user_handler(const Pistache::Rest::Request &request, Pistac try { this->delete_user(username, response); - } catch (std::runtime_error & e) { - //send a 400 error - response.send(Pistache::Http::Code::Bad_Request, e.what()); - return; + } catch (nlohmann::detail::exception &e) { + //send a 400 error + response.send(Pistache::Http::Code::Bad_Request, e.what()); + return; + } catch (std::runtime_error &e) { + //send a 500 error + response.send(Pistache::Http::Code::Internal_Server_Error, e.what()); + return; } } @@ -110,10 +126,14 @@ void UserApi::get_user_by_name_handler(const Pistache::Rest::Request &request, P try { this->get_user_by_name(username, response); - } catch (std::runtime_error & e) { - //send a 400 error - response.send(Pistache::Http::Code::Bad_Request, e.what()); - return; + } catch (nlohmann::detail::exception &e) { + //send a 400 error + response.send(Pistache::Http::Code::Bad_Request, e.what()); + return; + } catch (std::runtime_error &e) { + //send a 500 error + response.send(Pistache::Http::Code::Internal_Server_Error, e.what()); + return; } } @@ -139,10 +159,14 @@ void UserApi::login_user_handler(const Pistache::Rest::Request &request, Pistach try { this->login_user(username, password, response); - } catch (std::runtime_error & e) { - //send a 400 error - response.send(Pistache::Http::Code::Bad_Request, e.what()); - return; + } catch (nlohmann::detail::exception &e) { + //send a 400 error + response.send(Pistache::Http::Code::Bad_Request, e.what()); + return; + } catch (std::runtime_error &e) { + //send a 500 error + response.send(Pistache::Http::Code::Internal_Server_Error, e.what()); + return; } } @@ -150,10 +174,14 @@ void UserApi::logout_user_handler(const Pistache::Rest::Request &request, Pistac try { this->logout_user(response); - } catch (std::runtime_error & e) { - //send a 400 error - response.send(Pistache::Http::Code::Bad_Request, e.what()); - return; + } catch (nlohmann::detail::exception &e) { + //send a 400 error + response.send(Pistache::Http::Code::Bad_Request, e.what()); + return; + } catch (std::runtime_error &e) { + //send a 500 error + response.send(Pistache::Http::Code::Internal_Server_Error, e.what()); + return; } } @@ -168,10 +196,14 @@ void UserApi::update_user_handler(const Pistache::Rest::Request &request, Pistac try { nlohmann::json::parse(request.body()).get_to(body); this->update_user(username, body, response); - } catch (std::runtime_error & e) { - //send a 400 error - response.send(Pistache::Http::Code::Bad_Request, e.what()); - return; + } catch (nlohmann::detail::exception &e) { + //send a 400 error + response.send(Pistache::Http::Code::Bad_Request, e.what()); + return; + } catch (std::runtime_error &e) { + //send a 500 error + response.send(Pistache::Http::Code::Internal_Server_Error, e.what()); + return; } } diff --git a/samples/server/petstore/cpp-pistache/api/UserApi.h b/samples/server/petstore/cpp-pistache/api/UserApi.h index 7083c7643070..6c589979dbc9 100644 --- a/samples/server/petstore/cpp-pistache/api/UserApi.h +++ b/samples/server/petstore/cpp-pistache/api/UserApi.h @@ -2,7 +2,7 @@ * OpenAPI Petstore * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. * -* OpenAPI spec version: 1.0.0 +* The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/samples/server/petstore/cpp-pistache/impl/PetApiImpl.cpp b/samples/server/petstore/cpp-pistache/impl/PetApiImpl.cpp index b35b40899b01..778117a18bbe 100644 --- a/samples/server/petstore/cpp-pistache/impl/PetApiImpl.cpp +++ b/samples/server/petstore/cpp-pistache/impl/PetApiImpl.cpp @@ -2,7 +2,7 @@ * OpenAPI Petstore * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. * -* OpenAPI spec version: 1.0.0 +* The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/samples/server/petstore/cpp-pistache/impl/PetApiImpl.h b/samples/server/petstore/cpp-pistache/impl/PetApiImpl.h index 7b4f3d324050..9e9f3d145baf 100644 --- a/samples/server/petstore/cpp-pistache/impl/PetApiImpl.h +++ b/samples/server/petstore/cpp-pistache/impl/PetApiImpl.h @@ -2,7 +2,7 @@ * OpenAPI Petstore * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. * -* OpenAPI spec version: 1.0.0 +* The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/samples/server/petstore/cpp-pistache/impl/StoreApiImpl.cpp b/samples/server/petstore/cpp-pistache/impl/StoreApiImpl.cpp index 63030737b61e..ef164eb0543e 100644 --- a/samples/server/petstore/cpp-pistache/impl/StoreApiImpl.cpp +++ b/samples/server/petstore/cpp-pistache/impl/StoreApiImpl.cpp @@ -2,7 +2,7 @@ * OpenAPI Petstore * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. * -* OpenAPI spec version: 1.0.0 +* The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/samples/server/petstore/cpp-pistache/impl/StoreApiImpl.h b/samples/server/petstore/cpp-pistache/impl/StoreApiImpl.h index 71689ae18b1d..c99372463184 100644 --- a/samples/server/petstore/cpp-pistache/impl/StoreApiImpl.h +++ b/samples/server/petstore/cpp-pistache/impl/StoreApiImpl.h @@ -2,7 +2,7 @@ * OpenAPI Petstore * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. * -* OpenAPI spec version: 1.0.0 +* The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/samples/server/petstore/cpp-pistache/impl/UserApiImpl.cpp b/samples/server/petstore/cpp-pistache/impl/UserApiImpl.cpp index 2e7b06d956d8..7163a560bd77 100644 --- a/samples/server/petstore/cpp-pistache/impl/UserApiImpl.cpp +++ b/samples/server/petstore/cpp-pistache/impl/UserApiImpl.cpp @@ -2,7 +2,7 @@ * OpenAPI Petstore * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. * -* OpenAPI spec version: 1.0.0 +* The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/samples/server/petstore/cpp-pistache/impl/UserApiImpl.h b/samples/server/petstore/cpp-pistache/impl/UserApiImpl.h index 9bde4fc572a2..8f22c4998894 100644 --- a/samples/server/petstore/cpp-pistache/impl/UserApiImpl.h +++ b/samples/server/petstore/cpp-pistache/impl/UserApiImpl.h @@ -2,7 +2,7 @@ * OpenAPI Petstore * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. * -* OpenAPI spec version: 1.0.0 +* The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/samples/server/petstore/cpp-pistache/main-api-server.cpp b/samples/server/petstore/cpp-pistache/main-api-server.cpp index 053fd0dbce08..191b60b7712f 100644 --- a/samples/server/petstore/cpp-pistache/main-api-server.cpp +++ b/samples/server/petstore/cpp-pistache/main-api-server.cpp @@ -2,7 +2,7 @@ * OpenAPI Petstore * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. * -* OpenAPI spec version: 1.0.0 +* The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/samples/server/petstore/cpp-pistache/model/ApiResponse.cpp b/samples/server/petstore/cpp-pistache/model/ApiResponse.cpp index 93b2961d0321..a78fb1cc7f97 100644 --- a/samples/server/petstore/cpp-pistache/model/ApiResponse.cpp +++ b/samples/server/petstore/cpp-pistache/model/ApiResponse.cpp @@ -2,7 +2,7 @@ * OpenAPI Petstore * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. * -* OpenAPI spec version: 1.0.0 +* The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/samples/server/petstore/cpp-pistache/model/ApiResponse.h b/samples/server/petstore/cpp-pistache/model/ApiResponse.h index 3291251d8cb5..7ecb6c9a82ec 100644 --- a/samples/server/petstore/cpp-pistache/model/ApiResponse.h +++ b/samples/server/petstore/cpp-pistache/model/ApiResponse.h @@ -2,7 +2,7 @@ * OpenAPI Petstore * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. * -* OpenAPI spec version: 1.0.0 +* The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/samples/server/petstore/cpp-pistache/model/Category.cpp b/samples/server/petstore/cpp-pistache/model/Category.cpp index 80112511b825..2abb0c3c5e2a 100644 --- a/samples/server/petstore/cpp-pistache/model/Category.cpp +++ b/samples/server/petstore/cpp-pistache/model/Category.cpp @@ -2,7 +2,7 @@ * OpenAPI Petstore * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. * -* OpenAPI spec version: 1.0.0 +* The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/samples/server/petstore/cpp-pistache/model/Category.h b/samples/server/petstore/cpp-pistache/model/Category.h index 4018607b4350..fa12fdc0de8d 100644 --- a/samples/server/petstore/cpp-pistache/model/Category.h +++ b/samples/server/petstore/cpp-pistache/model/Category.h @@ -2,7 +2,7 @@ * OpenAPI Petstore * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. * -* OpenAPI spec version: 1.0.0 +* The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/samples/server/petstore/cpp-pistache/model/Helpers.cpp b/samples/server/petstore/cpp-pistache/model/Helpers.cpp index 8c0e859b6421..b518f8106d77 100644 --- a/samples/server/petstore/cpp-pistache/model/Helpers.cpp +++ b/samples/server/petstore/cpp-pistache/model/Helpers.cpp @@ -2,7 +2,7 @@ * OpenAPI Petstore * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. * -* OpenAPI spec version: 1.0.0 +* The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/samples/server/petstore/cpp-pistache/model/Helpers.h b/samples/server/petstore/cpp-pistache/model/Helpers.h index 8c62ecda5a0a..9c8c02c4ae61 100644 --- a/samples/server/petstore/cpp-pistache/model/Helpers.h +++ b/samples/server/petstore/cpp-pistache/model/Helpers.h @@ -2,7 +2,7 @@ * OpenAPI Petstore * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. * -* OpenAPI spec version: 1.0.0 +* The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/samples/server/petstore/cpp-pistache/model/Order.cpp b/samples/server/petstore/cpp-pistache/model/Order.cpp index a0bda775a56e..b24cc0fce92e 100644 --- a/samples/server/petstore/cpp-pistache/model/Order.cpp +++ b/samples/server/petstore/cpp-pistache/model/Order.cpp @@ -2,7 +2,7 @@ * OpenAPI Petstore * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. * -* OpenAPI spec version: 1.0.0 +* The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/samples/server/petstore/cpp-pistache/model/Order.h b/samples/server/petstore/cpp-pistache/model/Order.h index b4d4598b749a..d900b633f32c 100644 --- a/samples/server/petstore/cpp-pistache/model/Order.h +++ b/samples/server/petstore/cpp-pistache/model/Order.h @@ -2,7 +2,7 @@ * OpenAPI Petstore * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. * -* OpenAPI spec version: 1.0.0 +* The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/samples/server/petstore/cpp-pistache/model/Pet.cpp b/samples/server/petstore/cpp-pistache/model/Pet.cpp index 40699f133340..7781e283cebc 100644 --- a/samples/server/petstore/cpp-pistache/model/Pet.cpp +++ b/samples/server/petstore/cpp-pistache/model/Pet.cpp @@ -2,7 +2,7 @@ * OpenAPI Petstore * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. * -* OpenAPI spec version: 1.0.0 +* The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/samples/server/petstore/cpp-pistache/model/Pet.h b/samples/server/petstore/cpp-pistache/model/Pet.h index 22eeb9570f48..f23ef47832d2 100644 --- a/samples/server/petstore/cpp-pistache/model/Pet.h +++ b/samples/server/petstore/cpp-pistache/model/Pet.h @@ -2,7 +2,7 @@ * OpenAPI Petstore * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. * -* OpenAPI spec version: 1.0.0 +* The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/samples/server/petstore/cpp-pistache/model/Tag.cpp b/samples/server/petstore/cpp-pistache/model/Tag.cpp index 4a1349f0e944..b81cb825724b 100644 --- a/samples/server/petstore/cpp-pistache/model/Tag.cpp +++ b/samples/server/petstore/cpp-pistache/model/Tag.cpp @@ -2,7 +2,7 @@ * OpenAPI Petstore * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. * -* OpenAPI spec version: 1.0.0 +* The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/samples/server/petstore/cpp-pistache/model/Tag.h b/samples/server/petstore/cpp-pistache/model/Tag.h index bb5dff9f922b..4b422931d771 100644 --- a/samples/server/petstore/cpp-pistache/model/Tag.h +++ b/samples/server/petstore/cpp-pistache/model/Tag.h @@ -2,7 +2,7 @@ * OpenAPI Petstore * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. * -* OpenAPI spec version: 1.0.0 +* The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/samples/server/petstore/cpp-pistache/model/User.cpp b/samples/server/petstore/cpp-pistache/model/User.cpp index 9c467a10d86f..66a026e9c78f 100644 --- a/samples/server/petstore/cpp-pistache/model/User.cpp +++ b/samples/server/petstore/cpp-pistache/model/User.cpp @@ -2,7 +2,7 @@ * OpenAPI Petstore * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. * -* OpenAPI spec version: 1.0.0 +* The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/samples/server/petstore/cpp-pistache/model/User.h b/samples/server/petstore/cpp-pistache/model/User.h index 4b8cd2b19626..1f4c17ce6a81 100644 --- a/samples/server/petstore/cpp-pistache/model/User.h +++ b/samples/server/petstore/cpp-pistache/model/User.h @@ -2,7 +2,7 @@ * OpenAPI Petstore * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. * -* OpenAPI spec version: 1.0.0 +* The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).