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:
Viktor Szépe 2023-12-05 11:01:25 +01:00 committed by GitHub
parent 391df3b81c
commit 39d5b4ebf9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
214 changed files with 698 additions and 698 deletions

View File

@ -7,8 +7,8 @@ declare cwd="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
declare root="$(cd "$cwd" && cd ../ && pwd)" declare root="$(cd "$cwd" && cd ../ && pwd)"
if ! command -v gradle > /dev/null; then if ! command -v gradle > /dev/null; then
echo "[WARN] This script requires a system gradle to be installed. Not treating this as an error." echo "[WARN] This script requires a system gradle to be installed. Not treating this as an error."
exit 0 exit 0
fi fi
executable="${root}/modules/openapi-generator-cli/target/openapi-generator-cli.jar" executable="${root}/modules/openapi-generator-cli/target/openapi-generator-cli.jar"

View File

@ -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: Yes, please use the following option when generating TypeScript clients:
``` ```
modelPropertyNaming modelPropertyNaming
Naming convention for the property: 'camelCase', 'PascalCase', 'snake_case' and 'original', which keeps the original name (Default: camelCase) Naming convention for the property: 'camelCase', 'PascalCase', 'snake_case' and 'original', which keeps the original name (Default: camelCase)
``` ```

View File

@ -45,7 +45,7 @@ abstract project Config is
when "debug" => when "debug" =>
for Default_Switches ("Ada") use ("-E"); for Default_Switches ("Ada") use ("-E");
when others => when others =>
for Default_Switches ("Ada") use ("-E"); for Default_Switches ("Ada") use ("-E");
end case; end case;
@ -64,12 +64,12 @@ abstract project Config is
when "coverage" => when "coverage" =>
for Default_Switches ("ada") use ("-fprofile-arcs"); for Default_Switches ("ada") use ("-fprofile-arcs");
when others => when others =>
null; null;
end case; end case;
end linker; end linker;
package Ide is package Ide is
for VCS_Kind use "git"; for VCS_Kind use "git";

View File

