mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-10-14 16:33:56 +00:00
update copyright, minor code formatting change (#21569)
This commit is contained in:
parent
7f2ee8520e
commit
ee77b7f4f0
@ -1,6 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2018 OpenAPI-Generator Contributors (https://openapi-generator.tech)
|
* Copyright 2018 OpenAPI-Generator Contributors (https://openapi-generator.tech)
|
||||||
* Copyright 2018 SmartBear Software
|
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@ -106,16 +105,16 @@ public class CppOatppServerCodegen extends AbstractCppCodegen {
|
|||||||
|
|
||||||
languageSpecificPrimitives = new HashSet<>(
|
languageSpecificPrimitives = new HashSet<>(
|
||||||
Arrays.asList(
|
Arrays.asList(
|
||||||
"oatpp::String",
|
"oatpp::String",
|
||||||
"oatpp::Boolean",
|
"oatpp::Boolean",
|
||||||
"oatpp::Int32",
|
"oatpp::Int32",
|
||||||
"oatpp::Int64",
|
"oatpp::Int64",
|
||||||
"oatpp::Vector",
|
"oatpp::Vector",
|
||||||
"oatpp::Fields",
|
"oatpp::Fields",
|
||||||
"oatpp::UnorderedSet",
|
"oatpp::UnorderedSet",
|
||||||
"oatpp::Object",
|
"oatpp::Object",
|
||||||
"oatpp::Float64",
|
"oatpp::Float64",
|
||||||
"oatpp::Any"
|
"oatpp::Any"
|
||||||
));
|
));
|
||||||
|
|
||||||
typeMapping = new HashMap<>();
|
typeMapping = new HashMap<>();
|
||||||
@ -276,7 +275,7 @@ public class CppOatppServerCodegen extends AbstractCppCodegen {
|
|||||||
/**
|
/**
|
||||||
* postProcessSingleParam - Modifies a single parameter, adjusting generated
|
* postProcessSingleParam - Modifies a single parameter, adjusting generated
|
||||||
* data types for Header and Query parameters.
|
* data types for Header and Query parameters.
|
||||||
*
|
*
|
||||||
* @param param CodegenParameter to be modified.
|
* @param param CodegenParameter to be modified.
|
||||||
*/
|
*/
|
||||||
private static void postProcessSingleParam(CodegenParameter param) {
|
private static void postProcessSingleParam(CodegenParameter param) {
|
||||||
@ -357,7 +356,7 @@ public class CppOatppServerCodegen extends AbstractCppCodegen {
|
|||||||
return toModelName(openAPIType);
|
return toModelName(openAPIType);
|
||||||
}
|
}
|
||||||
|
|
||||||
String namespace = (String)additionalProperties.get("modelNamespace");
|
String namespace = (String) additionalProperties.get("modelNamespace");
|
||||||
return namespace + "::" + openAPIType;
|
return namespace + "::" + openAPIType;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user