forked from loafle/openapi-generator-original
commit
5467c41dad
@ -798,12 +798,12 @@ public class DefaultCodegen {
|
|||||||
cliOptions.add(CliOption.newBoolean(CodegenConstants.ENSURE_UNIQUE_PARAMS, CodegenConstants
|
cliOptions.add(CliOption.newBoolean(CodegenConstants.ENSURE_UNIQUE_PARAMS, CodegenConstants
|
||||||
.ENSURE_UNIQUE_PARAMS_DESC).defaultValue(Boolean.TRUE.toString()));
|
.ENSURE_UNIQUE_PARAMS_DESC).defaultValue(Boolean.TRUE.toString()));
|
||||||
|
|
||||||
// initalize special character mapping
|
// initialize special character mapping
|
||||||
initalizeSpecialCharacterMapping();
|
initalizeSpecialCharacterMapping();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Initalize special character mapping
|
* Initialize special character mapping
|
||||||
*/
|
*/
|
||||||
protected void initalizeSpecialCharacterMapping() {
|
protected void initalizeSpecialCharacterMapping() {
|
||||||
// Initialize special characters
|
// Initialize special characters
|
||||||
|
@ -87,7 +87,7 @@ class {{classname}} {{#parentSchema}}extends {{{parent}}} {{/parentSchema}}imple
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
* @param mixed[] $data Associated array of property value initalizing the model
|
* @param mixed[] $data Associated array of property values initializing the model
|
||||||
*/
|
*/
|
||||||
public function __construct(array $data = null)
|
public function __construct(array $data = null)
|
||||||
{
|
{
|
||||||
|
@ -129,7 +129,7 @@ class AdditionalPropertiesClass implements ArrayAccess
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
* @param mixed[] $data Associated array of property value initalizing the model
|
* @param mixed[] $data Associated array of property values initializing the model
|
||||||
*/
|
*/
|
||||||
public function __construct(array $data = null)
|
public function __construct(array $data = null)
|
||||||
{
|
{
|
||||||
|
@ -129,7 +129,7 @@ class Animal implements ArrayAccess
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
* @param mixed[] $data Associated array of property value initalizing the model
|
* @param mixed[] $data Associated array of property values initializing the model
|
||||||
*/
|
*/
|
||||||
public function __construct(array $data = null)
|
public function __construct(array $data = null)
|
||||||
{
|
{
|
||||||
|
@ -125,7 +125,7 @@ class AnimalFarm implements ArrayAccess
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
* @param mixed[] $data Associated array of property value initalizing the model
|
* @param mixed[] $data Associated array of property values initializing the model
|
||||||
*/
|
*/
|
||||||
public function __construct(array $data = null)
|
public function __construct(array $data = null)
|
||||||
{
|
{
|
||||||
|
@ -133,7 +133,7 @@ class ApiResponse implements ArrayAccess
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
* @param mixed[] $data Associated array of property value initalizing the model
|
* @param mixed[] $data Associated array of property values initializing the model
|
||||||
*/
|
*/
|
||||||
public function __construct(array $data = null)
|
public function __construct(array $data = null)
|
||||||
{
|
{
|
||||||
|
@ -125,7 +125,7 @@ class ArrayOfArrayOfNumberOnly implements ArrayAccess
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
* @param mixed[] $data Associated array of property value initalizing the model
|
* @param mixed[] $data Associated array of property values initializing the model
|
||||||
*/
|
*/
|
||||||
public function __construct(array $data = null)
|
public function __construct(array $data = null)
|
||||||
{
|
{
|
||||||
|
@ -125,7 +125,7 @@ class ArrayOfNumberOnly implements ArrayAccess
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
* @param mixed[] $data Associated array of property value initalizing the model
|
* @param mixed[] $data Associated array of property values initializing the model
|
||||||
*/
|
*/
|
||||||
public function __construct(array $data = null)
|
public function __construct(array $data = null)
|
||||||
{
|
{
|
||||||
|
@ -133,7 +133,7 @@ class ArrayTest implements ArrayAccess
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
* @param mixed[] $data Associated array of property value initalizing the model
|
* @param mixed[] $data Associated array of property values initializing the model
|
||||||
*/
|
*/
|
||||||
public function __construct(array $data = null)
|
public function __construct(array $data = null)
|
||||||
{
|
{
|
||||||
|
@ -125,7 +125,7 @@ class Cat extends Animal implements ArrayAccess
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
* @param mixed[] $data Associated array of property value initalizing the model
|
* @param mixed[] $data Associated array of property values initializing the model
|
||||||
*/
|
*/
|
||||||
public function __construct(array $data = null)
|
public function __construct(array $data = null)
|
||||||
{
|
{
|
||||||
|
@ -129,7 +129,7 @@ class Category implements ArrayAccess
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
* @param mixed[] $data Associated array of property value initalizing the model
|
* @param mixed[] $data Associated array of property values initializing the model
|
||||||
*/
|
*/
|
||||||
public function __construct(array $data = null)
|
public function __construct(array $data = null)
|
||||||
{
|
{
|
||||||
|
@ -125,7 +125,7 @@ class Client implements ArrayAccess
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
* @param mixed[] $data Associated array of property value initalizing the model
|
* @param mixed[] $data Associated array of property values initializing the model
|
||||||
*/
|
*/
|
||||||
public function __construct(array $data = null)
|
public function __construct(array $data = null)
|
||||||
{
|
{
|
||||||
|
@ -125,7 +125,7 @@ class Dog extends Animal implements ArrayAccess
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
* @param mixed[] $data Associated array of property value initalizing the model
|
* @param mixed[] $data Associated array of property values initializing the model
|
||||||
*/
|
*/
|
||||||
public function __construct(array $data = null)
|
public function __construct(array $data = null)
|
||||||
{
|
{
|
||||||
|
@ -157,7 +157,7 @@ class EnumArrays implements ArrayAccess
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
* @param mixed[] $data Associated array of property value initalizing the model
|
* @param mixed[] $data Associated array of property values initializing the model
|
||||||
*/
|
*/
|
||||||
public function __construct(array $data = null)
|
public function __construct(array $data = null)
|
||||||
{
|
{
|
||||||
|
@ -175,7 +175,7 @@ class EnumTest implements ArrayAccess
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
* @param mixed[] $data Associated array of property value initalizing the model
|
* @param mixed[] $data Associated array of property values initializing the model
|
||||||
*/
|
*/
|
||||||
public function __construct(array $data = null)
|
public function __construct(array $data = null)
|
||||||
{
|
{
|
||||||
|
@ -173,7 +173,7 @@ class FormatTest implements ArrayAccess
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
* @param mixed[] $data Associated array of property value initalizing the model
|
* @param mixed[] $data Associated array of property values initializing the model
|
||||||
*/
|
*/
|
||||||
public function __construct(array $data = null)
|
public function __construct(array $data = null)
|
||||||
{
|
{
|
||||||
|
@ -129,7 +129,7 @@ class HasOnlyReadOnly implements ArrayAccess
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
* @param mixed[] $data Associated array of property value initalizing the model
|
* @param mixed[] $data Associated array of property values initializing the model
|
||||||
*/
|
*/
|
||||||
public function __construct(array $data = null)
|
public function __construct(array $data = null)
|
||||||
{
|
{
|
||||||
|
@ -143,7 +143,7 @@ class MapTest implements ArrayAccess
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
* @param mixed[] $data Associated array of property value initalizing the model
|
* @param mixed[] $data Associated array of property values initializing the model
|
||||||
*/
|
*/
|
||||||
public function __construct(array $data = null)
|
public function __construct(array $data = null)
|
||||||
{
|
{
|
||||||
|
@ -133,7 +133,7 @@ class MixedPropertiesAndAdditionalPropertiesClass implements ArrayAccess
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
* @param mixed[] $data Associated array of property value initalizing the model
|
* @param mixed[] $data Associated array of property values initializing the model
|
||||||
*/
|
*/
|
||||||
public function __construct(array $data = null)
|
public function __construct(array $data = null)
|
||||||
{
|
{
|
||||||
|
@ -130,7 +130,7 @@ class Model200Response implements ArrayAccess
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
* @param mixed[] $data Associated array of property value initalizing the model
|
* @param mixed[] $data Associated array of property values initializing the model
|
||||||
*/
|
*/
|
||||||
public function __construct(array $data = null)
|
public function __construct(array $data = null)
|
||||||
{
|
{
|
||||||
|
@ -125,7 +125,7 @@ class ModelList implements ArrayAccess
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
* @param mixed[] $data Associated array of property value initalizing the model
|
* @param mixed[] $data Associated array of property values initializing the model
|
||||||
*/
|
*/
|
||||||
public function __construct(array $data = null)
|
public function __construct(array $data = null)
|
||||||
{
|
{
|
||||||
|
@ -126,7 +126,7 @@ class ModelReturn implements ArrayAccess
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
* @param mixed[] $data Associated array of property value initalizing the model
|
* @param mixed[] $data Associated array of property values initializing the model
|
||||||
*/
|
*/
|
||||||
public function __construct(array $data = null)
|
public function __construct(array $data = null)
|
||||||
{
|
{
|
||||||
|
@ -138,7 +138,7 @@ class Name implements ArrayAccess
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
* @param mixed[] $data Associated array of property value initalizing the model
|
* @param mixed[] $data Associated array of property values initializing the model
|
||||||
*/
|
*/
|
||||||
public function __construct(array $data = null)
|
public function __construct(array $data = null)
|
||||||
{
|
{
|
||||||
|
@ -125,7 +125,7 @@ class NumberOnly implements ArrayAccess
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
* @param mixed[] $data Associated array of property value initalizing the model
|
* @param mixed[] $data Associated array of property values initializing the model
|
||||||
*/
|
*/
|
||||||
public function __construct(array $data = null)
|
public function __construct(array $data = null)
|
||||||
{
|
{
|
||||||
|
@ -161,7 +161,7 @@ class Order implements ArrayAccess
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
* @param mixed[] $data Associated array of property value initalizing the model
|
* @param mixed[] $data Associated array of property values initializing the model
|
||||||
*/
|
*/
|
||||||
public function __construct(array $data = null)
|
public function __construct(array $data = null)
|
||||||
{
|
{
|
||||||
|
@ -161,7 +161,7 @@ class Pet implements ArrayAccess
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
* @param mixed[] $data Associated array of property value initalizing the model
|
* @param mixed[] $data Associated array of property values initializing the model
|
||||||
*/
|
*/
|
||||||
public function __construct(array $data = null)
|
public function __construct(array $data = null)
|
||||||
{
|
{
|
||||||
|
@ -129,7 +129,7 @@ class ReadOnlyFirst implements ArrayAccess
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
* @param mixed[] $data Associated array of property value initalizing the model
|
* @param mixed[] $data Associated array of property values initializing the model
|
||||||
*/
|
*/
|
||||||
public function __construct(array $data = null)
|
public function __construct(array $data = null)
|
||||||
{
|
{
|
||||||
|
@ -125,7 +125,7 @@ class SpecialModelName implements ArrayAccess
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
* @param mixed[] $data Associated array of property value initalizing the model
|
* @param mixed[] $data Associated array of property values initializing the model
|
||||||
*/
|
*/
|
||||||
public function __construct(array $data = null)
|
public function __construct(array $data = null)
|
||||||
{
|
{
|
||||||
|
@ -129,7 +129,7 @@ class Tag implements ArrayAccess
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
* @param mixed[] $data Associated array of property value initalizing the model
|
* @param mixed[] $data Associated array of property values initializing the model
|
||||||
*/
|
*/
|
||||||
public function __construct(array $data = null)
|
public function __construct(array $data = null)
|
||||||
{
|
{
|
||||||
|
@ -153,7 +153,7 @@ class User implements ArrayAccess
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
* @param mixed[] $data Associated array of property value initalizing the model
|
* @param mixed[] $data Associated array of property values initializing the model
|
||||||
*/
|
*/
|
||||||
public function __construct(array $data = null)
|
public function __construct(array $data = null)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user