@ -243,7 +243,7 @@ end:
{{/isBoolean}} {{/isBoolean}}
{{/isInteger}} {{/isInteger}}
keyPairQuery_{{paramName}} = keyValuePair_create(keyQuery_{{{paramName}}}, {{#isEnum}}(void *)strdup({{{operationId}}}_{{enumName}}_ToString( 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}}); list_addElement(localVarQueryParameters,keyPairQuery_{{paramName}});
{{/isArray}} {{/isArray}}
} }

View File

@ -10,9 +10,9 @@ keyValuePair_t *keyValuePair_create(char *key, void *value) {
} }
keyValuePair_t* keyValuePair_create_allocate(char* key, double value) { keyValuePair_t* keyValuePair_create_allocate(char* key, double value) {
double* boolpointer = malloc(sizeof(value)); double* boolpointer = malloc(sizeof(value));
memcpy(boolpointer, &value, sizeof(value)); memcpy(boolpointer, &value, sizeof(value));
return keyValuePair_create(key, boolpointer); return keyValuePair_create(key, boolpointer);
} }
void keyValuePair_free(keyValuePair_t *keyValuePair) { void keyValuePair_free(keyValuePair_t *keyValuePair) {

View File

@ -11,5 +11,5 @@
#include "keyValuePair.h" #include "keyValuePair.h"
int main() { int main() {
printf("Hello world1\n"); printf("Hello world1\n");
} }

View File

@ -79,7 +79,7 @@ end:
{{#isEnum}} {{#isEnum}}
char* {{name}}{{classname}}_ToString({{projectName}}_{{classVarName}}_{{enumName}}_e {{name}}) { char* {{name}}{{classname}}_ToString({{projectName}}_{{classVarName}}_{{enumName}}_e {{name}}) {
char* {{name}}Array[] = { "NULL"{{#allowableValues}}{{#values}}, "{{.}}"{{/values}}{{/allowableValues}} }; 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}}){ {{projectName}}_{{classVarName}}_{{enumName}}_e {{name}}{{classname}}_FromString(char* {{name}}){
@ -102,8 +102,8 @@ char* {{name}}{{classname}}_ToString({{projectName}}_{{classVarName}}_{{enumName
{{^isModel}} {{^isModel}}
{{#isEnum}} {{#isEnum}}
char* {{name}}{{classname}}_ToString({{projectName}}_{{classVarName}}_{{enumName}}_e {{name}}) { char* {{name}}{{classname}}_ToString({{projectName}}_{{classVarName}}_{{enumName}}_e {{name}}) {
char *{{name}}Array[] = { "NULL"{{#allowableValues}}{{#values}}, "{{.}}"{{/values}}{{/allowableValues}} }; char *{{name}}Array[] = { "NULL"{{#allowableValues}}{{#values}}, "{{.}}"{{/values}}{{/allowableValues}} };
return {{name}}Array[{{name}} - 1]; return {{name}}Array[{{name}} - 1];
} }
{{projectName}}_{{classVarName}}_{{enumName}}_e {{name}}{{classname}}_FromString(char* {{name}}) { {{projectName}}_{{classVarName}}_{{enumName}}_e {{name}}{{classname}}_FromString(char* {{name}}) {
@ -821,7 +821,7 @@ fail:
} }
localMapKeyPair = keyValuePair_create(strdup(localMapObject->string),&localMapObject->valuedouble ); localMapKeyPair = keyValuePair_create(strdup(localMapObject->string),&localMapObject->valuedouble );
{{/isNumeric}} {{/isNumeric}}
{{/items}} {{/items}}
list_addElement({{{name}}}List , localMapKeyPair); list_addElement({{{name}}}List , localMapKeyPair);
} }
} }

View File

@ -24,14 +24,14 @@ feature --Access
{{^isInherited}} {{^isInherited}}
{{#isPrimitiveType}} {{#isPrimitiveType}}
{{^isContainer}} {{^isContainer}}
{{name}}: {{{dataType}}} {{name}}: {{{dataType}}}
{{#description}}-- {{{.}}}{{/description}} {{#description}}-- {{{.}}}{{/description}}
{{/isContainer}} {{/isContainer}}
{{/isPrimitiveType}} {{/isPrimitiveType}}
{{#isPrimitiveType}} {{#isPrimitiveType}}
{{#isContainer}} {{#isContainer}}
{{name}}: detachable {{{datatypeWithEnum}}} {{name}}: detachable {{{datatypeWithEnum}}}
{{#description}}-- {{{.}}}{{/description}} {{#description}}-- {{{.}}}{{/description}}
{{/isContainer}} {{/isContainer}}
{{/isPrimitiveType}} {{/isPrimitiveType}}
{{^isPrimitiveType}} {{^isPrimitiveType}}
@ -45,7 +45,7 @@ feature --Access
{{/isContainer}} {{/isContainer}}
{{/isPrimitiveType}} {{/isPrimitiveType}}
{{/isInherited}} {{/isInherited}}
{{/vars}} {{/vars}}
feature -- Change Element feature -- Change Element

View File

@ -25,7 +25,7 @@
* Convert a String into {{dataType}}, as specified in the * 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> * <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()) { 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 // using Objects.toString() to be safe if value type non-object type
// because types like 'int' etc. will be auto-boxed // 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}} {{#isNullable}}return null;{{/isNullable}}{{^isNullable}}throw new IllegalArgumentException("Unexpected string value '" + s + "'");{{/isNullable}}
} }
@JsonCreator @JsonCreator
public static {{datatypeWithEnum}} fromValue({{dataType}} value) { public static {{datatypeWithEnum}} fromValue({{dataType}} value) {
for ({{{datatypeWithEnum}}}{{^datatypeWithEnum}}{{{classname}}}{{/datatypeWithEnum}} b : {{{datatypeWithEnum}}}{{^datatypeWithEnum}}{{{classname}}}{{/datatypeWithEnum}}.values()) { for ({{{datatypeWithEnum}}}{{^datatypeWithEnum}}{{{classname}}}{{/datatypeWithEnum}} b : {{{datatypeWithEnum}}}{{^datatypeWithEnum}}{{{classname}}}{{/datatypeWithEnum}}.values()) {

View File

@ -29,7 +29,7 @@ import com.fasterxml.jackson.annotation.JsonValue;
* Convert a String into {{dataType}}, as specified in the * 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> * <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()) { 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 // using Objects.toString() to be safe if value type non-object type
// because types like 'int' etc. will be auto-boxed // 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}} {{#isNullable}}return null;{{/isNullable}}{{^isNullable}}throw new IllegalArgumentException("Unexpected string value '" + s + "'");{{/isNullable}}
} }
@Override @Override
@JsonValue @JsonValue
public String toString() { public String toString() {

View File

@ -1,5 +1,5 @@
AuthBasicProvider file AuthBasicProvider file
AuthUserFile "{{vendorExtensions.x-codegen-user-info-path}}htpwd" AuthUserFile "{{vendorExtensions.x-codegen-user-info-path}}htpwd"
AuthGroupFile "{{vendorExtensions.x-codegen-user-info-path}}groups" AuthGroupFile "{{vendorExtensions.x-codegen-user-info-path}}groups"
AuthType basic AuthType basic
AuthName "api" AuthName "api"

View File

@ -174,7 +174,7 @@ class {{declspec}} {{classname}}
{ {
public: public:
explicit {{classname}}(std::shared_ptr<restbed::Service> const& restbedService); explicit {{classname}}(std::shared_ptr<restbed::Service> const& restbedService);
virtual ~{{classname}}(); virtual ~{{classname}}();
{{#operation}} {{#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); 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(); virtual std::shared_ptr<restbed::Service> service();
protected: protected:
{{#operation}} {{#operation}}
std::shared_ptr<{{classname}}{{vendorExtensions.x-codegen-resource-name}}Resource> m_sp{{classname}}{{vendorExtensions.x-codegen-resource-name}}Resource; std::shared_ptr<{{classname}}{{vendorExtensions.x-codegen-resource-name}}Resource> m_sp{{classname}}{{vendorExtensions.x-codegen-resource-name}}Resource;
{{/operation}} {{/operation}}
private: private:
std::shared_ptr<restbed::Service> m_service; std::shared_ptr<restbed::Service> m_service;

View File

@ -137,7 +137,7 @@ class {{declspec}} {{classname}}
{ {
public: public:
explicit {{classname}}(std::shared_ptr<restbed::Service> const& restbedService); explicit {{classname}}(std::shared_ptr<restbed::Service> const& restbedService);
virtual ~{{classname}}(); virtual ~{{classname}}();
{{#operation}} {{#operation}}
std::shared_ptr<{{classname}}Resources::{{vendorExtensions.x-codegen-resource-name}}Resource> get{{vendorExtensions.x-codegen-resource-name}}Resource(); 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(); virtual std::shared_ptr<restbed::Service> service();
protected: protected:
{{#operation}} {{#operation}}
std::shared_ptr<{{classname}}Resources::{{vendorExtensions.x-codegen-resource-name}}Resource> m_sp{{vendorExtensions.x-codegen-resource-name}}Resource; std::shared_ptr<{{classname}}Resources::{{vendorExtensions.x-codegen-resource-name}}Resource> m_sp{{vendorExtensions.x-codegen-resource-name}}Resource;
{{/operation}} {{/operation}}
private: private:
std::shared_ptr<restbed::Service> m_service; std::shared_ptr<restbed::Service> m_service;

View File

@ -25,7 +25,7 @@
* Convert a String into {{dataType}}, as specified in the * 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> * <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()) { 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 // using Objects.toString() to be safe if value type non-object type
// because types like 'int' etc. will be auto-boxed // 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}} {{#isNullable}}return null;{{/isNullable}}{{^isNullable}}throw new IllegalArgumentException("Unexpected string value '" + s + "'");{{/isNullable}}
} }
{{#jackson}}@JsonCreator{{/jackson}} {{#jackson}}@JsonCreator{{/jackson}}
public static {{datatypeWithEnum}} fromValue({{dataType}} value) { public static {{datatypeWithEnum}} fromValue({{dataType}} value) {
for ({{{datatypeWithEnum}}}{{^datatypeWithEnum}}{{{classname}}}{{/datatypeWithEnum}} b : {{{datatypeWithEnum}}}{{^datatypeWithEnum}}{{{classname}}}{{/datatypeWithEnum}}.values()) { for ({{{datatypeWithEnum}}}{{^datatypeWithEnum}}{{{classname}}}{{/datatypeWithEnum}} b : {{{datatypeWithEnum}}}{{^datatypeWithEnum}}{{{classname}}}{{/datatypeWithEnum}}.values()) {

View File

@ -32,7 +32,7 @@ import {{rootJavaEEPackage}}.json.bind.annotation.JsonbCreator;
* Convert a String into {{dataType}}, as specified in the * 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> * <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()) { 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 // using Objects.toString() to be safe if value type non-object type
// because types like 'int' etc. will be auto-boxed // 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}} {{#isNullable}}return null;{{/isNullable}}{{^isNullable}}throw new IllegalArgumentException("Unexpected string value '" + s + "'");{{/isNullable}}
} }
@Override @Override
{{#jackson}}@JsonValue{{/jackson}} {{#jackson}}@JsonValue{{/jackson}}
public String toString() { public String toString() {

View File

@ -41,7 +41,7 @@ import io.swagger.v3.oas.annotations.security.SecurityRequirement;
{{/generateSwagger2Annotations}} {{/generateSwagger2Annotations}}
{{#additionalClientTypeAnnotations}} {{#additionalClientTypeAnnotations}}
{{{.}}} {{{.}}}
{{/additionalClientTypeAnnotations}} {{/additionalClientTypeAnnotations}}
{{>common/generatedAnnotation}} {{>common/generatedAnnotation}}
@Client({{#configureClientId}} @Client({{#configureClientId}}

View File

@ -9,6 +9,6 @@ akka {
} }
url="http://localhost:8081" url="http://localhost:8081"
noOfUsers=10 #Number of Users noOfUsers=10 #Number of Users
deleteProductId=4 #Delete the Product by using productID deleteProductId=4 #Delete the Product by using productID
getProduct=2 #Get the Product getProduct=2 #Get the Product

View File

@ -80,7 +80,7 @@ public class HttpLoggingFilter implements Filter {
.append(bufferedResponse.getStatus()) .append(bufferedResponse.getStatus())
.append("] [Response Time(ms):").append(elapsedTime) .append("] [Response Time(ms):").append(elapsedTime)
.append("]"); .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(); String urlPath = httpServletRequest.getRequestURL().toString();
if (! ( Arrays.stream(nonLoggingPaths).parallel().anyMatch(urlPath::contains) )){ if (! ( Arrays.stream(nonLoggingPaths).parallel().anyMatch(urlPath::contains) )){
log.info(logMessage.toString()); log.info(logMessage.toString());

View File

@ -10,9 +10,9 @@
self = [super init]; self = [super init];
if (self) { if (self) {
_values = values; _values = values;
_format = format; _format = format;
} }
return self; return self;
} }

View File

@ -2,7 +2,7 @@
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0"> <plist version="1.0">
<dict> <dict>
<key>_XCCurrentVersionName</key> <key>_XCCurrentVersionName</key>
<string>{{classPrefix}}Model.xcdatamodel</string> <string>{{classPrefix}}Model.xcdatamodel</string>
</dict> </dict>
</plist> </plist>

View File

@ -30,14 +30,14 @@
</ul> </ul>
</div> </div>
{{#apiInfo}} {{#apiInfo}}
{{#apis}} {{#apis}}
<div class="section-box"> <div class="section-box">
<div class="section-header"> <div class="section-header">
<a href="#!/{{classname}}">{{classname}}</a> <a href="#!/{{classname}}">{{classname}}</a>
</div> </div>
<ul> <ul>
{{#operations}} {{#operations}}
{{#operation}} {{#operation}}
<li><a href="#!/{{classname}}#{{nickname}}">{{nickname}}</a></li> <li><a href="#!/{{classname}}#{{nickname}}">{{nickname}}</a></li>
{{/operation}} {{/operation}}
{{/operations}} {{/operations}}

View File

@ -16,8 +16,8 @@
<div class="model" data-model="{{returnBaseType}}"><a href="">{{returnType}}</a></div> <div class="model" data-model="{{returnBaseType}}"><a href="">{{returnType}}</a></div>
<h3 class="section">Parameters</h3> <h3 class="section">Parameters</h3>
<ul> <ul>
{{#allParams}} {{#allParams}}
<li class="parameter"> <li class="parameter">
{{#isFormParam}}<span class="param-in">Form: </span>{{/isFormParam}} {{#isFormParam}}<span class="param-in">Form: </span>{{/isFormParam}}
{{#isQueryParam}}<span class="param-in">Query: </span>{{/isQueryParam}} {{#isQueryParam}}<span class="param-in">Query: </span>{{/isQueryParam}}
{{#isPathParam}}<span class="param-in">Path: </span>{{/isPathParam}} {{#isPathParam}}<span class="param-in">Path: </span>{{/isPathParam}}
@ -27,7 +27,7 @@
<span class="param-type">{{dataType}}{{#baseType}}({{.}}){{/baseType}}</span> <span class="param-type">{{dataType}}{{#baseType}}({{.}}){{/baseType}}</span>
{{#optional}}<span class="param-optional-flag">(optional)</span>{{/optional}} {{#optional}}<span class="param-optional-flag">(optional)</span>{{/optional}}
<p class="param-description">{{description}}</p> <p class="param-description">{{description}}</p>
</li> </li>
{{/allParams}} {{/allParams}}
</ul> </ul>
{{/operation}} {{/operation}}

View File

@ -419,9 +419,9 @@ class Configuration
$report .= ' OS: ' . php_uname() . PHP_EOL; $report .= ' OS: ' . php_uname() . PHP_EOL;
$report .= ' PHP Version: ' . PHP_VERSION . PHP_EOL; $report .= ' PHP Version: ' . PHP_VERSION . PHP_EOL;
$report .= ' The version of the OpenAPI document: {{version}}' . PHP_EOL; $report .= ' The version of the OpenAPI document: {{version}}' . PHP_EOL;
{{#artifactVersion}} {{#artifactVersion}}
$report .= ' SDK Package Version: {{.}}' . PHP_EOL; $report .= ' SDK Package Version: {{.}}' . PHP_EOL;
{{/artifactVersion}} {{/artifactVersion}}
$report .= ' Temp Folder Path: ' . self::getDefaultConfiguration()->getTempFolderPath() . PHP_EOL; $report .= ' Temp Folder Path: ' . self::getDefaultConfiguration()->getTempFolderPath() . PHP_EOL;
return $report; return $report;

View File

@ -36,7 +36,7 @@ class {{classname}} {{#parentSchema}}extends {{{parent}}}{{/parentSchema}}{{^par
*/ */
protected static array $openAPINullables = [ protected static array $openAPINullables = [
{{#vars}}'{{name}}' => {{#isNullable}}true{{/isNullable}}{{^isNullable}}false{{/isNullable}}{{^-last}}, {{#vars}}'{{name}}' => {{#isNullable}}true{{/isNullable}}{{^isNullable}}false{{/isNullable}}{{^-last}},
{{/-last}}{{/vars}} {{/-last}}{{/vars}}
]; ];
/** /**

View File

@ -424,9 +424,9 @@ class Configuration
$report .= ' OS: ' . php_uname() . PHP_EOL; $report .= ' OS: ' . php_uname() . PHP_EOL;
$report .= ' PHP Version: ' . PHP_VERSION . PHP_EOL; $report .= ' PHP Version: ' . PHP_VERSION . PHP_EOL;
$report .= ' The version of the OpenAPI document: {{version}}' . PHP_EOL; $report .= ' The version of the OpenAPI document: {{version}}' . PHP_EOL;
{{#artifactVersion}} {{#artifactVersion}}
$report .= ' SDK Package Version: {{.}}' . PHP_EOL; $report .= ' SDK Package Version: {{.}}' . PHP_EOL;
{{/artifactVersion}} {{/artifactVersion}}
$report .= ' Temp Folder Path: ' . self::getDefaultConfiguration()->getTempFolderPath() . PHP_EOL; $report .= ' Temp Folder Path: ' . self::getDefaultConfiguration()->getTempFolderPath() . PHP_EOL;
return $report; return $report;

View File

@ -38,7 +38,7 @@ class {{classname}} {{#parentSchema}}extends {{{parent}}}{{/parentSchema}}{{^par
*/ */
protected static array $openAPINullables = [ protected static array $openAPINullables = [
{{#vars}}'{{name}}' => {{#isNullable}}true{{/isNullable}}{{^isNullable}}false{{/isNullable}}{{^-last}}, {{#vars}}'{{name}}' => {{#isNullable}}true{{/isNullable}}{{^isNullable}}false{{/isNullable}}{{^-last}},
{{/-last}}{{/vars}} {{/-last}}{{/vars}}
]; ];
/** /**

View File

@ -5,7 +5,7 @@ skipsdist=True
[testenv] [testenv]
deps=-r{toxinidir}/requirements.txt deps=-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt -r{toxinidir}/test-requirements.txt
{toxinidir} {toxinidir}
commands= commands=
{{^useNose}}pytest --cov={{{packageName}}}{{/useNose}}{{#useNose}}nosetests{{/useNose}} {{^useNose}}pytest --cov={{{packageName}}}{{/useNose}}{{#useNose}}nosetests{{/useNose}}

View File

@ -5,7 +5,7 @@ skipsdist=True
[testenv] [testenv]
deps=-r{toxinidir}/requirements.txt deps=-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt -r{toxinidir}/test-requirements.txt
{toxinidir} {toxinidir}
commands= commands=
{{^useNose}}pytest --cov={{{pythonSrcRoot}}}{{{packageName}}}{{/useNose}}{{#useNose}}nosetests{{/useNose}} {{^useNose}}pytest --cov={{{pythonSrcRoot}}}{{{packageName}}}{{/useNose}}{{#useNose}}nosetests{{/useNose}}

View File

@ -35,9 +35,9 @@ impl <T> fmt::Display for Error<T> {
Error::Serde(e) => ("serde", e.to_string()), Error::Serde(e) => ("serde", e.to_string()),
Error::Io(e) => ("IO", e.to_string()), Error::Io(e) => ("IO", e.to_string()),
Error::ResponseError(e) => ("response", format!("status code {}", e.status)), Error::ResponseError(e) => ("response", format!("status code {}", e.status)),
{{#withAWSV4Signature}} {{#withAWSV4Signature}}
Error::AWSV4SignatureError(e) => ("aws v4 signature", e.to_string()), Error::AWSV4SignatureError(e) => ("aws v4 signature", e.to_string()),
{{/withAWSV4Signature}} {{/withAWSV4Signature}}
}; };
write!(f, "error in {}: {}", module, e) write!(f, "error in {}: {}", module, e)
} }
@ -53,9 +53,9 @@ impl <T: fmt::Debug> error::Error for Error<T> {
Error::Serde(e) => e, Error::Serde(e) => e,
Error::Io(e) => e, Error::Io(e) => e,
Error::ResponseError(_) => return None, Error::ResponseError(_) => return None,
{{#withAWSV4Signature}} {{#withAWSV4Signature}}
Error::AWSV4SignatureError(_) => return None, Error::AWSV4SignatureError(_) => return None,
{{/withAWSV4Signature}} {{/withAWSV4Signature}}
}) })
} }
} }

View File

@ -9,10 +9,10 @@
</appender> </appender>
<!-- Uncomment for logging ALL HTTP request and responses --> <!-- 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" /> --> <!-- <logger name="io.gatling.http.response" level="TRACE" /> -->
<!-- Uncomment for logging ONLY FAILED HTTP request and responses --> <!-- 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" /> --> <!-- <logger name="io.gatling.http.response" level="DEBUG" /> -->
<root level="WARN"> <root level="WARN">

View File

@ -164,8 +164,8 @@ class {{classname}}RecordUtils extends ApiRecordUtils<{{classname}}, {{classname
{{/items.isEntity}} {{/items.isEntity}}
{{/isArray}} {{/isArray}}
{{/vars}} {{/vars}}
...unchangedProperties ...unchangedProperties
} = entity; } = entity;
const entityProperties = { const entityProperties = {
{{#vars}} {{#vars}}

View File

@ -80,7 +80,7 @@ export const DefaultConfig = new Configuration();
*/ */
export class BaseAPI { 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[]; private middleware: Middleware[];
constructor(protected configuration = DefaultConfig) { constructor(protected configuration = DefaultConfig) {

View File

@ -1,5 +1,5 @@
#tag Enum, Name = {{enumName}}, Type = Integer, Flags = &h{{^nonPublicApi}}0{{/nonPublicApi}}{{#nonPublicApi}}21{{/nonPublicApi}} #tag Enum, Name = {{enumName}}, Type = Integer, Flags = &h{{^nonPublicApi}}0{{/nonPublicApi}}{{#nonPublicApi}}21{{/nonPublicApi}}
{{#allowableValues}}{{#enumVars}} {{#allowableValues}}{{#enumVars}}
{{{name}}}{{#isInteger}} = {{{value}}}{{/isInteger}}{{/enumVars}}{{/allowableValues}} {{{name}}}{{#isInteger}} = {{{value}}}{{/isInteger}}{{/enumVars}}{{/allowableValues}}
{{#enumUnknownDefaultCase}}Unknown{{#isInteger}} = {{{value}}}{{/isInteger}}{{/enumUnknownDefaultCase}} {{#enumUnknownDefaultCase}}Unknown{{#isInteger}} = {{{value}}}{{/isInteger}}{{/enumUnknownDefaultCase}}
#tag EndEnum #tag EndEnum

View File

@ -386,7 +386,7 @@
<jakarta-annotation-version>1.3.5</jakarta-annotation-version> <jakarta-annotation-version>1.3.5</jakarta-annotation-version>
{{/useJakartaEe}} {{/useJakartaEe}}
{{#useBeanValidation}} {{#useBeanValidation}}
<beanvalidation-version>2.0.2</beanvalidation-version> <beanvalidation-version>2.0.2</beanvalidation-version>
{{/useBeanValidation}} {{/useBeanValidation}}
<junit-version>4.13.2</junit-version> <junit-version>4.13.2</junit-version>
{{#hasHttpSignatureMethods}} {{#hasHttpSignatureMethods}}

View File

@ -203,7 +203,7 @@
} }
] ]
}, },
{ {
"description": "oneOf with missing optional property", "description": "oneOf with missing optional property",
"schema": { "schema": {
"oneOf": [ "oneOf": [

View File

@ -80,7 +80,7 @@ class Bird implements ModelInterface, ArrayAccess, JsonSerializable
*/ */
protected static array $openAPINullables = [ protected static array $openAPINullables = [
'size' => false, 'size' => false,
'color' => false 'color' => false
]; ];
/** /**

View File

@ -80,7 +80,7 @@ class Category implements ModelInterface, ArrayAccess, JsonSerializable
*/ */
protected static array $openAPINullables = [ protected static array $openAPINullables = [
'id' => false, 'id' => false,
'name' => false 'name' => false
]; ];
/** /**

View File

@ -76,8 +76,8 @@ class DataQuery extends Query
*/ */
protected static array $openAPINullables = [ protected static array $openAPINullables = [
'suffix' => false, 'suffix' => false,
'text' => false, 'text' => false,
'date' => false 'date' => false
]; ];
/** /**

View File

@ -93,13 +93,13 @@ class DefaultValue implements ModelInterface, ArrayAccess, JsonSerializable
*/ */
protected static array $openAPINullables = [ protected static array $openAPINullables = [
'array_string_enum_ref_default' => false, 'array_string_enum_ref_default' => false,
'array_string_enum_default' => false, 'array_string_enum_default' => false,
'array_string_default' => false, 'array_string_default' => false,
'array_integer_default' => false, 'array_integer_default' => false,
'array_string' => false, 'array_string' => false,
'array_string_nullable' => true, 'array_string_nullable' => true,
'array_string_extension_nullable' => true, 'array_string_extension_nullable' => true,
'string_nullable' => true 'string_nullable' => true
]; ];
/** /**

View File

@ -82,8 +82,8 @@ class NumberPropertiesOnly implements ModelInterface, ArrayAccess, JsonSerializa
*/ */
protected static array $openAPINullables = [ protected static array $openAPINullables = [
'number' => false, 'number' => false,
'float' => false, 'float' => false,
'double' => false 'double' => false
]; ];
/** /**

View File

@ -88,11 +88,11 @@ class Pet implements ModelInterface, ArrayAccess, JsonSerializable
*/ */
protected static array $openAPINullables = [ protected static array $openAPINullables = [
'id' => false, 'id' => false,
'name' => false, 'name' => false,
'category' => false, 'category' => false,
'photo_urls' => false, 'photo_urls' => false,
'tags' => false, 'tags' => false,
'status' => false 'status' => false
]; ];
/** /**

View File

@ -80,7 +80,7 @@ class Query implements ModelInterface, ArrayAccess, JsonSerializable
*/ */
protected static array $openAPINullables = [ protected static array $openAPINullables = [
'id' => false, 'id' => false,
'outcomes' => false 'outcomes' => false
]; ];
/** /**

View File

@ -80,7 +80,7 @@ class Tag implements ModelInterface, ArrayAccess, JsonSerializable
*/ */
protected static array $openAPINullables = [ protected static array $openAPINullables = [
'id' => false, 'id' => false,
'name' => false 'name' => false
]; ];
/** /**

View File

@ -84,9 +84,9 @@ class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter impleme
*/ */
protected static array $openAPINullables = [ protected static array $openAPINullables = [
'size' => false, 'size' => false,
'color' => false, 'color' => false,
'id' => false, 'id' => false,
'name' => false 'name' => false
]; ];
/** /**

View File

@ -45,7 +45,7 @@ abstract project Config is
when "debug" => when "debug" =>
for Default_Switches ("Ada") use ("-E"); for Default_Switches ("Ada") use ("-E");
when others => when others =>
for Default_Switches ("Ada") use ("-E"); for Default_Switches ("Ada") use ("-E");
end case; end case;
@ -64,12 +64,12 @@ abstract project Config is
when "coverage" => when "coverage" =>
for Default_Switches ("ada") use ("-fprofile-arcs"); for Default_Switches ("ada") use ("-fprofile-arcs");
when others => when others =>
null; null;
end case; end case;
end linker; end linker;
package Ide is package Ide is
for VCS_Kind use "git"; for VCS_Kind use "git";

View File

@ -6,7 +6,7 @@
char* statusorder_ToString(openapi_petstore_order_STATUS_e status) { char* statusorder_ToString(openapi_petstore_order_STATUS_e status) {
char* statusArray[] = { "NULL", "placed", "approved", "delivered" }; char* statusArray[] = { "NULL", "placed", "approved", "delivered" };
return statusArray[status]; return statusArray[status];
} }
openapi_petstore_order_STATUS_e statusorder_FromString(char* status){ openapi_petstore_order_STATUS_e statusorder_FromString(char* status){

View File

@ -6,7 +6,7 @@
char* statuspet_ToString(openapi_petstore_pet_STATUS_e status) { char* statuspet_ToString(openapi_petstore_pet_STATUS_e status) {
char* statusArray[] = { "NULL", "available", "pending", "sold" }; char* statusArray[] = { "NULL", "available", "pending", "sold" };
return statusArray[status]; return statusArray[status];
} }
openapi_petstore_pet_STATUS_e statuspet_FromString(char* status){ openapi_petstore_pet_STATUS_e statuspet_FromString(char* status){

View File

@ -10,9 +10,9 @@ keyValuePair_t *keyValuePair_create(char *key, void *value) {
} }
keyValuePair_t* keyValuePair_create_allocate(char* key, double value) { keyValuePair_t* keyValuePair_create_allocate(char* key, double value) {
double* boolpointer = malloc(sizeof(value)); double* boolpointer = malloc(sizeof(value));
memcpy(boolpointer, &value, sizeof(value)); memcpy(boolpointer, &value, sizeof(value));
return keyValuePair_create(key, boolpointer); return keyValuePair_create(key, boolpointer);
} }
void keyValuePair_free(keyValuePair_t *keyValuePair) { void keyValuePair_free(keyValuePair_t *keyValuePair) {

View File

@ -10,9 +10,9 @@
self = [super init]; self = [super init];
if (self) { if (self) {
_values = values; _values = values;
_format = format; _format = format;
} }
return self; return self;
} }

View File

@ -2,7 +2,7 @@
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0"> <plist version="1.0">
<dict> <dict>
<key>_XCCurrentVersionName</key> <key>_XCCurrentVersionName</key>
<string>SWGModel.xcdatamodel</string> <string>SWGModel.xcdatamodel</string>
</dict> </dict>
</plist> </plist>

View File

@ -10,9 +10,9 @@
self = [super init]; self = [super init];
if (self) { if (self) {
_values = values; _values = values;
_format = format; _format = format;
} }
return self; return self;
} }

View File

@ -79,7 +79,7 @@ class AdditionalPropertiesClass implements ModelInterface, ArrayAccess, JsonSeri
*/ */
protected static array $openAPINullables = [ protected static array $openAPINullables = [
'map_property' => false, 'map_property' => false,
'map_of_map_property' => false 'map_of_map_property' => false
]; ];
/** /**

View File

@ -79,7 +79,7 @@ class AllOfWithSingleRef implements ModelInterface, ArrayAccess, JsonSerializabl
*/ */
protected static array $openAPINullables = [ protected static array $openAPINullables = [
'username' => false, 'username' => false,
'single_ref_type' => false 'single_ref_type' => false
]; ];
/** /**

View File

@ -79,7 +79,7 @@ class Animal implements ModelInterface, ArrayAccess, JsonSerializable
*/ */
protected static array $openAPINullables = [ protected static array $openAPINullables = [
'class_name' => false, 'class_name' => false,
'color' => false 'color' => false
]; ];
/** /**

View File

@ -81,8 +81,8 @@ class ApiResponse implements ModelInterface, ArrayAccess, JsonSerializable
*/ */
protected static array $openAPINullables = [ protected static array $openAPINullables = [
'code' => false, 'code' => false,
'type' => false, 'type' => false,
'message' => false 'message' => false
]; ];
/** /**

View File

@ -81,8 +81,8 @@ class ArrayTest implements ModelInterface, ArrayAccess, JsonSerializable
*/ */
protected static array $openAPINullables = [ protected static array $openAPINullables = [
'array_of_string' => false, 'array_of_string' => false,
'array_array_of_integer' => false, 'array_array_of_integer' => false,
'array_array_of_model' => false 'array_array_of_model' => false
]; ];
/** /**

View File

@ -87,11 +87,11 @@ class Capitalization implements ModelInterface, ArrayAccess, JsonSerializable
*/ */
protected static array $openAPINullables = [ protected static array $openAPINullables = [
'small_camel' => false, 'small_camel' => false,
'capital_camel' => false, 'capital_camel' => false,
'small_snake' => false, 'small_snake' => false,
'capital_snake' => false, 'capital_snake' => false,
'sca_eth_flow_points' => false, 'sca_eth_flow_points' => false,
'att_name' => false 'att_name' => false
]; ];
/** /**

View File

@ -79,7 +79,7 @@ class Category implements ModelInterface, ArrayAccess, JsonSerializable
*/ */
protected static array $openAPINullables = [ protected static array $openAPINullables = [
'id' => false, 'id' => false,
'name' => false 'name' => false
]; ];
/** /**

View File

@ -79,7 +79,7 @@ class EnumArrays implements ModelInterface, ArrayAccess, JsonSerializable
*/ */
protected static array $openAPINullables = [ protected static array $openAPINullables = [
'just_symbol' => false, 'just_symbol' => false,
'array_enum' => false 'array_enum' => false
]; ];
/** /**

View File

@ -91,13 +91,13 @@ class EnumTest implements ModelInterface, ArrayAccess, JsonSerializable
*/ */
protected static array $openAPINullables = [ protected static array $openAPINullables = [
'enum_string' => false, 'enum_string' => false,
'enum_string_required' => false, 'enum_string_required' => false,
'enum_integer' => false, 'enum_integer' => false,
'enum_number' => false, 'enum_number' => false,
'outer_enum' => true, 'outer_enum' => true,
'outer_enum_integer' => false, 'outer_enum_integer' => false,
'outer_enum_default_value' => false, 'outer_enum_default_value' => false,
'outer_enum_integer_default_value' => false 'outer_enum_integer_default_value' => false
]; ];
/** /**

View File

@ -79,7 +79,7 @@ class FakeBigDecimalMap200Response implements ModelInterface, ArrayAccess, JsonS
*/ */
protected static array $openAPINullables = [ protected static array $openAPINullables = [
'some_id' => false, 'some_id' => false,
'some_map' => false 'some_map' => false
]; ];
/** /**

View File

@ -79,7 +79,7 @@ class FileSchemaTestClass implements ModelInterface, ArrayAccess, JsonSerializab
*/ */
protected static array $openAPINullables = [ protected static array $openAPINullables = [
'file' => false, 'file' => false,
'files' => false 'files' => false
]; ];
/** /**

View File

@ -107,21 +107,21 @@ class FormatTest implements ModelInterface, ArrayAccess, JsonSerializable
*/ */
protected static array $openAPINullables = [ protected static array $openAPINullables = [
'integer' => false, 'integer' => false,
'int32' => false, 'int32' => false,
'int64' => false, 'int64' => false,
'number' => false, 'number' => false,
'float' => false, 'float' => false,
'double' => false, 'double' => false,
'decimal' => false, 'decimal' => false,
'string' => false, 'string' => false,
'byte' => false, 'byte' => false,
'binary' => false, 'binary' => false,
'date' => false, 'date' => false,
'date_time' => false, 'date_time' => false,
'uuid' => false, 'uuid' => false,
'password' => false, 'password' => false,
'pattern_with_digits' => false, 'pattern_with_digits' => false,
'pattern_with_digits_and_delimiter' => false 'pattern_with_digits_and_delimiter' => false
]; ];
/** /**

View File

@ -79,7 +79,7 @@ class HasOnlyReadOnly implements ModelInterface, ArrayAccess, JsonSerializable
*/ */
protected static array $openAPINullables = [ protected static array $openAPINullables = [
'bar' => false, 'bar' => false,
'foo' => false 'foo' => false
]; ];
/** /**

View File

@ -83,9 +83,9 @@ class MapTest implements ModelInterface, ArrayAccess, JsonSerializable
*/ */
protected static array $openAPINullables = [ protected static array $openAPINullables = [
'map_map_of_string' => false, 'map_map_of_string' => false,
'map_of_enum_string' => false, 'map_of_enum_string' => false,
'direct_map' => false, 'direct_map' => false,
'indirect_map' => false 'indirect_map' => false
]; ];
/** /**

View File

@ -81,8 +81,8 @@ class MixedPropertiesAndAdditionalPropertiesClass implements ModelInterface, Arr
*/ */
protected static array $openAPINullables = [ protected static array $openAPINullables = [
'uuid' => false, 'uuid' => false,
'date_time' => false, 'date_time' => false,
'map' => false 'map' => false
]; ];
/** /**

View File

@ -80,7 +80,7 @@ class Model200Response implements ModelInterface, ArrayAccess, JsonSerializable
*/ */
protected static array $openAPINullables = [ protected static array $openAPINullables = [
'name' => false, 'name' => false,
'class' => false 'class' => false
]; ];
/** /**

View File

@ -84,9 +84,9 @@ class Name implements ModelInterface, ArrayAccess, JsonSerializable
*/ */
protected static array $openAPINullables = [ protected static array $openAPINullables = [
'name' => false, 'name' => false,
'snake_case' => false, 'snake_case' => false,
'property' => false, 'property' => false,
'_123_number' => false '_123_number' => false
]; ];
/** /**

View File

@ -99,17 +99,17 @@ class NullableClass implements ModelInterface, ArrayAccess, JsonSerializable
*/ */
protected static array $openAPINullables = [ protected static array $openAPINullables = [
'integer_prop' => true, 'integer_prop' => true,
'number_prop' => true, 'number_prop' => true,
'boolean_prop' => true, 'boolean_prop' => true,
'string_prop' => true, 'string_prop' => true,
'date_prop' => true, 'date_prop' => true,
'datetime_prop' => true, 'datetime_prop' => true,
'array_nullable_prop' => true, 'array_nullable_prop' => true,
'array_and_items_nullable_prop' => true, 'array_and_items_nullable_prop' => true,
'array_items_nullable' => false, 'array_items_nullable' => false,
'object_nullable_prop' => true, 'object_nullable_prop' => true,
'object_and_items_nullable_prop' => true, 'object_and_items_nullable_prop' => true,
'object_items_nullable' => false 'object_items_nullable' => false
]; ];
/** /**

View File

@ -83,9 +83,9 @@ class ObjectWithDeprecatedFields implements ModelInterface, ArrayAccess, JsonSer
*/ */
protected static array $openAPINullables = [ protected static array $openAPINullables = [
'uuid' => false, 'uuid' => false,
'id' => false, 'id' => false,
'deprecated_ref' => false, 'deprecated_ref' => false,
'bars' => false 'bars' => false
]; ];
/** /**

View File

@ -87,11 +87,11 @@ class Order implements ModelInterface, ArrayAccess, JsonSerializable
*/ */
protected static array $openAPINullables = [ protected static array $openAPINullables = [
'id' => false, 'id' => false,
'pet_id' => false, 'pet_id' => false,
'quantity' => false, 'quantity' => false,
'ship_date' => false, 'ship_date' => false,
'status' => false, 'status' => false,
'complete' => false 'complete' => false
]; ];
/** /**

View File

@ -81,8 +81,8 @@ class OuterComposite implements ModelInterface, ArrayAccess, JsonSerializable
*/ */
protected static array $openAPINullables = [ protected static array $openAPINullables = [
'my_number' => false, 'my_number' => false,
'my_string' => false, 'my_string' => false,
'my_boolean' => false 'my_boolean' => false
]; ];
/** /**

View File

@ -79,7 +79,7 @@ class ParentWithNullable implements ModelInterface, ArrayAccess, JsonSerializabl
*/ */
protected static array $openAPINullables = [ protected static array $openAPINullables = [
'type' => false, 'type' => false,
'nullable_property' => true 'nullable_property' => true
]; ];
/** /**

View File

@ -87,11 +87,11 @@ class Pet implements ModelInterface, ArrayAccess, JsonSerializable
*/ */
protected static array $openAPINullables = [ protected static array $openAPINullables = [
'id' => false, 'id' => false,
'category' => false, 'category' => false,
'name' => false, 'name' => false,
'photo_urls' => false, 'photo_urls' => false,
'tags' => false, 'tags' => false,
'status' => false 'status' => false
]; ];
/** /**

View File

@ -79,7 +79,7 @@ class ReadOnlyFirst implements ModelInterface, ArrayAccess, JsonSerializable
*/ */
protected static array $openAPINullables = [ protected static array $openAPINullables = [
'bar' => false, 'bar' => false,
'baz' => false 'baz' => false
]; ];
/** /**

View File

@ -79,7 +79,7 @@ class Tag implements ModelInterface, ArrayAccess, JsonSerializable
*/ */
protected static array $openAPINullables = [ protected static array $openAPINullables = [
'id' => false, 'id' => false,
'name' => false 'name' => false
]; ];
/** /**

View File

@ -91,13 +91,13 @@ class User implements ModelInterface, ArrayAccess, JsonSerializable
*/ */
protected static array $openAPINullables = [ protected static array $openAPINullables = [
'id' => false, 'id' => false,
'username' => false, 'username' => false,
'first_name' => false, 'first_name' => false,
'last_name' => false, 'last_name' => false,
'email' => false, 'email' => false,
'password' => false, 'password' => false,
'phone' => false, 'phone' => false,
'user_status' => false 'user_status' => false
]; ];
/** /**

View File

@ -80,7 +80,7 @@ class AdditionalPropertiesClass implements ModelInterface, ArrayAccess, \JsonSer
*/ */
protected static array $openAPINullables = [ protected static array $openAPINullables = [
'map_property' => false, 'map_property' => false,
'map_of_map_property' => false 'map_of_map_property' => false
]; ];
/** /**

View File

@ -80,7 +80,7 @@ class AllOfWithSingleRef implements ModelInterface, ArrayAccess, \JsonSerializab
*/ */
protected static array $openAPINullables = [ protected static array $openAPINullables = [
'username' => false, 'username' => false,
'single_ref_type' => false 'single_ref_type' => false
]; ];
/** /**

View File

@ -80,7 +80,7 @@ class Animal implements ModelInterface, ArrayAccess, \JsonSerializable
*/ */
protected static array $openAPINullables = [ protected static array $openAPINullables = [
'class_name' => false, 'class_name' => false,
'color' => false 'color' => false
]; ];
/** /**

View File

@ -82,8 +82,8 @@ class ApiResponse implements ModelInterface, ArrayAccess, \JsonSerializable
*/ */
protected static array $openAPINullables = [ protected static array $openAPINullables = [
'code' => false, 'code' => false,
'type' => false, 'type' => false,
'message' => false 'message' => false
]; ];
/** /**

View File

@ -82,8 +82,8 @@ class ArrayTest implements ModelInterface, ArrayAccess, \JsonSerializable
*/ */
protected static array $openAPINullables = [ protected static array $openAPINullables = [
'array_of_string' => false, 'array_of_string' => false,
'array_array_of_integer' => false, 'array_array_of_integer' => false,
'array_array_of_model' => false 'array_array_of_model' => false
]; ];
/** /**

View File

@ -88,11 +88,11 @@ class Capitalization implements ModelInterface, ArrayAccess, \JsonSerializable
*/ */
protected static array $openAPINullables = [ protected static array $openAPINullables = [
'small_camel' => false, 'small_camel' => false,
'capital_camel' => false, 'capital_camel' => false,
'small_snake' => false, 'small_snake' => false,
'capital_snake' => false, 'capital_snake' => false,
'sca_eth_flow_points' => false, 'sca_eth_flow_points' => false,
'att_name' => false 'att_name' => false
]; ];
/** /**

View File

@ -80,7 +80,7 @@ class Category implements ModelInterface, ArrayAccess, \JsonSerializable
*/ */
protected static array $openAPINullables = [ protected static array $openAPINullables = [
'id' => false, 'id' => false,
'name' => false 'name' => false
]; ];
/** /**

View File

@ -80,7 +80,7 @@ class EnumArrays implements ModelInterface, ArrayAccess, \JsonSerializable
*/ */
protected static array $openAPINullables = [ protected static array $openAPINullables = [
'just_symbol' => false, 'just_symbol' => false,
'array_enum' => false 'array_enum' => false
]; ];
/** /**

View File

@ -92,13 +92,13 @@ class EnumTest implements ModelInterface, ArrayAccess, \JsonSerializable
*/ */
protected static array $openAPINullables = [ protected static array $openAPINullables = [
'enum_string' => false, 'enum_string' => false,
'enum_string_required' => false, 'enum_string_required' => false,
'enum_integer' => false, 'enum_integer' => false,
'enum_number' => false, 'enum_number' => false,
'outer_enum' => true, 'outer_enum' => true,
'outer_enum_integer' => false, 'outer_enum_integer' => false,
'outer_enum_default_value' => false, 'outer_enum_default_value' => false,
'outer_enum_integer_default_value' => false 'outer_enum_integer_default_value' => false
]; ];
/** /**

View File

@ -80,7 +80,7 @@ class FakeBigDecimalMap200Response implements ModelInterface, ArrayAccess, \Json
*/ */
protected static array $openAPINullables = [ protected static array $openAPINullables = [
'some_id' => false, 'some_id' => false,
'some_map' => false 'some_map' => false
]; ];
/** /**

View File

@ -80,7 +80,7 @@ class FileSchemaTestClass implements ModelInterface, ArrayAccess, \JsonSerializa
*/ */
protected static array $openAPINullables = [ protected static array $openAPINullables = [
'file' => false, 'file' => false,
'files' => false 'files' => false
]; ];
/** /**

View File

@ -108,21 +108,21 @@ class FormatTest implements ModelInterface, ArrayAccess, \JsonSerializable
*/ */
protected static array $openAPINullables = [ protected static array $openAPINullables = [
'integer' => false, 'integer' => false,
'int32' => false, 'int32' => false,
'int64' => false, 'int64' => false,
'number' => false, 'number' => false,
'float' => false, 'float' => false,
'double' => false, 'double' => false,
'decimal' => false, 'decimal' => false,
'string' => false, 'string' => false,
'byte' => false, 'byte' => false,
'binary' => false, 'binary' => false,
'date' => false, 'date' => false,
'date_time' => false, 'date_time' => false,
'uuid' => false, 'uuid' => false,
'password' => false, 'password' => false,
'pattern_with_digits' => false, 'pattern_with_digits' => false,
'pattern_with_digits_and_delimiter' => false 'pattern_with_digits_and_delimiter' => false
]; ];
/** /**

View File

@ -80,7 +80,7 @@ class HasOnlyReadOnly implements ModelInterface, ArrayAccess, \JsonSerializable
*/ */
protected static array $openAPINullables = [ protected static array $openAPINullables = [
'bar' => false, 'bar' => false,
'foo' => false 'foo' => false
]; ];
/** /**

View File

@ -84,9 +84,9 @@ class MapTest implements ModelInterface, ArrayAccess, \JsonSerializable
*/ */
protected static array $openAPINullables = [ protected static array $openAPINullables = [
'map_map_of_string' => false, 'map_map_of_string' => false,
'map_of_enum_string' => false, 'map_of_enum_string' => false,
'direct_map' => false, 'direct_map' => false,
'indirect_map' => false 'indirect_map' => false
]; ];
/** /**

View File

@ -82,8 +82,8 @@ class MixedPropertiesAndAdditionalPropertiesClass implements ModelInterface, Arr
*/ */
protected static array $openAPINullables = [ protected static array $openAPINullables = [
'uuid' => false, 'uuid' => false,
'date_time' => false, 'date_time' => false,
'map' => false 'map' => false
]; ];
/** /**

View File

@ -81,7 +81,7 @@ class Model200Response implements ModelInterface, ArrayAccess, \JsonSerializable
*/ */
protected static array $openAPINullables = [ protected static array $openAPINullables = [
'name' => false, 'name' => false,
'class' => false 'class' => false
]; ];
/** /**

View File

@ -85,9 +85,9 @@ class Name implements ModelInterface, ArrayAccess, \JsonSerializable
*/ */
protected static array $openAPINullables = [ protected static array $openAPINullables = [
'name' => false, 'name' => false,
'snake_case' => false, 'snake_case' => false,
'property' => false, 'property' => false,
'_123_number' => false '_123_number' => false
]; ];
/** /**

View File

@ -100,17 +100,17 @@ class NullableClass implements ModelInterface, ArrayAccess, \JsonSerializable
*/ */
protected static array $openAPINullables = [ protected static array $openAPINullables = [
'integer_prop' => true, 'integer_prop' => true,
'number_prop' => true, 'number_prop' => true,
'boolean_prop' => true, 'boolean_prop' => true,
'string_prop' => true, 'string_prop' => true,
'date_prop' => true, 'date_prop' => true,
'datetime_prop' => true, 'datetime_prop' => true,
'array_nullable_prop' => true, 'array_nullable_prop' => true,
'array_and_items_nullable_prop' => true, 'array_and_items_nullable_prop' => true,
'array_items_nullable' => false, 'array_items_nullable' => false,
'object_nullable_prop' => true, 'object_nullable_prop' => true,
'object_and_items_nullable_prop' => true, 'object_and_items_nullable_prop' => true,
'object_items_nullable' => false 'object_items_nullable' => false
]; ];
/** /**

View File

@ -84,9 +84,9 @@ class ObjectWithDeprecatedFields implements ModelInterface, ArrayAccess, \JsonSe
*/ */
protected static array $openAPINullables = [ protected static array $openAPINullables = [
'uuid' => false, 'uuid' => false,
'id' => false, 'id' => false,
'deprecated_ref' => false, 'deprecated_ref' => false,
'bars' => false 'bars' => false
]; ];
/** /**

View File

@ -88,11 +88,11 @@ class Order implements ModelInterface, ArrayAccess, \JsonSerializable
*/ */
protected static array $openAPINullables = [ protected static array $openAPINullables = [
'id' => false, 'id' => false,
'pet_id' => false, 'pet_id' => false,
'quantity' => false, 'quantity' => false,
'ship_date' => false, 'ship_date' => false,
'status' => false, 'status' => false,
'complete' => false 'complete' => false
]; ];
/** /**

View File

@ -82,8 +82,8 @@ class OuterComposite implements ModelInterface, ArrayAccess, \JsonSerializable
*/ */
protected static array $openAPINullables = [ protected static array $openAPINullables = [
'my_number' => false, 'my_number' => false,
'my_string' => false, 'my_string' => false,
'my_boolean' => false 'my_boolean' => false
]; ];
/** /**

View File

@ -88,11 +88,11 @@ class Pet implements ModelInterface, ArrayAccess, \JsonSerializable
*/ */
protected static array $openAPINullables = [ protected static array $openAPINullables = [
'id' => false, 'id' => false,
'category' => false, 'category' => false,
'name' => false, 'name' => false,
'photo_urls' => false, 'photo_urls' => false,
'tags' => false, 'tags' => false,
'status' => false 'status' => false
]; ];
/** /**

View File

@ -84,9 +84,9 @@ class PropertyNameMapping implements ModelInterface, ArrayAccess, \JsonSerializa
*/ */
protected static array $openAPINullables = [ protected static array $openAPINullables = [
'http_debug_operation' => false, 'http_debug_operation' => false,
'underscore_type' => false, 'underscore_type' => false,
'type' => false, 'type' => false,
'type_with_underscore' => false 'type_with_underscore' => false
]; ];
/** /**

Some files were not shown because too many files have changed in this diff Show More