mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-05-12 12:40:53 +00:00
Replace stray TAB characters with spaces (#17311)
* Replace stray TAB characters with spaces * update samples --------- Co-authored-by: William Cheng <wing328hk@gmail.com>
This commit is contained in:
parent
391df3b81c
commit
39d5b4ebf9
@ -7,8 +7,8 @@ declare cwd="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
declare root="$(cd "$cwd" && cd ../ && pwd)"
|
||||
|
||||
if ! command -v gradle > /dev/null; then
|
||||
echo "[WARN] This script requires a system gradle to be installed. Not treating this as an error."
|
||||
exit 0
|
||||
echo "[WARN] This script requires a system gradle to be installed. Not treating this as an error."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
executable="${root}/modules/openapi-generator-cli/target/openapi-generator-cli.jar"
|
||||
|
@ -110,6 +110,6 @@ No, please use `swift3` or `swift4` generator instead as we want to focus on Swi
|
||||
Yes, please use the following option when generating TypeScript clients:
|
||||
|
||||
```
|
||||
modelPropertyNaming
|
||||
Naming convention for the property: 'camelCase', 'PascalCase', 'snake_case' and 'original', which keeps the original name (Default: camelCase)
|
||||
modelPropertyNaming
|
||||
Naming convention for the property: 'camelCase', 'PascalCase', 'snake_case' and 'original', which keeps the original name (Default: camelCase)
|
||||
```
|
||||
|
@ -45,7 +45,7 @@ abstract project Config is
|
||||
when "debug" =>
|
||||
for Default_Switches ("Ada") use ("-E");
|
||||
|
||||
when others =>
|
||||
when others =>
|
||||
for Default_Switches ("Ada") use ("-E");
|
||||
|
||||
end case;
|
||||
@ -64,12 +64,12 @@ abstract project Config is
|
||||
|
||||
when "coverage" =>
|
||||
for Default_Switches ("ada") use ("-fprofile-arcs");
|
||||
|
||||
when others =>
|
||||
null;
|
||||
|
||||
when others =>
|
||||
null;
|
||||
end case;
|
||||
|
||||
end linker;
|
||||
end linker;
|
||||
|
||||
package Ide is
|
||||
for VCS_Kind use "git";
|
||||
|
@ -243,7 +243,7 @@ end:
|
||||
{{/isBoolean}}
|
||||
{{/isInteger}}
|
||||
keyPairQuery_{{paramName}} = keyValuePair_create(keyQuery_{{{paramName}}}, {{#isEnum}}(void *)strdup({{{operationId}}}_{{enumName}}_ToString(
|
||||
{{/isEnum}}{{^isString}}{{^isInteger}}{{^isBoolean}}&{{/isBoolean}}{{/isInteger}}{{/isString}}valueQuery_{{{paramName}}}{{#isEnum}})){{/isEnum}});
|
||||
{{/isEnum}}{{^isString}}{{^isInteger}}{{^isBoolean}}&{{/isBoolean}}{{/isInteger}}{{/isString}}valueQuery_{{{paramName}}}{{#isEnum}})){{/isEnum}});
|
||||
list_addElement(localVarQueryParameters,keyPairQuery_{{paramName}});
|
||||
{{/isArray}}
|
||||
}
|
||||
|
@ -10,9 +10,9 @@ keyValuePair_t *keyValuePair_create(char *key, void *value) {
|
||||
}
|
||||
|
||||
keyValuePair_t* keyValuePair_create_allocate(char* key, double value) {
|
||||
double* boolpointer = malloc(sizeof(value));
|
||||
memcpy(boolpointer, &value, sizeof(value));
|
||||
return keyValuePair_create(key, boolpointer);
|
||||
double* boolpointer = malloc(sizeof(value));
|
||||
memcpy(boolpointer, &value, sizeof(value));
|
||||
return keyValuePair_create(key, boolpointer);
|
||||
}
|
||||
|
||||
void keyValuePair_free(keyValuePair_t *keyValuePair) {
|
||||
|
@ -11,5 +11,5 @@
|
||||
#include "keyValuePair.h"
|
||||
|
||||
int main() {
|
||||
printf("Hello world1\n");
|
||||
printf("Hello world1\n");
|
||||
}
|
||||
|
@ -79,7 +79,7 @@ end:
|
||||
{{#isEnum}}
|
||||
char* {{name}}{{classname}}_ToString({{projectName}}_{{classVarName}}_{{enumName}}_e {{name}}) {
|
||||
char* {{name}}Array[] = { "NULL"{{#allowableValues}}{{#values}}, "{{.}}"{{/values}}{{/allowableValues}} };
|
||||
return {{name}}Array[{{name}}];
|
||||
return {{name}}Array[{{name}}];
|
||||
}
|
||||
|
||||
{{projectName}}_{{classVarName}}_{{enumName}}_e {{name}}{{classname}}_FromString(char* {{name}}){
|
||||
@ -102,8 +102,8 @@ char* {{name}}{{classname}}_ToString({{projectName}}_{{classVarName}}_{{enumName
|
||||
{{^isModel}}
|
||||
{{#isEnum}}
|
||||
char* {{name}}{{classname}}_ToString({{projectName}}_{{classVarName}}_{{enumName}}_e {{name}}) {
|
||||
char *{{name}}Array[] = { "NULL"{{#allowableValues}}{{#values}}, "{{.}}"{{/values}}{{/allowableValues}} };
|
||||
return {{name}}Array[{{name}} - 1];
|
||||
char *{{name}}Array[] = { "NULL"{{#allowableValues}}{{#values}}, "{{.}}"{{/values}}{{/allowableValues}} };
|
||||
return {{name}}Array[{{name}} - 1];
|
||||
}
|
||||
|
||||
{{projectName}}_{{classVarName}}_{{enumName}}_e {{name}}{{classname}}_FromString(char* {{name}}) {
|
||||
@ -821,7 +821,7 @@ fail:
|
||||
}
|
||||
localMapKeyPair = keyValuePair_create(strdup(localMapObject->string),&localMapObject->valuedouble );
|
||||
{{/isNumeric}}
|
||||
{{/items}}
|
||||
{{/items}}
|
||||
list_addElement({{{name}}}List , localMapKeyPair);
|
||||
}
|
||||
}
|
||||
|
@ -24,14 +24,14 @@ feature --Access
|
||||
{{^isInherited}}
|
||||
{{#isPrimitiveType}}
|
||||
{{^isContainer}}
|
||||
{{name}}: {{{dataType}}}
|
||||
{{#description}}-- {{{.}}}{{/description}}
|
||||
{{/isContainer}}
|
||||
{{name}}: {{{dataType}}}
|
||||
{{#description}}-- {{{.}}}{{/description}}
|
||||
{{/isContainer}}
|
||||
{{/isPrimitiveType}}
|
||||
{{#isPrimitiveType}}
|
||||
{{#isContainer}}
|
||||
{{name}}: detachable {{{datatypeWithEnum}}}
|
||||
{{#description}}-- {{{.}}}{{/description}}
|
||||
{{name}}: detachable {{{datatypeWithEnum}}}
|
||||
{{#description}}-- {{{.}}}{{/description}}
|
||||
{{/isContainer}}
|
||||
{{/isPrimitiveType}}
|
||||
{{^isPrimitiveType}}
|
||||
@ -45,7 +45,7 @@ feature --Access
|
||||
{{/isContainer}}
|
||||
{{/isPrimitiveType}}
|
||||
{{/isInherited}}
|
||||
{{/vars}}
|
||||
{{/vars}}
|
||||
|
||||
feature -- Change Element
|
||||
|
||||
|
@ -25,7 +25,7 @@
|
||||
* Convert a String into {{dataType}}, as specified in the
|
||||
* <a href="https://download.oracle.com/otndocs/jcp/jaxrs-2_0-fr-eval-spec/index.html">See JAX RS 2.0 Specification, section 3.2, p. 12</a>
|
||||
*/
|
||||
public static {{datatypeWithEnum}} fromString(String s) {
|
||||
public static {{datatypeWithEnum}} fromString(String s) {
|
||||
for ({{#datatypeWithEnum}}{{{.}}}{{/datatypeWithEnum}}{{^datatypeWithEnum}}{{{classname}}}{{/datatypeWithEnum}} b : {{#datatypeWithEnum}}{{{.}}}{{/datatypeWithEnum}}{{^datatypeWithEnum}}{{{classname}}}{{/datatypeWithEnum}}.values()) {
|
||||
// using Objects.toString() to be safe if value type non-object type
|
||||
// because types like 'int' etc. will be auto-boxed
|
||||
@ -34,8 +34,8 @@
|
||||
}
|
||||
}
|
||||
{{#isNullable}}return null;{{/isNullable}}{{^isNullable}}throw new IllegalArgumentException("Unexpected string value '" + s + "'");{{/isNullable}}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@JsonCreator
|
||||
public static {{datatypeWithEnum}} fromValue({{dataType}} value) {
|
||||
for ({{{datatypeWithEnum}}}{{^datatypeWithEnum}}{{{classname}}}{{/datatypeWithEnum}} b : {{{datatypeWithEnum}}}{{^datatypeWithEnum}}{{{classname}}}{{/datatypeWithEnum}}.values()) {
|
||||
|
@ -29,7 +29,7 @@ import com.fasterxml.jackson.annotation.JsonValue;
|
||||
* Convert a String into {{dataType}}, as specified in the
|
||||
* <a href="https://download.oracle.com/otndocs/jcp/jaxrs-2_0-fr-eval-spec/index.html">See JAX RS 2.0 Specification, section 3.2, p. 12</a>
|
||||
*/
|
||||
public static {{#datatypeWithEnum}}{{{.}}}{{/datatypeWithEnum}}{{^datatypeWithEnum}}{{{classname}}}{{/datatypeWithEnum}} fromString(String s) {
|
||||
public static {{#datatypeWithEnum}}{{{.}}}{{/datatypeWithEnum}}{{^datatypeWithEnum}}{{{classname}}}{{/datatypeWithEnum}} fromString(String s) {
|
||||
for ({{#datatypeWithEnum}}{{{.}}}{{/datatypeWithEnum}}{{^datatypeWithEnum}}{{{classname}}}{{/datatypeWithEnum}} b : {{#datatypeWithEnum}}{{{.}}}{{/datatypeWithEnum}}{{^datatypeWithEnum}}{{{classname}}}{{/datatypeWithEnum}}.values()) {
|
||||
// using Objects.toString() to be safe if value type non-object type
|
||||
// because types like 'int' etc. will be auto-boxed
|
||||
@ -38,8 +38,8 @@ import com.fasterxml.jackson.annotation.JsonValue;
|
||||
}
|
||||
}
|
||||
{{#isNullable}}return null;{{/isNullable}}{{^isNullable}}throw new IllegalArgumentException("Unexpected string value '" + s + "'");{{/isNullable}}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
@JsonValue
|
||||
public String toString() {
|
||||
|
@ -1,5 +1,5 @@
|
||||
AuthBasicProvider file
|
||||
AuthUserFile "{{vendorExtensions.x-codegen-user-info-path}}htpwd"
|
||||
AuthGroupFile "{{vendorExtensions.x-codegen-user-info-path}}groups"
|
||||
AuthType basic
|
||||
AuthName "api"
|
||||
AuthUserFile "{{vendorExtensions.x-codegen-user-info-path}}htpwd"
|
||||
AuthGroupFile "{{vendorExtensions.x-codegen-user-info-path}}groups"
|
||||
AuthType basic
|
||||
AuthName "api"
|
@ -174,7 +174,7 @@ class {{declspec}} {{classname}}
|
||||
{
|
||||
public:
|
||||
explicit {{classname}}(std::shared_ptr<restbed::Service> const& restbedService);
|
||||
virtual ~{{classname}}();
|
||||
virtual ~{{classname}}();
|
||||
|
||||
{{#operation}}
|
||||
virtual void set{{classname}}{{vendorExtensions.x-codegen-resource-name}}Resource(std::shared_ptr<{{classname}}{{vendorExtensions.x-codegen-resource-name}}Resource> sp{{classname}}{{vendorExtensions.x-codegen-resource-name}}Resource);
|
||||
@ -185,9 +185,9 @@ public:
|
||||
virtual std::shared_ptr<restbed::Service> service();
|
||||
|
||||
protected:
|
||||
{{#operation}}
|
||||
std::shared_ptr<{{classname}}{{vendorExtensions.x-codegen-resource-name}}Resource> m_sp{{classname}}{{vendorExtensions.x-codegen-resource-name}}Resource;
|
||||
{{/operation}}
|
||||
{{#operation}}
|
||||
std::shared_ptr<{{classname}}{{vendorExtensions.x-codegen-resource-name}}Resource> m_sp{{classname}}{{vendorExtensions.x-codegen-resource-name}}Resource;
|
||||
{{/operation}}
|
||||
|
||||
private:
|
||||
std::shared_ptr<restbed::Service> m_service;
|
||||
|
@ -137,7 +137,7 @@ class {{declspec}} {{classname}}
|
||||
{
|
||||
public:
|
||||
explicit {{classname}}(std::shared_ptr<restbed::Service> const& restbedService);
|
||||
virtual ~{{classname}}();
|
||||
virtual ~{{classname}}();
|
||||
|
||||
{{#operation}}
|
||||
std::shared_ptr<{{classname}}Resources::{{vendorExtensions.x-codegen-resource-name}}Resource> get{{vendorExtensions.x-codegen-resource-name}}Resource();
|
||||
@ -156,9 +156,9 @@ public:
|
||||
virtual std::shared_ptr<restbed::Service> service();
|
||||
|
||||
protected:
|
||||
{{#operation}}
|
||||
std::shared_ptr<{{classname}}Resources::{{vendorExtensions.x-codegen-resource-name}}Resource> m_sp{{vendorExtensions.x-codegen-resource-name}}Resource;
|
||||
{{/operation}}
|
||||
{{#operation}}
|
||||
std::shared_ptr<{{classname}}Resources::{{vendorExtensions.x-codegen-resource-name}}Resource> m_sp{{vendorExtensions.x-codegen-resource-name}}Resource;
|
||||
{{/operation}}
|
||||
|
||||
private:
|
||||
std::shared_ptr<restbed::Service> m_service;
|
||||
|
@ -25,7 +25,7 @@
|
||||
* Convert a String into {{dataType}}, as specified in the
|
||||
* <a href="https://download.oracle.com/otndocs/jcp/jaxrs-2_0-fr-eval-spec/index.html">See JAX RS 2.0 Specification, section 3.2, p. 12</a>
|
||||
*/
|
||||
public static {{datatypeWithEnum}} fromString(String s) {
|
||||
public static {{datatypeWithEnum}} fromString(String s) {
|
||||
for ({{#datatypeWithEnum}}{{{.}}}{{/datatypeWithEnum}}{{^datatypeWithEnum}}{{{classname}}}{{/datatypeWithEnum}} b : {{#datatypeWithEnum}}{{{.}}}{{/datatypeWithEnum}}{{^datatypeWithEnum}}{{{classname}}}{{/datatypeWithEnum}}.values()) {
|
||||
// using Objects.toString() to be safe if value type non-object type
|
||||
// because types like 'int' etc. will be auto-boxed
|
||||
@ -34,8 +34,8 @@
|
||||
}
|
||||
}
|
||||
{{#isNullable}}return null;{{/isNullable}}{{^isNullable}}throw new IllegalArgumentException("Unexpected string value '" + s + "'");{{/isNullable}}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
{{#jackson}}@JsonCreator{{/jackson}}
|
||||
public static {{datatypeWithEnum}} fromValue({{dataType}} value) {
|
||||
for ({{{datatypeWithEnum}}}{{^datatypeWithEnum}}{{{classname}}}{{/datatypeWithEnum}} b : {{{datatypeWithEnum}}}{{^datatypeWithEnum}}{{{classname}}}{{/datatypeWithEnum}}.values()) {
|
||||
|
@ -32,7 +32,7 @@ import {{rootJavaEEPackage}}.json.bind.annotation.JsonbCreator;
|
||||
* Convert a String into {{dataType}}, as specified in the
|
||||
* <a href="https://download.oracle.com/otndocs/jcp/jaxrs-2_0-fr-eval-spec/index.html">See JAX RS 2.0 Specification, section 3.2, p. 12</a>
|
||||
*/
|
||||
public static {{#datatypeWithEnum}}{{{.}}}{{/datatypeWithEnum}}{{^datatypeWithEnum}}{{{classname}}}{{/datatypeWithEnum}} fromString(String s) {
|
||||
public static {{#datatypeWithEnum}}{{{.}}}{{/datatypeWithEnum}}{{^datatypeWithEnum}}{{{classname}}}{{/datatypeWithEnum}} fromString(String s) {
|
||||
for ({{#datatypeWithEnum}}{{{.}}}{{/datatypeWithEnum}}{{^datatypeWithEnum}}{{{classname}}}{{/datatypeWithEnum}} b : {{#datatypeWithEnum}}{{{.}}}{{/datatypeWithEnum}}{{^datatypeWithEnum}}{{{classname}}}{{/datatypeWithEnum}}.values()) {
|
||||
// using Objects.toString() to be safe if value type non-object type
|
||||
// because types like 'int' etc. will be auto-boxed
|
||||
@ -41,8 +41,8 @@ import {{rootJavaEEPackage}}.json.bind.annotation.JsonbCreator;
|
||||
}
|
||||
}
|
||||
{{#isNullable}}return null;{{/isNullable}}{{^isNullable}}throw new IllegalArgumentException("Unexpected string value '" + s + "'");{{/isNullable}}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
{{#jackson}}@JsonValue{{/jackson}}
|
||||
public String toString() {
|
||||
|
@ -41,7 +41,7 @@ import io.swagger.v3.oas.annotations.security.SecurityRequirement;
|
||||
{{/generateSwagger2Annotations}}
|
||||
|
||||
{{#additionalClientTypeAnnotations}}
|
||||
{{{.}}}
|
||||
{{{.}}}
|
||||
{{/additionalClientTypeAnnotations}}
|
||||
{{>common/generatedAnnotation}}
|
||||
@Client({{#configureClientId}}
|
||||
|
@ -9,6 +9,6 @@ akka {
|
||||
}
|
||||
|
||||
url="http://localhost:8081"
|
||||
noOfUsers=10 #Number of Users
|
||||
deleteProductId=4 #Delete the Product by using productID
|
||||
getProduct=2 #Get the Product
|
||||
noOfUsers=10 #Number of Users
|
||||
deleteProductId=4 #Delete the Product by using productID
|
||||
getProduct=2 #Get the Product
|
@ -80,7 +80,7 @@ public class HttpLoggingFilter implements Filter {
|
||||
.append(bufferedResponse.getStatus())
|
||||
.append("] [Response Time(ms):").append(elapsedTime)
|
||||
.append("]");
|
||||
String [] nonLoggingPaths = {"/v2/api-docs","/swagger-resources","/configuration/security","/swagger-ui.html","/webjars"};
|
||||
String [] nonLoggingPaths = {"/v2/api-docs","/swagger-resources","/configuration/security","/swagger-ui.html","/webjars"};
|
||||
String urlPath = httpServletRequest.getRequestURL().toString();
|
||||
if (! ( Arrays.stream(nonLoggingPaths).parallel().anyMatch(urlPath::contains) )){
|
||||
log.info(logMessage.toString());
|
||||
|
@ -10,9 +10,9 @@
|
||||
|
||||
self = [super init];
|
||||
if (self) {
|
||||
_values = values;
|
||||
_format = format;
|
||||
}
|
||||
_values = values;
|
||||
_format = format;
|
||||
}
|
||||
|
||||
return self;
|
||||
}
|
||||
|
@ -2,7 +2,7 @@
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>_XCCurrentVersionName</key>
|
||||
<string>{{classPrefix}}Model.xcdatamodel</string>
|
||||
<key>_XCCurrentVersionName</key>
|
||||
<string>{{classPrefix}}Model.xcdatamodel</string>
|
||||
</dict>
|
||||
</plist>
|
||||
|
@ -30,14 +30,14 @@
|
||||
</ul>
|
||||
</div>
|
||||
{{#apiInfo}}
|
||||
{{#apis}}
|
||||
{{#apis}}
|
||||
<div class="section-box">
|
||||
<div class="section-header">
|
||||
<a href="#!/{{classname}}">{{classname}}</a>
|
||||
</div>
|
||||
<ul>
|
||||
{{#operations}}
|
||||
{{#operation}}
|
||||
{{#operations}}
|
||||
{{#operation}}
|
||||
<li><a href="#!/{{classname}}#{{nickname}}">{{nickname}}</a></li>
|
||||
{{/operation}}
|
||||
{{/operations}}
|
||||
|
@ -16,8 +16,8 @@
|
||||
<div class="model" data-model="{{returnBaseType}}"><a href="">{{returnType}}</a></div>
|
||||
<h3 class="section">Parameters</h3>
|
||||
<ul>
|
||||
{{#allParams}}
|
||||
<li class="parameter">
|
||||
{{#allParams}}
|
||||
<li class="parameter">
|
||||
{{#isFormParam}}<span class="param-in">Form: </span>{{/isFormParam}}
|
||||
{{#isQueryParam}}<span class="param-in">Query: </span>{{/isQueryParam}}
|
||||
{{#isPathParam}}<span class="param-in">Path: </span>{{/isPathParam}}
|
||||
@ -27,7 +27,7 @@
|
||||
<span class="param-type">{{dataType}}{{#baseType}}({{.}}){{/baseType}}</span>
|
||||
{{#optional}}<span class="param-optional-flag">(optional)</span>{{/optional}}
|
||||
<p class="param-description">{{description}}</p>
|
||||
</li>
|
||||
</li>
|
||||
{{/allParams}}
|
||||
</ul>
|
||||
{{/operation}}
|
||||
|
@ -419,9 +419,9 @@ class Configuration
|
||||
$report .= ' OS: ' . php_uname() . PHP_EOL;
|
||||
$report .= ' PHP Version: ' . PHP_VERSION . PHP_EOL;
|
||||
$report .= ' The version of the OpenAPI document: {{version}}' . PHP_EOL;
|
||||
{{#artifactVersion}}
|
||||
{{#artifactVersion}}
|
||||
$report .= ' SDK Package Version: {{.}}' . PHP_EOL;
|
||||
{{/artifactVersion}}
|
||||
{{/artifactVersion}}
|
||||
$report .= ' Temp Folder Path: ' . self::getDefaultConfiguration()->getTempFolderPath() . PHP_EOL;
|
||||
|
||||
return $report;
|
||||
|
@ -36,7 +36,7 @@ class {{classname}} {{#parentSchema}}extends {{{parent}}}{{/parentSchema}}{{^par
|
||||
*/
|
||||
protected static array $openAPINullables = [
|
||||
{{#vars}}'{{name}}' => {{#isNullable}}true{{/isNullable}}{{^isNullable}}false{{/isNullable}}{{^-last}},
|
||||
{{/-last}}{{/vars}}
|
||||
{{/-last}}{{/vars}}
|
||||
];
|
||||
|
||||
/**
|
||||
|
@ -424,9 +424,9 @@ class Configuration
|
||||
$report .= ' OS: ' . php_uname() . PHP_EOL;
|
||||
$report .= ' PHP Version: ' . PHP_VERSION . PHP_EOL;
|
||||
$report .= ' The version of the OpenAPI document: {{version}}' . PHP_EOL;
|
||||
{{#artifactVersion}}
|
||||
{{#artifactVersion}}
|
||||
$report .= ' SDK Package Version: {{.}}' . PHP_EOL;
|
||||
{{/artifactVersion}}
|
||||
{{/artifactVersion}}
|
||||
$report .= ' Temp Folder Path: ' . self::getDefaultConfiguration()->getTempFolderPath() . PHP_EOL;
|
||||
|
||||
return $report;
|
||||
|
@ -38,7 +38,7 @@ class {{classname}} {{#parentSchema}}extends {{{parent}}}{{/parentSchema}}{{^par
|
||||
*/
|
||||
protected static array $openAPINullables = [
|
||||
{{#vars}}'{{name}}' => {{#isNullable}}true{{/isNullable}}{{^isNullable}}false{{/isNullable}}{{^-last}},
|
||||
{{/-last}}{{/vars}}
|
||||
{{/-last}}{{/vars}}
|
||||
];
|
||||
|
||||
/**
|
||||
|
@ -5,7 +5,7 @@ skipsdist=True
|
||||
[testenv]
|
||||
deps=-r{toxinidir}/requirements.txt
|
||||
-r{toxinidir}/test-requirements.txt
|
||||
{toxinidir}
|
||||
{toxinidir}
|
||||
|
||||
commands=
|
||||
{{^useNose}}pytest --cov={{{packageName}}}{{/useNose}}{{#useNose}}nosetests{{/useNose}}
|
||||
|
@ -5,7 +5,7 @@ skipsdist=True
|
||||
[testenv]
|
||||
deps=-r{toxinidir}/requirements.txt
|
||||
-r{toxinidir}/test-requirements.txt
|
||||
{toxinidir}
|
||||
{toxinidir}
|
||||
|
||||
commands=
|
||||
{{^useNose}}pytest --cov={{{pythonSrcRoot}}}{{{packageName}}}{{/useNose}}{{#useNose}}nosetests{{/useNose}}
|
||||
|
@ -35,9 +35,9 @@ impl <T> fmt::Display for Error<T> {
|
||||
Error::Serde(e) => ("serde", e.to_string()),
|
||||
Error::Io(e) => ("IO", e.to_string()),
|
||||
Error::ResponseError(e) => ("response", format!("status code {}", e.status)),
|
||||
{{#withAWSV4Signature}}
|
||||
{{#withAWSV4Signature}}
|
||||
Error::AWSV4SignatureError(e) => ("aws v4 signature", e.to_string()),
|
||||
{{/withAWSV4Signature}}
|
||||
{{/withAWSV4Signature}}
|
||||
};
|
||||
write!(f, "error in {}: {}", module, e)
|
||||
}
|
||||
@ -53,9 +53,9 @@ impl <T: fmt::Debug> error::Error for Error<T> {
|
||||
Error::Serde(e) => e,
|
||||
Error::Io(e) => e,
|
||||
Error::ResponseError(_) => return None,
|
||||
{{#withAWSV4Signature}}
|
||||
Error::AWSV4SignatureError(_) => return None,
|
||||
{{/withAWSV4Signature}}
|
||||
{{#withAWSV4Signature}}
|
||||
Error::AWSV4SignatureError(_) => return None,
|
||||
{{/withAWSV4Signature}}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
@ -9,10 +9,10 @@
|
||||
</appender>
|
||||
|
||||
<!-- Uncomment for logging ALL HTTP request and responses -->
|
||||
<!-- <logger name="io.gatling.http.ahc" level="TRACE" /> -->
|
||||
<!-- <logger name="io.gatling.http.ahc" level="TRACE" /> -->
|
||||
<!-- <logger name="io.gatling.http.response" level="TRACE" /> -->
|
||||
<!-- Uncomment for logging ONLY FAILED HTTP request and responses -->
|
||||
<!-- <logger name="io.gatling.http.ahc" level="DEBUG" /> -->
|
||||
<!-- <logger name="io.gatling.http.ahc" level="DEBUG" /> -->
|
||||
<!-- <logger name="io.gatling.http.response" level="DEBUG" /> -->
|
||||
|
||||
<root level="WARN">
|
||||
|
@ -164,8 +164,8 @@ class {{classname}}RecordUtils extends ApiRecordUtils<{{classname}}, {{classname
|
||||
{{/items.isEntity}}
|
||||
{{/isArray}}
|
||||
{{/vars}}
|
||||
...unchangedProperties
|
||||
} = entity;
|
||||
...unchangedProperties
|
||||
} = entity;
|
||||
|
||||
const entityProperties = {
|
||||
{{#vars}}
|
||||
|
@ -80,7 +80,7 @@ export const DefaultConfig = new Configuration();
|
||||
*/
|
||||
export class BaseAPI {
|
||||
|
||||
private static readonly jsonRegex = new RegExp('^(:?application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(:?;.*)?$', 'i');
|
||||
private static readonly jsonRegex = new RegExp('^(:?application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(:?;.*)?$', 'i');
|
||||
private middleware: Middleware[];
|
||||
|
||||
constructor(protected configuration = DefaultConfig) {
|
||||
|
@ -1,5 +1,5 @@
|
||||
#tag Enum, Name = {{enumName}}, Type = Integer, Flags = &h{{^nonPublicApi}}0{{/nonPublicApi}}{{#nonPublicApi}}21{{/nonPublicApi}}
|
||||
{{#allowableValues}}{{#enumVars}}
|
||||
#tag Enum, Name = {{enumName}}, Type = Integer, Flags = &h{{^nonPublicApi}}0{{/nonPublicApi}}{{#nonPublicApi}}21{{/nonPublicApi}}
|
||||
{{#allowableValues}}{{#enumVars}}
|
||||
{{{name}}}{{#isInteger}} = {{{value}}}{{/isInteger}}{{/enumVars}}{{/allowableValues}}
|
||||
{{#enumUnknownDefaultCase}}Unknown{{#isInteger}} = {{{value}}}{{/isInteger}}{{/enumUnknownDefaultCase}}
|
||||
#tag EndEnum
|
||||
{{#enumUnknownDefaultCase}}Unknown{{#isInteger}} = {{{value}}}{{/isInteger}}{{/enumUnknownDefaultCase}}
|
||||
#tag EndEnum
|
||||
|
@ -386,7 +386,7 @@
|
||||
<jakarta-annotation-version>1.3.5</jakarta-annotation-version>
|
||||
{{/useJakartaEe}}
|
||||
{{#useBeanValidation}}
|
||||
<beanvalidation-version>2.0.2</beanvalidation-version>
|
||||
<beanvalidation-version>2.0.2</beanvalidation-version>
|
||||
{{/useBeanValidation}}
|
||||
<junit-version>4.13.2</junit-version>
|
||||
{{#hasHttpSignatureMethods}}
|
||||
|
@ -203,7 +203,7 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
{
|
||||
"description": "oneOf with missing optional property",
|
||||
"schema": {
|
||||
"oneOf": [
|
||||
|
@ -80,7 +80,7 @@ class Bird implements ModelInterface, ArrayAccess, JsonSerializable
|
||||
*/
|
||||
protected static array $openAPINullables = [
|
||||
'size' => false,
|
||||
'color' => false
|
||||
'color' => false
|
||||
];
|
||||
|
||||
/**
|
||||
|
@ -80,7 +80,7 @@ class Category implements ModelInterface, ArrayAccess, JsonSerializable
|
||||
*/
|
||||
protected static array $openAPINullables = [
|
||||
'id' => false,
|
||||
'name' => false
|
||||
'name' => false
|
||||
];
|
||||
|
||||
/**
|
||||
|
@ -76,8 +76,8 @@ class DataQuery extends Query
|
||||
*/
|
||||
protected static array $openAPINullables = [
|
||||
'suffix' => false,
|
||||
'text' => false,
|
||||
'date' => false
|
||||
'text' => false,
|
||||
'date' => false
|
||||
];
|
||||
|
||||
/**
|
||||
|
@ -93,13 +93,13 @@ class DefaultValue implements ModelInterface, ArrayAccess, JsonSerializable
|
||||
*/
|
||||
protected static array $openAPINullables = [
|
||||
'array_string_enum_ref_default' => false,
|
||||
'array_string_enum_default' => false,
|
||||
'array_string_default' => false,
|
||||
'array_integer_default' => false,
|
||||
'array_string' => false,
|
||||
'array_string_nullable' => true,
|
||||
'array_string_extension_nullable' => true,
|
||||
'string_nullable' => true
|
||||
'array_string_enum_default' => false,
|
||||
'array_string_default' => false,
|
||||
'array_integer_default' => false,
|
||||
'array_string' => false,
|
||||
'array_string_nullable' => true,
|
||||
'array_string_extension_nullable' => true,
|
||||
'string_nullable' => true
|
||||
];
|
||||
|
||||
/**
|
||||
|
@ -82,8 +82,8 @@ class NumberPropertiesOnly implements ModelInterface, ArrayAccess, JsonSerializa
|
||||
*/
|
||||
protected static array $openAPINullables = [
|
||||
'number' => false,
|
||||
'float' => false,
|
||||
'double' => false
|
||||
'float' => false,
|
||||
'double' => false
|
||||
];
|
||||
|
||||
/**
|
||||
|
@ -88,11 +88,11 @@ class Pet implements ModelInterface, ArrayAccess, JsonSerializable
|
||||
*/
|
||||
protected static array $openAPINullables = [
|
||||
'id' => false,
|
||||
'name' => false,
|
||||
'category' => false,
|
||||
'photo_urls' => false,
|
||||
'tags' => false,
|
||||
'status' => false
|
||||
'name' => false,
|
||||
'category' => false,
|
||||
'photo_urls' => false,
|
||||
'tags' => false,
|
||||
'status' => false
|
||||
];
|
||||
|
||||
/**
|
||||
|
@ -80,7 +80,7 @@ class Query implements ModelInterface, ArrayAccess, JsonSerializable
|
||||
*/
|
||||
protected static array $openAPINullables = [
|
||||
'id' => false,
|
||||
'outcomes' => false
|
||||
'outcomes' => false
|
||||
];
|
||||
|
||||
/**
|
||||
|
@ -80,7 +80,7 @@ class Tag implements ModelInterface, ArrayAccess, JsonSerializable
|
||||
*/
|
||||
protected static array $openAPINullables = [
|
||||
'id' => false,
|
||||
'name' => false
|
||||
'name' => false
|
||||
];
|
||||
|
||||
/**
|
||||
|
@ -84,9 +84,9 @@ class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter impleme
|
||||
*/
|
||||
protected static array $openAPINullables = [
|
||||
'size' => false,
|
||||
'color' => false,
|
||||
'id' => false,
|
||||
'name' => false
|
||||
'color' => false,
|
||||
'id' => false,
|
||||
'name' => false
|
||||
];
|
||||
|
||||
/**
|
||||
|
@ -45,7 +45,7 @@ abstract project Config is
|
||||
when "debug" =>
|
||||
for Default_Switches ("Ada") use ("-E");
|
||||
|
||||
when others =>
|
||||
when others =>
|
||||
for Default_Switches ("Ada") use ("-E");
|
||||
|
||||
end case;
|
||||
@ -64,12 +64,12 @@ abstract project Config is
|
||||
|
||||
when "coverage" =>
|
||||
for Default_Switches ("ada") use ("-fprofile-arcs");
|
||||
|
||||
when others =>
|
||||
null;
|
||||
|
||||
when others =>
|
||||
null;
|
||||
end case;
|
||||
|
||||
end linker;
|
||||
end linker;
|
||||
|
||||
package Ide is
|
||||
for VCS_Kind use "git";
|
||||
|
@ -6,7 +6,7 @@
|
||||
|
||||
char* statusorder_ToString(openapi_petstore_order_STATUS_e status) {
|
||||
char* statusArray[] = { "NULL", "placed", "approved", "delivered" };
|
||||
return statusArray[status];
|
||||
return statusArray[status];
|
||||
}
|
||||
|
||||
openapi_petstore_order_STATUS_e statusorder_FromString(char* status){
|
||||
|
@ -6,7 +6,7 @@
|
||||
|
||||
char* statuspet_ToString(openapi_petstore_pet_STATUS_e status) {
|
||||
char* statusArray[] = { "NULL", "available", "pending", "sold" };
|
||||
return statusArray[status];
|
||||
return statusArray[status];
|
||||
}
|
||||
|
||||
openapi_petstore_pet_STATUS_e statuspet_FromString(char* status){
|
||||
|
@ -10,9 +10,9 @@ keyValuePair_t *keyValuePair_create(char *key, void *value) {
|
||||
}
|
||||
|
||||
keyValuePair_t* keyValuePair_create_allocate(char* key, double value) {
|
||||
double* boolpointer = malloc(sizeof(value));
|
||||
memcpy(boolpointer, &value, sizeof(value));
|
||||
return keyValuePair_create(key, boolpointer);
|
||||
double* boolpointer = malloc(sizeof(value));
|
||||
memcpy(boolpointer, &value, sizeof(value));
|
||||
return keyValuePair_create(key, boolpointer);
|
||||
}
|
||||
|
||||
void keyValuePair_free(keyValuePair_t *keyValuePair) {
|
||||
|
@ -10,9 +10,9 @@
|
||||
|
||||
self = [super init];
|
||||
if (self) {
|
||||
_values = values;
|
||||
_format = format;
|
||||
}
|
||||
_values = values;
|
||||
_format = format;
|
||||
}
|
||||
|
||||
return self;
|
||||
}
|
||||
|
@ -2,7 +2,7 @@
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>_XCCurrentVersionName</key>
|
||||
<string>SWGModel.xcdatamodel</string>
|
||||
<key>_XCCurrentVersionName</key>
|
||||
<string>SWGModel.xcdatamodel</string>
|
||||
</dict>
|
||||
</plist>
|
||||
|
@ -10,9 +10,9 @@
|
||||
|
||||
self = [super init];
|
||||
if (self) {
|
||||
_values = values;
|
||||
_format = format;
|
||||
}
|
||||
_values = values;
|
||||
_format = format;
|
||||
}
|
||||
|
||||
return self;
|
||||
}
|
||||
|
@ -79,7 +79,7 @@ class AdditionalPropertiesClass implements ModelInterface, ArrayAccess, JsonSeri
|
||||
*/
|
||||
protected static array $openAPINullables = [
|
||||
'map_property' => false,
|
||||
'map_of_map_property' => false
|
||||
'map_of_map_property' => false
|
||||
];
|
||||
|
||||
/**
|
||||
|
@ -79,7 +79,7 @@ class AllOfWithSingleRef implements ModelInterface, ArrayAccess, JsonSerializabl
|
||||
*/
|
||||
protected static array $openAPINullables = [
|
||||
'username' => false,
|
||||
'single_ref_type' => false
|
||||
'single_ref_type' => false
|
||||
];
|
||||
|
||||
/**
|
||||
|
@ -79,7 +79,7 @@ class Animal implements ModelInterface, ArrayAccess, JsonSerializable
|
||||
*/
|
||||
protected static array $openAPINullables = [
|
||||
'class_name' => false,
|
||||
'color' => false
|
||||
'color' => false
|
||||
];
|
||||
|
||||
/**
|
||||
|
@ -81,8 +81,8 @@ class ApiResponse implements ModelInterface, ArrayAccess, JsonSerializable
|
||||
*/
|
||||
protected static array $openAPINullables = [
|
||||
'code' => false,
|
||||
'type' => false,
|
||||
'message' => false
|
||||
'type' => false,
|
||||
'message' => false
|
||||
];
|
||||
|
||||
/**
|
||||
|
@ -81,8 +81,8 @@ class ArrayTest implements ModelInterface, ArrayAccess, JsonSerializable
|
||||
*/
|
||||
protected static array $openAPINullables = [
|
||||
'array_of_string' => false,
|
||||
'array_array_of_integer' => false,
|
||||
'array_array_of_model' => false
|
||||
'array_array_of_integer' => false,
|
||||
'array_array_of_model' => false
|
||||
];
|
||||
|
||||
/**
|
||||
|
@ -87,11 +87,11 @@ class Capitalization implements ModelInterface, ArrayAccess, JsonSerializable
|
||||
*/
|
||||
protected static array $openAPINullables = [
|
||||
'small_camel' => false,
|
||||
'capital_camel' => false,
|
||||
'small_snake' => false,
|
||||
'capital_snake' => false,
|
||||
'sca_eth_flow_points' => false,
|
||||
'att_name' => false
|
||||
'capital_camel' => false,
|
||||
'small_snake' => false,
|
||||
'capital_snake' => false,
|
||||
'sca_eth_flow_points' => false,
|
||||
'att_name' => false
|
||||
];
|
||||
|
||||
/**
|
||||
|
@ -79,7 +79,7 @@ class Category implements ModelInterface, ArrayAccess, JsonSerializable
|
||||
*/
|
||||
protected static array $openAPINullables = [
|
||||
'id' => false,
|
||||
'name' => false
|
||||
'name' => false
|
||||
];
|
||||
|
||||
/**
|
||||
|
@ -79,7 +79,7 @@ class EnumArrays implements ModelInterface, ArrayAccess, JsonSerializable
|
||||
*/
|
||||
protected static array $openAPINullables = [
|
||||
'just_symbol' => false,
|
||||
'array_enum' => false
|
||||
'array_enum' => false
|
||||
];
|
||||
|
||||
/**
|
||||
|
@ -91,13 +91,13 @@ class EnumTest implements ModelInterface, ArrayAccess, JsonSerializable
|
||||
*/
|
||||
protected static array $openAPINullables = [
|
||||
'enum_string' => false,
|
||||
'enum_string_required' => false,
|
||||
'enum_integer' => false,
|
||||
'enum_number' => false,
|
||||
'outer_enum' => true,
|
||||
'outer_enum_integer' => false,
|
||||
'outer_enum_default_value' => false,
|
||||
'outer_enum_integer_default_value' => false
|
||||
'enum_string_required' => false,
|
||||
'enum_integer' => false,
|
||||
'enum_number' => false,
|
||||
'outer_enum' => true,
|
||||
'outer_enum_integer' => false,
|
||||
'outer_enum_default_value' => false,
|
||||
'outer_enum_integer_default_value' => false
|
||||
];
|
||||
|
||||
/**
|
||||
|
@ -79,7 +79,7 @@ class FakeBigDecimalMap200Response implements ModelInterface, ArrayAccess, JsonS
|
||||
*/
|
||||
protected static array $openAPINullables = [
|
||||
'some_id' => false,
|
||||
'some_map' => false
|
||||
'some_map' => false
|
||||
];
|
||||
|
||||
/**
|
||||
|
@ -79,7 +79,7 @@ class FileSchemaTestClass implements ModelInterface, ArrayAccess, JsonSerializab
|
||||
*/
|
||||
protected static array $openAPINullables = [
|
||||
'file' => false,
|
||||
'files' => false
|
||||
'files' => false
|
||||
];
|
||||
|
||||
/**
|
||||
|
@ -107,21 +107,21 @@ class FormatTest implements ModelInterface, ArrayAccess, JsonSerializable
|
||||
*/
|
||||
protected static array $openAPINullables = [
|
||||
'integer' => false,
|
||||
'int32' => false,
|
||||
'int64' => false,
|
||||
'number' => false,
|
||||
'float' => false,
|
||||
'double' => false,
|
||||
'decimal' => false,
|
||||
'string' => false,
|
||||
'byte' => false,
|
||||
'binary' => false,
|
||||
'date' => false,
|
||||
'date_time' => false,
|
||||
'uuid' => false,
|
||||
'password' => false,
|
||||
'pattern_with_digits' => false,
|
||||
'pattern_with_digits_and_delimiter' => false
|
||||
'int32' => false,
|
||||
'int64' => false,
|
||||
'number' => false,
|
||||
'float' => false,
|
||||
'double' => false,
|
||||
'decimal' => false,
|
||||
'string' => false,
|
||||
'byte' => false,
|
||||
'binary' => false,
|
||||
'date' => false,
|
||||
'date_time' => false,
|
||||
'uuid' => false,
|
||||
'password' => false,
|
||||
'pattern_with_digits' => false,
|
||||
'pattern_with_digits_and_delimiter' => false
|
||||
];
|
||||
|
||||
/**
|
||||
|
@ -79,7 +79,7 @@ class HasOnlyReadOnly implements ModelInterface, ArrayAccess, JsonSerializable
|
||||
*/
|
||||
protected static array $openAPINullables = [
|
||||
'bar' => false,
|
||||
'foo' => false
|
||||
'foo' => false
|
||||
];
|
||||
|
||||
/**
|
||||
|
@ -83,9 +83,9 @@ class MapTest implements ModelInterface, ArrayAccess, JsonSerializable
|
||||
*/
|
||||
protected static array $openAPINullables = [
|
||||
'map_map_of_string' => false,
|
||||
'map_of_enum_string' => false,
|
||||
'direct_map' => false,
|
||||
'indirect_map' => false
|
||||
'map_of_enum_string' => false,
|
||||
'direct_map' => false,
|
||||
'indirect_map' => false
|
||||
];
|
||||
|
||||
/**
|
||||
|
@ -81,8 +81,8 @@ class MixedPropertiesAndAdditionalPropertiesClass implements ModelInterface, Arr
|
||||
*/
|
||||
protected static array $openAPINullables = [
|
||||
'uuid' => false,
|
||||
'date_time' => false,
|
||||
'map' => false
|
||||
'date_time' => false,
|
||||
'map' => false
|
||||
];
|
||||
|
||||
/**
|
||||
|
@ -80,7 +80,7 @@ class Model200Response implements ModelInterface, ArrayAccess, JsonSerializable
|
||||
*/
|
||||
protected static array $openAPINullables = [
|
||||
'name' => false,
|
||||
'class' => false
|
||||
'class' => false
|
||||
];
|
||||
|
||||
/**
|
||||
|
@ -84,9 +84,9 @@ class Name implements ModelInterface, ArrayAccess, JsonSerializable
|
||||
*/
|
||||
protected static array $openAPINullables = [
|
||||
'name' => false,
|
||||
'snake_case' => false,
|
||||
'property' => false,
|
||||
'_123_number' => false
|
||||
'snake_case' => false,
|
||||
'property' => false,
|
||||
'_123_number' => false
|
||||
];
|
||||
|
||||
/**
|
||||
|
@ -99,17 +99,17 @@ class NullableClass implements ModelInterface, ArrayAccess, JsonSerializable
|
||||
*/
|
||||
protected static array $openAPINullables = [
|
||||
'integer_prop' => true,
|
||||
'number_prop' => true,
|
||||
'boolean_prop' => true,
|
||||
'string_prop' => true,
|
||||
'date_prop' => true,
|
||||
'datetime_prop' => true,
|
||||
'array_nullable_prop' => true,
|
||||
'array_and_items_nullable_prop' => true,
|
||||
'array_items_nullable' => false,
|
||||
'object_nullable_prop' => true,
|
||||
'object_and_items_nullable_prop' => true,
|
||||
'object_items_nullable' => false
|
||||
'number_prop' => true,
|
||||
'boolean_prop' => true,
|
||||
'string_prop' => true,
|
||||
'date_prop' => true,
|
||||
'datetime_prop' => true,
|
||||
'array_nullable_prop' => true,
|
||||
'array_and_items_nullable_prop' => true,
|
||||
'array_items_nullable' => false,
|
||||
'object_nullable_prop' => true,
|
||||
'object_and_items_nullable_prop' => true,
|
||||
'object_items_nullable' => false
|
||||
];
|
||||
|
||||
/**
|
||||
|
@ -83,9 +83,9 @@ class ObjectWithDeprecatedFields implements ModelInterface, ArrayAccess, JsonSer
|
||||
*/
|
||||
protected static array $openAPINullables = [
|
||||
'uuid' => false,
|
||||
'id' => false,
|
||||
'deprecated_ref' => false,
|
||||
'bars' => false
|
||||
'id' => false,
|
||||
'deprecated_ref' => false,
|
||||
'bars' => false
|
||||
];
|
||||
|
||||
/**
|
||||
|
@ -87,11 +87,11 @@ class Order implements ModelInterface, ArrayAccess, JsonSerializable
|
||||
*/
|
||||
protected static array $openAPINullables = [
|
||||
'id' => false,
|
||||
'pet_id' => false,
|
||||
'quantity' => false,
|
||||
'ship_date' => false,
|
||||
'status' => false,
|
||||
'complete' => false
|
||||
'pet_id' => false,
|
||||
'quantity' => false,
|
||||
'ship_date' => false,
|
||||
'status' => false,
|
||||
'complete' => false
|
||||
];
|
||||
|
||||
/**
|
||||
|
@ -81,8 +81,8 @@ class OuterComposite implements ModelInterface, ArrayAccess, JsonSerializable
|
||||
*/
|
||||
protected static array $openAPINullables = [
|
||||
'my_number' => false,
|
||||
'my_string' => false,
|
||||
'my_boolean' => false
|
||||
'my_string' => false,
|
||||
'my_boolean' => false
|
||||
];
|
||||
|
||||
/**
|
||||
|
@ -79,7 +79,7 @@ class ParentWithNullable implements ModelInterface, ArrayAccess, JsonSerializabl
|
||||
*/
|
||||
protected static array $openAPINullables = [
|
||||
'type' => false,
|
||||
'nullable_property' => true
|
||||
'nullable_property' => true
|
||||
];
|
||||
|
||||
/**
|
||||
|
@ -87,11 +87,11 @@ class Pet implements ModelInterface, ArrayAccess, JsonSerializable
|
||||
*/
|
||||
protected static array $openAPINullables = [
|
||||
'id' => false,
|
||||
'category' => false,
|
||||
'name' => false,
|
||||
'photo_urls' => false,
|
||||
'tags' => false,
|
||||
'status' => false
|
||||
'category' => false,
|
||||
'name' => false,
|
||||
'photo_urls' => false,
|
||||
'tags' => false,
|
||||
'status' => false
|
||||
];
|
||||
|
||||
/**
|
||||
|
@ -79,7 +79,7 @@ class ReadOnlyFirst implements ModelInterface, ArrayAccess, JsonSerializable
|
||||
*/
|
||||
protected static array $openAPINullables = [
|
||||
'bar' => false,
|
||||
'baz' => false
|
||||
'baz' => false
|
||||
];
|
||||
|
||||
/**
|
||||
|
@ -79,7 +79,7 @@ class Tag implements ModelInterface, ArrayAccess, JsonSerializable
|
||||
*/
|
||||
protected static array $openAPINullables = [
|
||||
'id' => false,
|
||||
'name' => false
|
||||
'name' => false
|
||||
];
|
||||
|
||||
/**
|
||||
|
@ -91,13 +91,13 @@ class User implements ModelInterface, ArrayAccess, JsonSerializable
|
||||
*/
|
||||
protected static array $openAPINullables = [
|
||||
'id' => false,
|
||||
'username' => false,
|
||||
'first_name' => false,
|
||||
'last_name' => false,
|
||||
'email' => false,
|
||||
'password' => false,
|
||||
'phone' => false,
|
||||
'user_status' => false
|
||||
'username' => false,
|
||||
'first_name' => false,
|
||||
'last_name' => false,
|
||||
'email' => false,
|
||||
'password' => false,
|
||||
'phone' => false,
|
||||
'user_status' => false
|
||||
];
|
||||
|
||||
/**
|
||||
|
@ -80,7 +80,7 @@ class AdditionalPropertiesClass implements ModelInterface, ArrayAccess, \JsonSer
|
||||
*/
|
||||
protected static array $openAPINullables = [
|
||||
'map_property' => false,
|
||||
'map_of_map_property' => false
|
||||
'map_of_map_property' => false
|
||||
];
|
||||
|
||||
/**
|
||||
|
@ -80,7 +80,7 @@ class AllOfWithSingleRef implements ModelInterface, ArrayAccess, \JsonSerializab
|
||||
*/
|
||||
protected static array $openAPINullables = [
|
||||
'username' => false,
|
||||
'single_ref_type' => false
|
||||
'single_ref_type' => false
|
||||
];
|
||||
|
||||
/**
|
||||
|
@ -80,7 +80,7 @@ class Animal implements ModelInterface, ArrayAccess, \JsonSerializable
|
||||
*/
|
||||
protected static array $openAPINullables = [
|
||||
'class_name' => false,
|
||||
'color' => false
|
||||
'color' => false
|
||||
];
|
||||
|
||||
/**
|
||||
|
@ -82,8 +82,8 @@ class ApiResponse implements ModelInterface, ArrayAccess, \JsonSerializable
|
||||
*/
|
||||
protected static array $openAPINullables = [
|
||||
'code' => false,
|
||||
'type' => false,
|
||||
'message' => false
|
||||
'type' => false,
|
||||
'message' => false
|
||||
];
|
||||
|
||||
/**
|
||||
|
@ -82,8 +82,8 @@ class ArrayTest implements ModelInterface, ArrayAccess, \JsonSerializable
|
||||
*/
|
||||
protected static array $openAPINullables = [
|
||||
'array_of_string' => false,
|
||||
'array_array_of_integer' => false,
|
||||
'array_array_of_model' => false
|
||||
'array_array_of_integer' => false,
|
||||
'array_array_of_model' => false
|
||||
];
|
||||
|
||||
/**
|
||||
|
@ -88,11 +88,11 @@ class Capitalization implements ModelInterface, ArrayAccess, \JsonSerializable
|
||||
*/
|
||||
protected static array $openAPINullables = [
|
||||
'small_camel' => false,
|
||||
'capital_camel' => false,
|
||||
'small_snake' => false,
|
||||
'capital_snake' => false,
|
||||
'sca_eth_flow_points' => false,
|
||||
'att_name' => false
|
||||
'capital_camel' => false,
|
||||
'small_snake' => false,
|
||||
'capital_snake' => false,
|
||||
'sca_eth_flow_points' => false,
|
||||
'att_name' => false
|
||||
];
|
||||
|
||||
/**
|
||||
|
@ -80,7 +80,7 @@ class Category implements ModelInterface, ArrayAccess, \JsonSerializable
|
||||
*/
|
||||
protected static array $openAPINullables = [
|
||||
'id' => false,
|
||||
'name' => false
|
||||
'name' => false
|
||||
];
|
||||
|
||||
/**
|
||||
|
@ -80,7 +80,7 @@ class EnumArrays implements ModelInterface, ArrayAccess, \JsonSerializable
|
||||
*/
|
||||
protected static array $openAPINullables = [
|
||||
'just_symbol' => false,
|
||||
'array_enum' => false
|
||||
'array_enum' => false
|
||||
];
|
||||
|
||||
/**
|
||||
|
@ -92,13 +92,13 @@ class EnumTest implements ModelInterface, ArrayAccess, \JsonSerializable
|
||||
*/
|
||||
protected static array $openAPINullables = [
|
||||
'enum_string' => false,
|
||||
'enum_string_required' => false,
|
||||
'enum_integer' => false,
|
||||
'enum_number' => false,
|
||||
'outer_enum' => true,
|
||||
'outer_enum_integer' => false,
|
||||
'outer_enum_default_value' => false,
|
||||
'outer_enum_integer_default_value' => false
|
||||
'enum_string_required' => false,
|
||||
'enum_integer' => false,
|
||||
'enum_number' => false,
|
||||
'outer_enum' => true,
|
||||
'outer_enum_integer' => false,
|
||||
'outer_enum_default_value' => false,
|
||||
'outer_enum_integer_default_value' => false
|
||||
];
|
||||
|
||||
/**
|
||||
|
@ -80,7 +80,7 @@ class FakeBigDecimalMap200Response implements ModelInterface, ArrayAccess, \Json
|
||||
*/
|
||||
protected static array $openAPINullables = [
|
||||
'some_id' => false,
|
||||
'some_map' => false
|
||||
'some_map' => false
|
||||
];
|
||||
|
||||
/**
|
||||
|
@ -80,7 +80,7 @@ class FileSchemaTestClass implements ModelInterface, ArrayAccess, \JsonSerializa
|
||||
*/
|
||||
protected static array $openAPINullables = [
|
||||
'file' => false,
|
||||
'files' => false
|
||||
'files' => false
|
||||
];
|
||||
|
||||
/**
|
||||
|
@ -108,21 +108,21 @@ class FormatTest implements ModelInterface, ArrayAccess, \JsonSerializable
|
||||
*/
|
||||
protected static array $openAPINullables = [
|
||||
'integer' => false,
|
||||
'int32' => false,
|
||||
'int64' => false,
|
||||
'number' => false,
|
||||
'float' => false,
|
||||
'double' => false,
|
||||
'decimal' => false,
|
||||
'string' => false,
|
||||
'byte' => false,
|
||||
'binary' => false,
|
||||
'date' => false,
|
||||
'date_time' => false,
|
||||
'uuid' => false,
|
||||
'password' => false,
|
||||
'pattern_with_digits' => false,
|
||||
'pattern_with_digits_and_delimiter' => false
|
||||
'int32' => false,
|
||||
'int64' => false,
|
||||
'number' => false,
|
||||
'float' => false,
|
||||
'double' => false,
|
||||
'decimal' => false,
|
||||
'string' => false,
|
||||
'byte' => false,
|
||||
'binary' => false,
|
||||
'date' => false,
|
||||
'date_time' => false,
|
||||
'uuid' => false,
|
||||
'password' => false,
|
||||
'pattern_with_digits' => false,
|
||||
'pattern_with_digits_and_delimiter' => false
|
||||
];
|
||||
|
||||
/**
|
||||
|
@ -80,7 +80,7 @@ class HasOnlyReadOnly implements ModelInterface, ArrayAccess, \JsonSerializable
|
||||
*/
|
||||
protected static array $openAPINullables = [
|
||||
'bar' => false,
|
||||
'foo' => false
|
||||
'foo' => false
|
||||
];
|
||||
|
||||
/**
|
||||
|
@ -84,9 +84,9 @@ class MapTest implements ModelInterface, ArrayAccess, \JsonSerializable
|
||||
*/
|
||||
protected static array $openAPINullables = [
|
||||
'map_map_of_string' => false,
|
||||
'map_of_enum_string' => false,
|
||||
'direct_map' => false,
|
||||
'indirect_map' => false
|
||||
'map_of_enum_string' => false,
|
||||
'direct_map' => false,
|
||||
'indirect_map' => false
|
||||
];
|
||||
|
||||
/**
|
||||
|
@ -82,8 +82,8 @@ class MixedPropertiesAndAdditionalPropertiesClass implements ModelInterface, Arr
|
||||
*/
|
||||
protected static array $openAPINullables = [
|
||||
'uuid' => false,
|
||||
'date_time' => false,
|
||||
'map' => false
|
||||
'date_time' => false,
|
||||
'map' => false
|
||||
];
|
||||
|
||||
/**
|
||||
|
@ -81,7 +81,7 @@ class Model200Response implements ModelInterface, ArrayAccess, \JsonSerializable
|
||||
*/
|
||||
protected static array $openAPINullables = [
|
||||
'name' => false,
|
||||
'class' => false
|
||||
'class' => false
|
||||
];
|
||||
|
||||
/**
|
||||
|
@ -85,9 +85,9 @@ class Name implements ModelInterface, ArrayAccess, \JsonSerializable
|
||||
*/
|
||||
protected static array $openAPINullables = [
|
||||
'name' => false,
|
||||
'snake_case' => false,
|
||||
'property' => false,
|
||||
'_123_number' => false
|
||||
'snake_case' => false,
|
||||
'property' => false,
|
||||
'_123_number' => false
|
||||
];
|
||||
|
||||
/**
|
||||
|
@ -100,17 +100,17 @@ class NullableClass implements ModelInterface, ArrayAccess, \JsonSerializable
|
||||
*/
|
||||
protected static array $openAPINullables = [
|
||||
'integer_prop' => true,
|
||||
'number_prop' => true,
|
||||
'boolean_prop' => true,
|
||||
'string_prop' => true,
|
||||
'date_prop' => true,
|
||||
'datetime_prop' => true,
|
||||
'array_nullable_prop' => true,
|
||||
'array_and_items_nullable_prop' => true,
|
||||
'array_items_nullable' => false,
|
||||
'object_nullable_prop' => true,
|
||||
'object_and_items_nullable_prop' => true,
|
||||
'object_items_nullable' => false
|
||||
'number_prop' => true,
|
||||
'boolean_prop' => true,
|
||||
'string_prop' => true,
|
||||
'date_prop' => true,
|
||||
'datetime_prop' => true,
|
||||
'array_nullable_prop' => true,
|
||||
'array_and_items_nullable_prop' => true,
|
||||
'array_items_nullable' => false,
|
||||
'object_nullable_prop' => true,
|
||||
'object_and_items_nullable_prop' => true,
|
||||
'object_items_nullable' => false
|
||||
];
|
||||
|
||||
/**
|
||||
|
@ -84,9 +84,9 @@ class ObjectWithDeprecatedFields implements ModelInterface, ArrayAccess, \JsonSe
|
||||
*/
|
||||
protected static array $openAPINullables = [
|
||||
'uuid' => false,
|
||||
'id' => false,
|
||||
'deprecated_ref' => false,
|
||||
'bars' => false
|
||||
'id' => false,
|
||||
'deprecated_ref' => false,
|
||||
'bars' => false
|
||||
];
|
||||
|
||||
/**
|
||||
|
@ -88,11 +88,11 @@ class Order implements ModelInterface, ArrayAccess, \JsonSerializable
|
||||
*/
|
||||
protected static array $openAPINullables = [
|
||||
'id' => false,
|
||||
'pet_id' => false,
|
||||
'quantity' => false,
|
||||
'ship_date' => false,
|
||||
'status' => false,
|
||||
'complete' => false
|
||||
'pet_id' => false,
|
||||
'quantity' => false,
|
||||
'ship_date' => false,
|
||||
'status' => false,
|
||||
'complete' => false
|
||||
];
|
||||
|
||||
/**
|
||||
|
@ -82,8 +82,8 @@ class OuterComposite implements ModelInterface, ArrayAccess, \JsonSerializable
|
||||
*/
|
||||
protected static array $openAPINullables = [
|
||||
'my_number' => false,
|
||||
'my_string' => false,
|
||||
'my_boolean' => false
|
||||
'my_string' => false,
|
||||
'my_boolean' => false
|
||||
];
|
||||
|
||||
/**
|
||||
|
@ -88,11 +88,11 @@ class Pet implements ModelInterface, ArrayAccess, \JsonSerializable
|
||||
*/
|
||||
protected static array $openAPINullables = [
|
||||
'id' => false,
|
||||
'category' => false,
|
||||
'name' => false,
|
||||
'photo_urls' => false,
|
||||
'tags' => false,
|
||||
'status' => false
|
||||
'category' => false,
|
||||
'name' => false,
|
||||
'photo_urls' => false,
|
||||
'tags' => false,
|
||||
'status' => false
|
||||
];
|
||||
|
||||
/**
|
||||
|
@ -84,9 +84,9 @@ class PropertyNameMapping implements ModelInterface, ArrayAccess, \JsonSerializa
|
||||
*/
|
||||
protected static array $openAPINullables = [
|
||||
'http_debug_operation' => false,
|
||||
'underscore_type' => false,
|
||||
'type' => false,
|
||||
'type_with_underscore' => false
|
||||
'underscore_type' => false,
|
||||
'type' => false,
|
||||
'type_with_underscore' => false
|
||||
];
|
||||
|
||||
/**
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user