[Java] implicit headers regex (#11819)

This commit is contained in:
Oleh Kurpiak 2022-03-10 04:49:52 +02:00 committed by GitHub
parent cbdcf8cdad
commit fb2c41c720
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
92 changed files with 421 additions and 820 deletions

View File

@ -4,3 +4,4 @@ inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml
templateDir: modules/openapi-generator/src/main/resources/JavaJaxRS/cxf-cdi templateDir: modules/openapi-generator/src/main/resources/JavaJaxRS/cxf-cdi
additionalProperties: additionalProperties:
hideGenerationTimestamp: "true" hideGenerationTimestamp: "true"
implicitHeadersRegex: api_key

View File

@ -5,3 +5,4 @@ templateDir: modules/openapi-generator/src/main/resources/JavaJaxRS/cxf
additionalProperties: additionalProperties:
hideGenerationTimestamp: "true" hideGenerationTimestamp: "true"
serverPort: "8082" serverPort: "8082"
implicitHeadersRegex: (api_key|enum_header_string)

View File

@ -4,3 +4,4 @@ inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml
templateDir: modules/openapi-generator/src/main/resources/JavaJaxRS/resteasy templateDir: modules/openapi-generator/src/main/resources/JavaJaxRS/resteasy
additionalProperties: additionalProperties:
hideGenerationTimestamp: "true" hideGenerationTimestamp: "true"
implicitHeadersRegex: api_key

View File

@ -6,3 +6,4 @@ additionalProperties:
artifactId: jaxrs-resteasy-eap-java8-server artifactId: jaxrs-resteasy-eap-java8-server
hideGenerationTimestamp: "true" hideGenerationTimestamp: "true"
dateLibrary: java8 dateLibrary: java8
implicitHeadersRegex: api_key

View File

@ -7,3 +7,4 @@ additionalProperties:
interfaceOnly: "true" interfaceOnly: "true"
serializableModel: "true" serializableModel: "true"
hideGenerationTimestamp: "true" hideGenerationTimestamp: "true"
implicitHeadersRegex: (api_key|enum_header_string)

View File

@ -6,3 +6,4 @@ additionalProperties:
artifactId: jaxrs-spec-petstore-server artifactId: jaxrs-spec-petstore-server
serializableModel: "true" serializableModel: "true"
hideGenerationTimestamp: "true" hideGenerationTimestamp: "true"
implicitHeadersRegex: (api_key|enum_header_string)

View File

@ -6,4 +6,4 @@ additionalProperties:
artifactId: springboot-implicitHeaders artifactId: springboot-implicitHeaders
documentationProvider: springfox documentationProvider: springfox
hideGenerationTimestamp: "true" hideGenerationTimestamp: "true"
implicitHeaders: true implicitHeadersRegex: .*

View File

@ -40,6 +40,8 @@ These options may be applied as additional-properties (cli) or configOptions (pl
|groupId|groupId in generated pom.xml| |org.openapitools| |groupId|groupId in generated pom.xml| |org.openapitools|
|hideGenerationTimestamp|Hides the generation timestamp when files are generated.| |false| |hideGenerationTimestamp|Hides the generation timestamp when files are generated.| |false|
|ignoreAnyOfInEnum|Ignore anyOf keyword in enum| |false| |ignoreAnyOfInEnum|Ignore anyOf keyword in enum| |false|
|implicitHeaders|Skip header parameters in the generated API methods using @ApiImplicitParams annotation.| |false|
|implicitHeadersRegex|Skip header parameters that matches given regex in the generated API methods using @ApiImplicitParams annotation. Note: this parameter is ignored when implicitHeaders=true| |null|
|invokerPackage|root package for generated code| |org.openapitools.api| |invokerPackage|root package for generated code| |org.openapitools.api|
|legacyDiscriminatorBehavior|Set to false for generators with better support for discriminators. (Python, Java, Go, PowerShell, C#have this enabled by default).|<dl><dt>**true**</dt><dd>The mapping in the discriminator includes descendent schemas that allOf inherit from self and the discriminator mapping schemas in the OAS document.</dd><dt>**false**</dt><dd>The mapping in the discriminator includes any descendent schemas that allOf inherit from self, any oneOf schemas, any anyOf schemas, any x-discriminator-values, and the discriminator mapping schemas in the OAS document AND Codegen validates that oneOf and anyOf schemas contain the required discriminator and throws an error if the discriminator is missing.</dd></dl>|true| |legacyDiscriminatorBehavior|Set to false for generators with better support for discriminators. (Python, Java, Go, PowerShell, C#have this enabled by default).|<dl><dt>**true**</dt><dd>The mapping in the discriminator includes descendent schemas that allOf inherit from self and the discriminator mapping schemas in the OAS document.</dd><dt>**false**</dt><dd>The mapping in the discriminator includes any descendent schemas that allOf inherit from self, any oneOf schemas, any anyOf schemas, any x-discriminator-values, and the discriminator mapping schemas in the OAS document AND Codegen validates that oneOf and anyOf schemas contain the required discriminator and throws an error if the discriminator is missing.</dd></dl>|true|
|licenseName|The name of the license| |Unlicense| |licenseName|The name of the license| |Unlicense|

View File

@ -58,6 +58,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
|hideGenerationTimestamp|Hides the generation timestamp when files are generated.| |false| |hideGenerationTimestamp|Hides the generation timestamp when files are generated.| |false|
|ignoreAnyOfInEnum|Ignore anyOf keyword in enum| |false| |ignoreAnyOfInEnum|Ignore anyOf keyword in enum| |false|
|implicitHeaders|Skip header parameters in the generated API methods using @ApiImplicitParams annotation.| |false| |implicitHeaders|Skip header parameters in the generated API methods using @ApiImplicitParams annotation.| |false|
|implicitHeadersRegex|Skip header parameters that matches given regex in the generated API methods using @ApiImplicitParams annotation. Note: this parameter is ignored when implicitHeaders=true| |null|
|interfaceOnly|Whether to generate only API interface stubs without the server files.| |false| |interfaceOnly|Whether to generate only API interface stubs without the server files.| |false|
|invokerPackage|root package for generated code| |org.openapitools.api| |invokerPackage|root package for generated code| |org.openapitools.api|
|legacyDiscriminatorBehavior|Set to false for generators with better support for discriminators. (Python, Java, Go, PowerShell, C#have this enabled by default).|<dl><dt>**true**</dt><dd>The mapping in the discriminator includes descendent schemas that allOf inherit from self and the discriminator mapping schemas in the OAS document.</dd><dt>**false**</dt><dd>The mapping in the discriminator includes any descendent schemas that allOf inherit from self, any oneOf schemas, any anyOf schemas, any x-discriminator-values, and the discriminator mapping schemas in the OAS document AND Codegen validates that oneOf and anyOf schemas contain the required discriminator and throws an error if the discriminator is missing.</dd></dl>|true| |legacyDiscriminatorBehavior|Set to false for generators with better support for discriminators. (Python, Java, Go, PowerShell, C#have this enabled by default).|<dl><dt>**true**</dt><dd>The mapping in the discriminator includes descendent schemas that allOf inherit from self and the discriminator mapping schemas in the OAS document.</dd><dt>**false**</dt><dd>The mapping in the discriminator includes any descendent schemas that allOf inherit from self, any oneOf schemas, any anyOf schemas, any x-discriminator-values, and the discriminator mapping schemas in the OAS document AND Codegen validates that oneOf and anyOf schemas contain the required discriminator and throws an error if the discriminator is missing.</dd></dl>|true|

View File

@ -42,6 +42,8 @@ These options may be applied as additional-properties (cli) or configOptions (pl
|groupId|groupId in generated pom.xml| |org.openapitools| |groupId|groupId in generated pom.xml| |org.openapitools|
|hideGenerationTimestamp|Hides the generation timestamp when files are generated.| |false| |hideGenerationTimestamp|Hides the generation timestamp when files are generated.| |false|
|ignoreAnyOfInEnum|Ignore anyOf keyword in enum| |false| |ignoreAnyOfInEnum|Ignore anyOf keyword in enum| |false|
|implicitHeaders|Skip header parameters in the generated API methods using @ApiImplicitParams annotation.| |false|
|implicitHeadersRegex|Skip header parameters that matches given regex in the generated API methods using @ApiImplicitParams annotation. Note: this parameter is ignored when implicitHeaders=true| |null|
|invokerPackage|root package for generated code| |org.openapitools.controllers| |invokerPackage|root package for generated code| |org.openapitools.controllers|
|legacyDiscriminatorBehavior|Set to false for generators with better support for discriminators. (Python, Java, Go, PowerShell, C#have this enabled by default).|<dl><dt>**true**</dt><dd>The mapping in the discriminator includes descendent schemas that allOf inherit from self and the discriminator mapping schemas in the OAS document.</dd><dt>**false**</dt><dd>The mapping in the discriminator includes any descendent schemas that allOf inherit from self, any oneOf schemas, any anyOf schemas, any x-discriminator-values, and the discriminator mapping schemas in the OAS document AND Codegen validates that oneOf and anyOf schemas contain the required discriminator and throws an error if the discriminator is missing.</dd></dl>|true| |legacyDiscriminatorBehavior|Set to false for generators with better support for discriminators. (Python, Java, Go, PowerShell, C#have this enabled by default).|<dl><dt>**true**</dt><dd>The mapping in the discriminator includes descendent schemas that allOf inherit from self and the discriminator mapping schemas in the OAS document.</dd><dt>**false**</dt><dd>The mapping in the discriminator includes any descendent schemas that allOf inherit from self, any oneOf schemas, any anyOf schemas, any x-discriminator-values, and the discriminator mapping schemas in the OAS document AND Codegen validates that oneOf and anyOf schemas contain the required discriminator and throws an error if the discriminator is missing.</dd></dl>|true|
|licenseName|The name of the license| |Unlicense| |licenseName|The name of the license| |Unlicense|

View File

@ -43,6 +43,8 @@ These options may be applied as additional-properties (cli) or configOptions (pl
|groupId|groupId in generated pom.xml| |org.openapitools| |groupId|groupId in generated pom.xml| |org.openapitools|
|hideGenerationTimestamp|Hides the generation timestamp when files are generated.| |false| |hideGenerationTimestamp|Hides the generation timestamp when files are generated.| |false|
|ignoreAnyOfInEnum|Ignore anyOf keyword in enum| |false| |ignoreAnyOfInEnum|Ignore anyOf keyword in enum| |false|
|implicitHeaders|Skip header parameters in the generated API methods using @ApiImplicitParams annotation.| |false|
|implicitHeadersRegex|Skip header parameters that matches given regex in the generated API methods using @ApiImplicitParams annotation. Note: this parameter is ignored when implicitHeaders=true| |null|
|invokerPackage|root package for generated code| |org.openapitools| |invokerPackage|root package for generated code| |org.openapitools|
|legacyDiscriminatorBehavior|Set to false for generators with better support for discriminators. (Python, Java, Go, PowerShell, C#have this enabled by default).|<dl><dt>**true**</dt><dd>The mapping in the discriminator includes descendent schemas that allOf inherit from self and the discriminator mapping schemas in the OAS document.</dd><dt>**false**</dt><dd>The mapping in the discriminator includes any descendent schemas that allOf inherit from self, any oneOf schemas, any anyOf schemas, any x-discriminator-values, and the discriminator mapping schemas in the OAS document AND Codegen validates that oneOf and anyOf schemas contain the required discriminator and throws an error if the discriminator is missing.</dd></dl>|true| |legacyDiscriminatorBehavior|Set to false for generators with better support for discriminators. (Python, Java, Go, PowerShell, C#have this enabled by default).|<dl><dt>**true**</dt><dd>The mapping in the discriminator includes descendent schemas that allOf inherit from self and the discriminator mapping schemas in the OAS document.</dd><dt>**false**</dt><dd>The mapping in the discriminator includes any descendent schemas that allOf inherit from self, any oneOf schemas, any anyOf schemas, any x-discriminator-values, and the discriminator mapping schemas in the OAS document AND Codegen validates that oneOf and anyOf schemas contain the required discriminator and throws an error if the discriminator is missing.</dd></dl>|true|
|licenseName|The name of the license| |Unlicense| |licenseName|The name of the license| |Unlicense|

View File

@ -44,6 +44,8 @@ These options may be applied as additional-properties (cli) or configOptions (pl
|groupId|groupId in generated pom.xml| |org.openapitools| |groupId|groupId in generated pom.xml| |org.openapitools|
|hideGenerationTimestamp|Hides the generation timestamp when files are generated.| |false| |hideGenerationTimestamp|Hides the generation timestamp when files are generated.| |false|
|ignoreAnyOfInEnum|Ignore anyOf keyword in enum| |false| |ignoreAnyOfInEnum|Ignore anyOf keyword in enum| |false|
|implicitHeaders|Skip header parameters in the generated API methods using @ApiImplicitParams annotation.| |false|
|implicitHeadersRegex|Skip header parameters that matches given regex in the generated API methods using @ApiImplicitParams annotation. Note: this parameter is ignored when implicitHeaders=true| |null|
|invokerPackage|root package for generated code| |org.openapitools| |invokerPackage|root package for generated code| |org.openapitools|
|legacyDiscriminatorBehavior|Set to false for generators with better support for discriminators. (Python, Java, Go, PowerShell, C#have this enabled by default).|<dl><dt>**true**</dt><dd>The mapping in the discriminator includes descendent schemas that allOf inherit from self and the discriminator mapping schemas in the OAS document.</dd><dt>**false**</dt><dd>The mapping in the discriminator includes any descendent schemas that allOf inherit from self, any oneOf schemas, any anyOf schemas, any x-discriminator-values, and the discriminator mapping schemas in the OAS document AND Codegen validates that oneOf and anyOf schemas contain the required discriminator and throws an error if the discriminator is missing.</dd></dl>|true| |legacyDiscriminatorBehavior|Set to false for generators with better support for discriminators. (Python, Java, Go, PowerShell, C#have this enabled by default).|<dl><dt>**true**</dt><dd>The mapping in the discriminator includes descendent schemas that allOf inherit from self and the discriminator mapping schemas in the OAS document.</dd><dt>**false**</dt><dd>The mapping in the discriminator includes any descendent schemas that allOf inherit from self, any oneOf schemas, any anyOf schemas, any x-discriminator-values, and the discriminator mapping schemas in the OAS document AND Codegen validates that oneOf and anyOf schemas contain the required discriminator and throws an error if the discriminator is missing.</dd></dl>|true|
|licenseName|The name of the license| |Unlicense| |licenseName|The name of the license| |Unlicense|

View File

@ -43,6 +43,8 @@ These options may be applied as additional-properties (cli) or configOptions (pl
|hideGenerationTimestamp|Hides the generation timestamp when files are generated.| |false| |hideGenerationTimestamp|Hides the generation timestamp when files are generated.| |false|
|ignoreAnyOfInEnum|Ignore anyOf keyword in enum| |false| |ignoreAnyOfInEnum|Ignore anyOf keyword in enum| |false|
|implFolder|folder for generated implementation code| |src/main/java| |implFolder|folder for generated implementation code| |src/main/java|
|implicitHeaders|Skip header parameters in the generated API methods using @ApiImplicitParams annotation.| |false|
|implicitHeadersRegex|Skip header parameters that matches given regex in the generated API methods using @ApiImplicitParams annotation. Note: this parameter is ignored when implicitHeaders=true| |null|
|invokerPackage|root package for generated code| |org.openapitools.api| |invokerPackage|root package for generated code| |org.openapitools.api|
|legacyDiscriminatorBehavior|Set to false for generators with better support for discriminators. (Python, Java, Go, PowerShell, C#have this enabled by default).|<dl><dt>**true**</dt><dd>The mapping in the discriminator includes descendent schemas that allOf inherit from self and the discriminator mapping schemas in the OAS document.</dd><dt>**false**</dt><dd>The mapping in the discriminator includes any descendent schemas that allOf inherit from self, any oneOf schemas, any anyOf schemas, any x-discriminator-values, and the discriminator mapping schemas in the OAS document AND Codegen validates that oneOf and anyOf schemas contain the required discriminator and throws an error if the discriminator is missing.</dd></dl>|true| |legacyDiscriminatorBehavior|Set to false for generators with better support for discriminators. (Python, Java, Go, PowerShell, C#have this enabled by default).|<dl><dt>**true**</dt><dd>The mapping in the discriminator includes descendent schemas that allOf inherit from self and the discriminator mapping schemas in the OAS document.</dd><dt>**false**</dt><dd>The mapping in the discriminator includes any descendent schemas that allOf inherit from self, any oneOf schemas, any anyOf schemas, any x-discriminator-values, and the discriminator mapping schemas in the OAS document AND Codegen validates that oneOf and anyOf schemas contain the required discriminator and throws an error if the discriminator is missing.</dd></dl>|true|
|library|library template (sub-template)|<dl><dt>**jersey1**</dt><dd>Jersey core 1.x</dd><dt>**jersey2**</dt><dd>Jersey core 2.x</dd></dl>|jersey2| |library|library template (sub-template)|<dl><dt>**jersey1**</dt><dd>Jersey core 1.x</dd><dt>**jersey2**</dt><dd>Jersey core 2.x</dd></dl>|jersey2|

View File

@ -44,6 +44,8 @@ These options may be applied as additional-properties (cli) or configOptions (pl
|groupId|groupId in generated pom.xml| |com.prokarma| |groupId|groupId in generated pom.xml| |com.prokarma|
|hideGenerationTimestamp|Hides the generation timestamp when files are generated.| |false| |hideGenerationTimestamp|Hides the generation timestamp when files are generated.| |false|
|ignoreAnyOfInEnum|Ignore anyOf keyword in enum| |false| |ignoreAnyOfInEnum|Ignore anyOf keyword in enum| |false|
|implicitHeaders|Skip header parameters in the generated API methods using @ApiImplicitParams annotation.| |false|
|implicitHeadersRegex|Skip header parameters that matches given regex in the generated API methods using @ApiImplicitParams annotation. Note: this parameter is ignored when implicitHeaders=true| |null|
|invokerPackage|root package for generated code| |com.prokarma.pkmst.controller| |invokerPackage|root package for generated code| |com.prokarma.pkmst.controller|
|legacyDiscriminatorBehavior|Set to false for generators with better support for discriminators. (Python, Java, Go, PowerShell, C#have this enabled by default).|<dl><dt>**true**</dt><dd>The mapping in the discriminator includes descendent schemas that allOf inherit from self and the discriminator mapping schemas in the OAS document.</dd><dt>**false**</dt><dd>The mapping in the discriminator includes any descendent schemas that allOf inherit from self, any oneOf schemas, any anyOf schemas, any x-discriminator-values, and the discriminator mapping schemas in the OAS document AND Codegen validates that oneOf and anyOf schemas contain the required discriminator and throws an error if the discriminator is missing.</dd></dl>|true| |legacyDiscriminatorBehavior|Set to false for generators with better support for discriminators. (Python, Java, Go, PowerShell, C#have this enabled by default).|<dl><dt>**true**</dt><dd>The mapping in the discriminator includes descendent schemas that allOf inherit from self and the discriminator mapping schemas in the OAS document.</dd><dt>**false**</dt><dd>The mapping in the discriminator includes any descendent schemas that allOf inherit from self, any oneOf schemas, any anyOf schemas, any x-discriminator-values, and the discriminator mapping schemas in the OAS document AND Codegen validates that oneOf and anyOf schemas contain the required discriminator and throws an error if the discriminator is missing.</dd></dl>|true|
|licenseName|The name of the license| |Unlicense| |licenseName|The name of the license| |Unlicense|

View File

@ -46,6 +46,8 @@ These options may be applied as additional-properties (cli) or configOptions (pl
|handleExceptions|Add a 'throw exception' to each controller function. Add also a custom error handler where you can put your custom logic| |true| |handleExceptions|Add a 'throw exception' to each controller function. Add also a custom error handler where you can put your custom logic| |true|
|hideGenerationTimestamp|Hides the generation timestamp when files are generated.| |false| |hideGenerationTimestamp|Hides the generation timestamp when files are generated.| |false|
|ignoreAnyOfInEnum|Ignore anyOf keyword in enum| |false| |ignoreAnyOfInEnum|Ignore anyOf keyword in enum| |false|
|implicitHeaders|Skip header parameters in the generated API methods using @ApiImplicitParams annotation.| |false|
|implicitHeadersRegex|Skip header parameters that matches given regex in the generated API methods using @ApiImplicitParams annotation. Note: this parameter is ignored when implicitHeaders=true| |null|
|invokerPackage|root package for generated code| |org.openapitools.api| |invokerPackage|root package for generated code| |org.openapitools.api|
|legacyDiscriminatorBehavior|Set to false for generators with better support for discriminators. (Python, Java, Go, PowerShell, C#have this enabled by default).|<dl><dt>**true**</dt><dd>The mapping in the discriminator includes descendent schemas that allOf inherit from self and the discriminator mapping schemas in the OAS document.</dd><dt>**false**</dt><dd>The mapping in the discriminator includes any descendent schemas that allOf inherit from self, any oneOf schemas, any anyOf schemas, any x-discriminator-values, and the discriminator mapping schemas in the OAS document AND Codegen validates that oneOf and anyOf schemas contain the required discriminator and throws an error if the discriminator is missing.</dd></dl>|true| |legacyDiscriminatorBehavior|Set to false for generators with better support for discriminators. (Python, Java, Go, PowerShell, C#have this enabled by default).|<dl><dt>**true**</dt><dd>The mapping in the discriminator includes descendent schemas that allOf inherit from self and the discriminator mapping schemas in the OAS document.</dd><dt>**false**</dt><dd>The mapping in the discriminator includes any descendent schemas that allOf inherit from self, any oneOf schemas, any anyOf schemas, any x-discriminator-values, and the discriminator mapping schemas in the OAS document AND Codegen validates that oneOf and anyOf schemas contain the required discriminator and throws an error if the discriminator is missing.</dd></dl>|true|
|licenseName|The name of the license| |Unlicense| |licenseName|The name of the license| |Unlicense|

View File

@ -42,6 +42,8 @@ These options may be applied as additional-properties (cli) or configOptions (pl
|groupId|groupId in generated pom.xml| |org.openapitools| |groupId|groupId in generated pom.xml| |org.openapitools|
|hideGenerationTimestamp|Hides the generation timestamp when files are generated.| |false| |hideGenerationTimestamp|Hides the generation timestamp when files are generated.| |false|
|ignoreAnyOfInEnum|Ignore anyOf keyword in enum| |false| |ignoreAnyOfInEnum|Ignore anyOf keyword in enum| |false|
|implicitHeaders|Skip header parameters in the generated API methods using @ApiImplicitParams annotation.| |false|
|implicitHeadersRegex|Skip header parameters that matches given regex in the generated API methods using @ApiImplicitParams annotation. Note: this parameter is ignored when implicitHeaders=true| |null|
|invokerPackage|root package for generated code| |org.openapitools.handler| |invokerPackage|root package for generated code| |org.openapitools.handler|
|legacyDiscriminatorBehavior|Set to false for generators with better support for discriminators. (Python, Java, Go, PowerShell, C#have this enabled by default).|<dl><dt>**true**</dt><dd>The mapping in the discriminator includes descendent schemas that allOf inherit from self and the discriminator mapping schemas in the OAS document.</dd><dt>**false**</dt><dd>The mapping in the discriminator includes any descendent schemas that allOf inherit from self, any oneOf schemas, any anyOf schemas, any x-discriminator-values, and the discriminator mapping schemas in the OAS document AND Codegen validates that oneOf and anyOf schemas contain the required discriminator and throws an error if the discriminator is missing.</dd></dl>|true| |legacyDiscriminatorBehavior|Set to false for generators with better support for discriminators. (Python, Java, Go, PowerShell, C#have this enabled by default).|<dl><dt>**true**</dt><dd>The mapping in the discriminator includes descendent schemas that allOf inherit from self and the discriminator mapping schemas in the OAS document.</dd><dt>**false**</dt><dd>The mapping in the discriminator includes any descendent schemas that allOf inherit from self, any oneOf schemas, any anyOf schemas, any x-discriminator-values, and the discriminator mapping schemas in the OAS document AND Codegen validates that oneOf and anyOf schemas contain the required discriminator and throws an error if the discriminator is missing.</dd></dl>|true|
|licenseName|The name of the license| |Unlicense| |licenseName|The name of the license| |Unlicense|

View File

@ -42,6 +42,8 @@ These options may be applied as additional-properties (cli) or configOptions (pl
|groupId|groupId in generated pom.xml| |org.openapitools| |groupId|groupId in generated pom.xml| |org.openapitools|
|hideGenerationTimestamp|Hides the generation timestamp when files are generated.| |false| |hideGenerationTimestamp|Hides the generation timestamp when files are generated.| |false|
|ignoreAnyOfInEnum|Ignore anyOf keyword in enum| |false| |ignoreAnyOfInEnum|Ignore anyOf keyword in enum| |false|
|implicitHeaders|Skip header parameters in the generated API methods using @ApiImplicitParams annotation.| |false|
|implicitHeadersRegex|Skip header parameters that matches given regex in the generated API methods using @ApiImplicitParams annotation. Note: this parameter is ignored when implicitHeaders=true| |null|
|invokerPackage|root package for generated code| |org.openapitools.vertxweb.server| |invokerPackage|root package for generated code| |org.openapitools.vertxweb.server|
|legacyDiscriminatorBehavior|Set to false for generators with better support for discriminators. (Python, Java, Go, PowerShell, C#have this enabled by default).|<dl><dt>**true**</dt><dd>The mapping in the discriminator includes descendent schemas that allOf inherit from self and the discriminator mapping schemas in the OAS document.</dd><dt>**false**</dt><dd>The mapping in the discriminator includes any descendent schemas that allOf inherit from self, any oneOf schemas, any anyOf schemas, any x-discriminator-values, and the discriminator mapping schemas in the OAS document AND Codegen validates that oneOf and anyOf schemas contain the required discriminator and throws an error if the discriminator is missing.</dd></dl>|true| |legacyDiscriminatorBehavior|Set to false for generators with better support for discriminators. (Python, Java, Go, PowerShell, C#have this enabled by default).|<dl><dt>**true**</dt><dd>The mapping in the discriminator includes descendent schemas that allOf inherit from self and the discriminator mapping schemas in the OAS document.</dd><dt>**false**</dt><dd>The mapping in the discriminator includes any descendent schemas that allOf inherit from self, any oneOf schemas, any anyOf schemas, any x-discriminator-values, and the discriminator mapping schemas in the OAS document AND Codegen validates that oneOf and anyOf schemas contain the required discriminator and throws an error if the discriminator is missing.</dd></dl>|true|
|licenseName|The name of the license| |Unlicense| |licenseName|The name of the license| |Unlicense|

View File

@ -42,6 +42,8 @@ These options may be applied as additional-properties (cli) or configOptions (pl
|groupId|groupId in generated pom.xml| |org.openapitools| |groupId|groupId in generated pom.xml| |org.openapitools|
|hideGenerationTimestamp|Hides the generation timestamp when files are generated.| |false| |hideGenerationTimestamp|Hides the generation timestamp when files are generated.| |false|
|ignoreAnyOfInEnum|Ignore anyOf keyword in enum| |false| |ignoreAnyOfInEnum|Ignore anyOf keyword in enum| |false|
|implicitHeaders|Skip header parameters in the generated API methods using @ApiImplicitParams annotation.| |false|
|implicitHeadersRegex|Skip header parameters that matches given regex in the generated API methods using @ApiImplicitParams annotation. Note: this parameter is ignored when implicitHeaders=true| |null|
|invokerPackage|root package for generated code| |org.openapitools| |invokerPackage|root package for generated code| |org.openapitools|
|legacyDiscriminatorBehavior|Set to false for generators with better support for discriminators. (Python, Java, Go, PowerShell, C#have this enabled by default).|<dl><dt>**true**</dt><dd>The mapping in the discriminator includes descendent schemas that allOf inherit from self and the discriminator mapping schemas in the OAS document.</dd><dt>**false**</dt><dd>The mapping in the discriminator includes any descendent schemas that allOf inherit from self, any oneOf schemas, any anyOf schemas, any x-discriminator-values, and the discriminator mapping schemas in the OAS document AND Codegen validates that oneOf and anyOf schemas contain the required discriminator and throws an error if the discriminator is missing.</dd></dl>|true| |legacyDiscriminatorBehavior|Set to false for generators with better support for discriminators. (Python, Java, Go, PowerShell, C#have this enabled by default).|<dl><dt>**true**</dt><dd>The mapping in the discriminator includes descendent schemas that allOf inherit from self and the discriminator mapping schemas in the OAS document.</dd><dt>**false**</dt><dd>The mapping in the discriminator includes any descendent schemas that allOf inherit from self, any oneOf schemas, any anyOf schemas, any x-discriminator-values, and the discriminator mapping schemas in the OAS document AND Codegen validates that oneOf and anyOf schemas contain the required discriminator and throws an error if the discriminator is missing.</dd></dl>|true|
|licenseName|The name of the license| |Unlicense| |licenseName|The name of the license| |Unlicense|

View File

@ -48,6 +48,8 @@ These options may be applied as additional-properties (cli) or configOptions (pl
|groupId|groupId in generated pom.xml| |org.openapitools| |groupId|groupId in generated pom.xml| |org.openapitools|
|hideGenerationTimestamp|Hides the generation timestamp when files are generated.| |false| |hideGenerationTimestamp|Hides the generation timestamp when files are generated.| |false|
|ignoreAnyOfInEnum|Ignore anyOf keyword in enum| |false| |ignoreAnyOfInEnum|Ignore anyOf keyword in enum| |false|
|implicitHeaders|Skip header parameters in the generated API methods using @ApiImplicitParams annotation.| |false|
|implicitHeadersRegex|Skip header parameters that matches given regex in the generated API methods using @ApiImplicitParams annotation. Note: this parameter is ignored when implicitHeaders=true| |null|
|invokerPackage|root package for generated code| |org.openapitools.client| |invokerPackage|root package for generated code| |org.openapitools.client|
|legacyDiscriminatorBehavior|Set to false for generators with better support for discriminators. (Python, Java, Go, PowerShell, C#have this enabled by default).|<dl><dt>**true**</dt><dd>The mapping in the discriminator includes descendent schemas that allOf inherit from self and the discriminator mapping schemas in the OAS document.</dd><dt>**false**</dt><dd>The mapping in the discriminator includes any descendent schemas that allOf inherit from self, any oneOf schemas, any anyOf schemas, any x-discriminator-values, and the discriminator mapping schemas in the OAS document AND Codegen validates that oneOf and anyOf schemas contain the required discriminator and throws an error if the discriminator is missing.</dd></dl>|true| |legacyDiscriminatorBehavior|Set to false for generators with better support for discriminators. (Python, Java, Go, PowerShell, C#have this enabled by default).|<dl><dt>**true**</dt><dd>The mapping in the discriminator includes descendent schemas that allOf inherit from self and the discriminator mapping schemas in the OAS document.</dd><dt>**false**</dt><dd>The mapping in the discriminator includes any descendent schemas that allOf inherit from self, any oneOf schemas, any anyOf schemas, any x-discriminator-values, and the discriminator mapping schemas in the OAS document AND Codegen validates that oneOf and anyOf schemas contain the required discriminator and throws an error if the discriminator is missing.</dd></dl>|true|
|library|library template (sub-template) to use|<dl><dt>**jersey1**</dt><dd>HTTP client: Jersey client 1.19.x. JSON processing: Jackson 2.9.x. Enable gzip request encoding using '-DuseGzipFeature=true'. IMPORTANT NOTE: jersey 1.x is no longer actively maintained so please upgrade to 'jersey2' or other HTTP libraries instead.</dd><dt>**jersey2**</dt><dd>HTTP client: Jersey client 2.25.1. JSON processing: Jackson 2.9.x</dd><dt>**feign**</dt><dd>HTTP client: OpenFeign 10.x. JSON processing: Jackson 2.9.x.</dd><dt>**okhttp-gson**</dt><dd>[DEFAULT] HTTP client: OkHttp 3.x. JSON processing: Gson 2.8.x. Enable Parcelable models on Android using '-DparcelableModel=true'. Enable gzip request encoding using '-DuseGzipFeature=true'.</dd><dt>**retrofit2**</dt><dd>HTTP client: OkHttp 3.x. JSON processing: Gson 2.x (Retrofit 2.3.0). Enable the RxJava adapter using '-DuseRxJava[2/3]=true'. (RxJava 1.x or 2.x or 3.x)</dd><dt>**resttemplate**</dt><dd>HTTP client: Spring RestTemplate 4.x. JSON processing: Jackson 2.9.x</dd><dt>**webclient**</dt><dd>HTTP client: Spring WebClient 5.x. JSON processing: Jackson 2.9.x</dd><dt>**resteasy**</dt><dd>HTTP client: Resteasy client 3.x. JSON processing: Jackson 2.9.x</dd><dt>**vertx**</dt><dd>HTTP client: VertX client 3.x. JSON processing: Jackson 2.9.x</dd><dt>**google-api-client**</dt><dd>HTTP client: Google API client 1.x. JSON processing: Jackson 2.9.x</dd><dt>**rest-assured**</dt><dd>HTTP client: rest-assured : 4.x. JSON processing: Gson 2.x or Jackson 2.10.x. Only for Java 8</dd><dt>**native**</dt><dd>HTTP client: Java native HttpClient. JSON processing: Jackson 2.9.x. Only for Java11+</dd><dt>**microprofile**</dt><dd>HTTP client: Microprofile client 1.x. JSON processing: JSON-B</dd><dt>**apache-httpclient**</dt><dd>HTTP client: Apache httpclient 4.x</dd></dl>|okhttp-gson| |library|library template (sub-template) to use|<dl><dt>**jersey1**</dt><dd>HTTP client: Jersey client 1.19.x. JSON processing: Jackson 2.9.x. Enable gzip request encoding using '-DuseGzipFeature=true'. IMPORTANT NOTE: jersey 1.x is no longer actively maintained so please upgrade to 'jersey2' or other HTTP libraries instead.</dd><dt>**jersey2**</dt><dd>HTTP client: Jersey client 2.25.1. JSON processing: Jackson 2.9.x</dd><dt>**feign**</dt><dd>HTTP client: OpenFeign 10.x. JSON processing: Jackson 2.9.x.</dd><dt>**okhttp-gson**</dt><dd>[DEFAULT] HTTP client: OkHttp 3.x. JSON processing: Gson 2.8.x. Enable Parcelable models on Android using '-DparcelableModel=true'. Enable gzip request encoding using '-DuseGzipFeature=true'.</dd><dt>**retrofit2**</dt><dd>HTTP client: OkHttp 3.x. JSON processing: Gson 2.x (Retrofit 2.3.0). Enable the RxJava adapter using '-DuseRxJava[2/3]=true'. (RxJava 1.x or 2.x or 3.x)</dd><dt>**resttemplate**</dt><dd>HTTP client: Spring RestTemplate 4.x. JSON processing: Jackson 2.9.x</dd><dt>**webclient**</dt><dd>HTTP client: Spring WebClient 5.x. JSON processing: Jackson 2.9.x</dd><dt>**resteasy**</dt><dd>HTTP client: Resteasy client 3.x. JSON processing: Jackson 2.9.x</dd><dt>**vertx**</dt><dd>HTTP client: VertX client 3.x. JSON processing: Jackson 2.9.x</dd><dt>**google-api-client**</dt><dd>HTTP client: Google API client 1.x. JSON processing: Jackson 2.9.x</dd><dt>**rest-assured**</dt><dd>HTTP client: rest-assured : 4.x. JSON processing: Gson 2.x or Jackson 2.10.x. Only for Java 8</dd><dt>**native**</dt><dd>HTTP client: Java native HttpClient. JSON processing: Jackson 2.9.x. Only for Java11+</dd><dt>**microprofile**</dt><dd>HTTP client: Microprofile client 1.x. JSON processing: JSON-B</dd><dt>**apache-httpclient**</dt><dd>HTTP client: Apache httpclient 4.x</dd></dl>|okhttp-gson|

View File

@ -45,6 +45,8 @@ These options may be applied as additional-properties (cli) or configOptions (pl
|hideGenerationTimestamp|Hides the generation timestamp when files are generated.| |false| |hideGenerationTimestamp|Hides the generation timestamp when files are generated.| |false|
|ignoreAnyOfInEnum|Ignore anyOf keyword in enum| |false| |ignoreAnyOfInEnum|Ignore anyOf keyword in enum| |false|
|implFolder|folder for generated implementation code| |src/main/java| |implFolder|folder for generated implementation code| |src/main/java|
|implicitHeaders|Skip header parameters in the generated API methods using @ApiImplicitParams annotation.| |false|
|implicitHeadersRegex|Skip header parameters that matches given regex in the generated API methods using @ApiImplicitParams annotation. Note: this parameter is ignored when implicitHeaders=true| |null|
|interfaceOnly|Whether to generate only API interface stubs without the server files.| |false| |interfaceOnly|Whether to generate only API interface stubs without the server files.| |false|
|invokerPackage|root package for generated code| |org.openapitools.api| |invokerPackage|root package for generated code| |org.openapitools.api|
|legacyDiscriminatorBehavior|Set to false for generators with better support for discriminators. (Python, Java, Go, PowerShell, C#have this enabled by default).|<dl><dt>**true**</dt><dd>The mapping in the discriminator includes descendent schemas that allOf inherit from self and the discriminator mapping schemas in the OAS document.</dd><dt>**false**</dt><dd>The mapping in the discriminator includes any descendent schemas that allOf inherit from self, any oneOf schemas, any anyOf schemas, any x-discriminator-values, and the discriminator mapping schemas in the OAS document AND Codegen validates that oneOf and anyOf schemas contain the required discriminator and throws an error if the discriminator is missing.</dd></dl>|true| |legacyDiscriminatorBehavior|Set to false for generators with better support for discriminators. (Python, Java, Go, PowerShell, C#have this enabled by default).|<dl><dt>**true**</dt><dd>The mapping in the discriminator includes descendent schemas that allOf inherit from self and the discriminator mapping schemas in the OAS document.</dd><dt>**false**</dt><dd>The mapping in the discriminator includes any descendent schemas that allOf inherit from self, any oneOf schemas, any anyOf schemas, any x-discriminator-values, and the discriminator mapping schemas in the OAS document AND Codegen validates that oneOf and anyOf schemas contain the required discriminator and throws an error if the discriminator is missing.</dd></dl>|true|

View File

@ -42,6 +42,8 @@ These options may be applied as additional-properties (cli) or configOptions (pl
|groupId|groupId in generated pom.xml| |org.openapitools| |groupId|groupId in generated pom.xml| |org.openapitools|
|hideGenerationTimestamp|Hides the generation timestamp when files are generated.| |false| |hideGenerationTimestamp|Hides the generation timestamp when files are generated.| |false|
|ignoreAnyOfInEnum|Ignore anyOf keyword in enum| |false| |ignoreAnyOfInEnum|Ignore anyOf keyword in enum| |false|
|implicitHeaders|Skip header parameters in the generated API methods using @ApiImplicitParams annotation.| |false|
|implicitHeadersRegex|Skip header parameters that matches given regex in the generated API methods using @ApiImplicitParams annotation. Note: this parameter is ignored when implicitHeaders=true| |null|
|invokerPackage|root package for generated code| |org.openapitools.api| |invokerPackage|root package for generated code| |org.openapitools.api|
|legacyDiscriminatorBehavior|Set to false for generators with better support for discriminators. (Python, Java, Go, PowerShell, C#have this enabled by default).|<dl><dt>**true**</dt><dd>The mapping in the discriminator includes descendent schemas that allOf inherit from self and the discriminator mapping schemas in the OAS document.</dd><dt>**false**</dt><dd>The mapping in the discriminator includes any descendent schemas that allOf inherit from self, any oneOf schemas, any anyOf schemas, any x-discriminator-values, and the discriminator mapping schemas in the OAS document AND Codegen validates that oneOf and anyOf schemas contain the required discriminator and throws an error if the discriminator is missing.</dd></dl>|true| |legacyDiscriminatorBehavior|Set to false for generators with better support for discriminators. (Python, Java, Go, PowerShell, C#have this enabled by default).|<dl><dt>**true**</dt><dd>The mapping in the discriminator includes descendent schemas that allOf inherit from self and the discriminator mapping schemas in the OAS document.</dd><dt>**false**</dt><dd>The mapping in the discriminator includes any descendent schemas that allOf inherit from self, any oneOf schemas, any anyOf schemas, any x-discriminator-values, and the discriminator mapping schemas in the OAS document AND Codegen validates that oneOf and anyOf schemas contain the required discriminator and throws an error if the discriminator is missing.</dd></dl>|true|
|licenseName|The name of the license| |Unlicense| |licenseName|The name of the license| |Unlicense|

View File

@ -49,6 +49,8 @@ These options may be applied as additional-properties (cli) or configOptions (pl
|hideGenerationTimestamp|Hides the generation timestamp when files are generated.| |false| |hideGenerationTimestamp|Hides the generation timestamp when files are generated.| |false|
|ignoreAnyOfInEnum|Ignore anyOf keyword in enum| |false| |ignoreAnyOfInEnum|Ignore anyOf keyword in enum| |false|
|implFolder|folder for generated implementation code| |src/main/java| |implFolder|folder for generated implementation code| |src/main/java|
|implicitHeaders|Skip header parameters in the generated API methods using @ApiImplicitParams annotation.| |false|
|implicitHeadersRegex|Skip header parameters that matches given regex in the generated API methods using @ApiImplicitParams annotation. Note: this parameter is ignored when implicitHeaders=true| |null|
|invokerPackage|root package for generated code| |org.openapitools.api| |invokerPackage|root package for generated code| |org.openapitools.api|
|legacyDiscriminatorBehavior|Set to false for generators with better support for discriminators. (Python, Java, Go, PowerShell, C#have this enabled by default).|<dl><dt>**true**</dt><dd>The mapping in the discriminator includes descendent schemas that allOf inherit from self and the discriminator mapping schemas in the OAS document.</dd><dt>**false**</dt><dd>The mapping in the discriminator includes any descendent schemas that allOf inherit from self, any oneOf schemas, any anyOf schemas, any x-discriminator-values, and the discriminator mapping schemas in the OAS document AND Codegen validates that oneOf and anyOf schemas contain the required discriminator and throws an error if the discriminator is missing.</dd></dl>|true| |legacyDiscriminatorBehavior|Set to false for generators with better support for discriminators. (Python, Java, Go, PowerShell, C#have this enabled by default).|<dl><dt>**true**</dt><dd>The mapping in the discriminator includes descendent schemas that allOf inherit from self and the discriminator mapping schemas in the OAS document.</dd><dt>**false**</dt><dd>The mapping in the discriminator includes any descendent schemas that allOf inherit from self, any oneOf schemas, any anyOf schemas, any x-discriminator-values, and the discriminator mapping schemas in the OAS document AND Codegen validates that oneOf and anyOf schemas contain the required discriminator and throws an error if the discriminator is missing.</dd></dl>|true|
|licenseName|The name of the license| |Unlicense| |licenseName|The name of the license| |Unlicense|

View File

@ -48,6 +48,8 @@ These options may be applied as additional-properties (cli) or configOptions (pl
|hideGenerationTimestamp|Hides the generation timestamp when files are generated.| |false| |hideGenerationTimestamp|Hides the generation timestamp when files are generated.| |false|
|ignoreAnyOfInEnum|Ignore anyOf keyword in enum| |false| |ignoreAnyOfInEnum|Ignore anyOf keyword in enum| |false|
|implFolder|folder for generated implementation code| |src/main/java| |implFolder|folder for generated implementation code| |src/main/java|
|implicitHeaders|Skip header parameters in the generated API methods using @ApiImplicitParams annotation.| |false|
|implicitHeadersRegex|Skip header parameters that matches given regex in the generated API methods using @ApiImplicitParams annotation. Note: this parameter is ignored when implicitHeaders=true| |null|
|invokerPackage|root package for generated code| |org.openapitools.api| |invokerPackage|root package for generated code| |org.openapitools.api|
|legacyDiscriminatorBehavior|Set to false for generators with better support for discriminators. (Python, Java, Go, PowerShell, C#have this enabled by default).|<dl><dt>**true**</dt><dd>The mapping in the discriminator includes descendent schemas that allOf inherit from self and the discriminator mapping schemas in the OAS document.</dd><dt>**false**</dt><dd>The mapping in the discriminator includes any descendent schemas that allOf inherit from self, any oneOf schemas, any anyOf schemas, any x-discriminator-values, and the discriminator mapping schemas in the OAS document AND Codegen validates that oneOf and anyOf schemas contain the required discriminator and throws an error if the discriminator is missing.</dd></dl>|true| |legacyDiscriminatorBehavior|Set to false for generators with better support for discriminators. (Python, Java, Go, PowerShell, C#have this enabled by default).|<dl><dt>**true**</dt><dd>The mapping in the discriminator includes descendent schemas that allOf inherit from self and the discriminator mapping schemas in the OAS document.</dd><dt>**false**</dt><dd>The mapping in the discriminator includes any descendent schemas that allOf inherit from self, any oneOf schemas, any anyOf schemas, any x-discriminator-values, and the discriminator mapping schemas in the OAS document AND Codegen validates that oneOf and anyOf schemas contain the required discriminator and throws an error if the discriminator is missing.</dd></dl>|true|
|licenseName|The name of the license| |Unlicense| |licenseName|The name of the license| |Unlicense|

View File

@ -43,6 +43,8 @@ These options may be applied as additional-properties (cli) or configOptions (pl
|hideGenerationTimestamp|Hides the generation timestamp when files are generated.| |false| |hideGenerationTimestamp|Hides the generation timestamp when files are generated.| |false|
|ignoreAnyOfInEnum|Ignore anyOf keyword in enum| |false| |ignoreAnyOfInEnum|Ignore anyOf keyword in enum| |false|
|implFolder|folder for generated implementation code| |src/main/java| |implFolder|folder for generated implementation code| |src/main/java|
|implicitHeaders|Skip header parameters in the generated API methods using @ApiImplicitParams annotation.| |false|
|implicitHeadersRegex|Skip header parameters that matches given regex in the generated API methods using @ApiImplicitParams annotation. Note: this parameter is ignored when implicitHeaders=true| |null|
|invokerPackage|root package for generated code| |org.openapitools.api| |invokerPackage|root package for generated code| |org.openapitools.api|
|legacyDiscriminatorBehavior|Set to false for generators with better support for discriminators. (Python, Java, Go, PowerShell, C#have this enabled by default).|<dl><dt>**true**</dt><dd>The mapping in the discriminator includes descendent schemas that allOf inherit from self and the discriminator mapping schemas in the OAS document.</dd><dt>**false**</dt><dd>The mapping in the discriminator includes any descendent schemas that allOf inherit from self, any oneOf schemas, any anyOf schemas, any x-discriminator-values, and the discriminator mapping schemas in the OAS document AND Codegen validates that oneOf and anyOf schemas contain the required discriminator and throws an error if the discriminator is missing.</dd></dl>|true| |legacyDiscriminatorBehavior|Set to false for generators with better support for discriminators. (Python, Java, Go, PowerShell, C#have this enabled by default).|<dl><dt>**true**</dt><dd>The mapping in the discriminator includes descendent schemas that allOf inherit from self and the discriminator mapping schemas in the OAS document.</dd><dt>**false**</dt><dd>The mapping in the discriminator includes any descendent schemas that allOf inherit from self, any oneOf schemas, any anyOf schemas, any x-discriminator-values, and the discriminator mapping schemas in the OAS document AND Codegen validates that oneOf and anyOf schemas contain the required discriminator and throws an error if the discriminator is missing.</dd></dl>|true|
|library|library template (sub-template)|<dl><dt>**jersey1**</dt><dd>Jersey core 1.x</dd><dt>**jersey2**</dt><dd>Jersey core 2.x</dd></dl>|jersey2| |library|library template (sub-template)|<dl><dt>**jersey1**</dt><dd>Jersey core 1.x</dd><dt>**jersey2**</dt><dd>Jersey core 2.x</dd></dl>|jersey2|

View File

@ -44,6 +44,8 @@ These options may be applied as additional-properties (cli) or configOptions (pl
|hideGenerationTimestamp|Hides the generation timestamp when files are generated.| |false| |hideGenerationTimestamp|Hides the generation timestamp when files are generated.| |false|
|ignoreAnyOfInEnum|Ignore anyOf keyword in enum| |false| |ignoreAnyOfInEnum|Ignore anyOf keyword in enum| |false|
|implFolder|folder for generated implementation code| |src/main/java| |implFolder|folder for generated implementation code| |src/main/java|
|implicitHeaders|Skip header parameters in the generated API methods using @ApiImplicitParams annotation.| |false|
|implicitHeadersRegex|Skip header parameters that matches given regex in the generated API methods using @ApiImplicitParams annotation. Note: this parameter is ignored when implicitHeaders=true| |null|
|invokerPackage|root package for generated code| |org.openapitools.api| |invokerPackage|root package for generated code| |org.openapitools.api|
|legacyDiscriminatorBehavior|Set to false for generators with better support for discriminators. (Python, Java, Go, PowerShell, C#have this enabled by default).|<dl><dt>**true**</dt><dd>The mapping in the discriminator includes descendent schemas that allOf inherit from self and the discriminator mapping schemas in the OAS document.</dd><dt>**false**</dt><dd>The mapping in the discriminator includes any descendent schemas that allOf inherit from self, any oneOf schemas, any anyOf schemas, any x-discriminator-values, and the discriminator mapping schemas in the OAS document AND Codegen validates that oneOf and anyOf schemas contain the required discriminator and throws an error if the discriminator is missing.</dd></dl>|true| |legacyDiscriminatorBehavior|Set to false for generators with better support for discriminators. (Python, Java, Go, PowerShell, C#have this enabled by default).|<dl><dt>**true**</dt><dd>The mapping in the discriminator includes descendent schemas that allOf inherit from self and the discriminator mapping schemas in the OAS document.</dd><dt>**false**</dt><dd>The mapping in the discriminator includes any descendent schemas that allOf inherit from self, any oneOf schemas, any anyOf schemas, any x-discriminator-values, and the discriminator mapping schemas in the OAS document AND Codegen validates that oneOf and anyOf schemas contain the required discriminator and throws an error if the discriminator is missing.</dd></dl>|true|
|licenseName|The name of the license| |Unlicense| |licenseName|The name of the license| |Unlicense|

View File

@ -44,6 +44,8 @@ These options may be applied as additional-properties (cli) or configOptions (pl
|hideGenerationTimestamp|Hides the generation timestamp when files are generated.| |false| |hideGenerationTimestamp|Hides the generation timestamp when files are generated.| |false|
|ignoreAnyOfInEnum|Ignore anyOf keyword in enum| |false| |ignoreAnyOfInEnum|Ignore anyOf keyword in enum| |false|
|implFolder|folder for generated implementation code| |src/main/java| |implFolder|folder for generated implementation code| |src/main/java|
|implicitHeaders|Skip header parameters in the generated API methods using @ApiImplicitParams annotation.| |false|
|implicitHeadersRegex|Skip header parameters that matches given regex in the generated API methods using @ApiImplicitParams annotation. Note: this parameter is ignored when implicitHeaders=true| |null|
|invokerPackage|root package for generated code| |org.openapitools.api| |invokerPackage|root package for generated code| |org.openapitools.api|
|legacyDiscriminatorBehavior|Set to false for generators with better support for discriminators. (Python, Java, Go, PowerShell, C#have this enabled by default).|<dl><dt>**true**</dt><dd>The mapping in the discriminator includes descendent schemas that allOf inherit from self and the discriminator mapping schemas in the OAS document.</dd><dt>**false**</dt><dd>The mapping in the discriminator includes any descendent schemas that allOf inherit from self, any oneOf schemas, any anyOf schemas, any x-discriminator-values, and the discriminator mapping schemas in the OAS document AND Codegen validates that oneOf and anyOf schemas contain the required discriminator and throws an error if the discriminator is missing.</dd></dl>|true| |legacyDiscriminatorBehavior|Set to false for generators with better support for discriminators. (Python, Java, Go, PowerShell, C#have this enabled by default).|<dl><dt>**true**</dt><dd>The mapping in the discriminator includes descendent schemas that allOf inherit from self and the discriminator mapping schemas in the OAS document.</dd><dt>**false**</dt><dd>The mapping in the discriminator includes any descendent schemas that allOf inherit from self, any oneOf schemas, any anyOf schemas, any x-discriminator-values, and the discriminator mapping schemas in the OAS document AND Codegen validates that oneOf and anyOf schemas contain the required discriminator and throws an error if the discriminator is missing.</dd></dl>|true|
|licenseName|The name of the license| |Unlicense| |licenseName|The name of the license| |Unlicense|

View File

@ -45,6 +45,8 @@ These options may be applied as additional-properties (cli) or configOptions (pl
|hideGenerationTimestamp|Hides the generation timestamp when files are generated.| |false| |hideGenerationTimestamp|Hides the generation timestamp when files are generated.| |false|
|ignoreAnyOfInEnum|Ignore anyOf keyword in enum| |false| |ignoreAnyOfInEnum|Ignore anyOf keyword in enum| |false|
|implFolder|folder for generated implementation code| |src/main/java| |implFolder|folder for generated implementation code| |src/main/java|
|implicitHeaders|Skip header parameters in the generated API methods using @ApiImplicitParams annotation.| |false|
|implicitHeadersRegex|Skip header parameters that matches given regex in the generated API methods using @ApiImplicitParams annotation. Note: this parameter is ignored when implicitHeaders=true| |null|
|interfaceOnly|Whether to generate only API interface stubs without the server files.| |false| |interfaceOnly|Whether to generate only API interface stubs without the server files.| |false|
|invokerPackage|root package for generated code| |org.openapitools.api| |invokerPackage|root package for generated code| |org.openapitools.api|
|legacyDiscriminatorBehavior|Set to false for generators with better support for discriminators. (Python, Java, Go, PowerShell, C#have this enabled by default).|<dl><dt>**true**</dt><dd>The mapping in the discriminator includes descendent schemas that allOf inherit from self and the discriminator mapping schemas in the OAS document.</dd><dt>**false**</dt><dd>The mapping in the discriminator includes any descendent schemas that allOf inherit from self, any oneOf schemas, any anyOf schemas, any x-discriminator-values, and the discriminator mapping schemas in the OAS document AND Codegen validates that oneOf and anyOf schemas contain the required discriminator and throws an error if the discriminator is missing.</dd></dl>|true| |legacyDiscriminatorBehavior|Set to false for generators with better support for discriminators. (Python, Java, Go, PowerShell, C#have this enabled by default).|<dl><dt>**true**</dt><dd>The mapping in the discriminator includes descendent schemas that allOf inherit from self and the discriminator mapping schemas in the OAS document.</dd><dt>**false**</dt><dd>The mapping in the discriminator includes any descendent schemas that allOf inherit from self, any oneOf schemas, any anyOf schemas, any x-discriminator-values, and the discriminator mapping schemas in the OAS document AND Codegen validates that oneOf and anyOf schemas contain the required discriminator and throws an error if the discriminator is missing.</dd></dl>|true|

View File

@ -51,6 +51,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
|hideGenerationTimestamp|Hides the generation timestamp when files are generated.| |false| |hideGenerationTimestamp|Hides the generation timestamp when files are generated.| |false|
|ignoreAnyOfInEnum|Ignore anyOf keyword in enum| |false| |ignoreAnyOfInEnum|Ignore anyOf keyword in enum| |false|
|implicitHeaders|Skip header parameters in the generated API methods using @ApiImplicitParams annotation.| |false| |implicitHeaders|Skip header parameters in the generated API methods using @ApiImplicitParams annotation.| |false|
|implicitHeadersRegex|Skip header parameters that matches given regex in the generated API methods using @ApiImplicitParams annotation. Note: this parameter is ignored when implicitHeaders=true| |null|
|interfaceOnly|Whether to generate only API interface stubs without the server files.| |false| |interfaceOnly|Whether to generate only API interface stubs without the server files.| |false|
|invokerPackage|root package for generated code| |org.openapitools.api| |invokerPackage|root package for generated code| |org.openapitools.api|
|legacyDiscriminatorBehavior|Set to false for generators with better support for discriminators. (Python, Java, Go, PowerShell, C#have this enabled by default).|<dl><dt>**true**</dt><dd>The mapping in the discriminator includes descendent schemas that allOf inherit from self and the discriminator mapping schemas in the OAS document.</dd><dt>**false**</dt><dd>The mapping in the discriminator includes any descendent schemas that allOf inherit from self, any oneOf schemas, any anyOf schemas, any x-discriminator-values, and the discriminator mapping schemas in the OAS document AND Codegen validates that oneOf and anyOf schemas contain the required discriminator and throws an error if the discriminator is missing.</dd></dl>|true| |legacyDiscriminatorBehavior|Set to false for generators with better support for discriminators. (Python, Java, Go, PowerShell, C#have this enabled by default).|<dl><dt>**true**</dt><dd>The mapping in the discriminator includes descendent schemas that allOf inherit from self and the discriminator mapping schemas in the OAS document.</dd><dt>**false**</dt><dd>The mapping in the discriminator includes any descendent schemas that allOf inherit from self, any oneOf schemas, any anyOf schemas, any x-discriminator-values, and the discriminator mapping schemas in the OAS document AND Codegen validates that oneOf and anyOf schemas contain the required discriminator and throws an error if the discriminator is missing.</dd></dl>|true|

View File

@ -42,6 +42,7 @@ public class CodegenOperation {
public List<CodegenParameter> pathParams = new ArrayList<CodegenParameter>(); public List<CodegenParameter> pathParams = new ArrayList<CodegenParameter>();
public List<CodegenParameter> queryParams = new ArrayList<CodegenParameter>(); public List<CodegenParameter> queryParams = new ArrayList<CodegenParameter>();
public List<CodegenParameter> headerParams = new ArrayList<CodegenParameter>(); public List<CodegenParameter> headerParams = new ArrayList<CodegenParameter>();
public List<CodegenParameter> implicitHeadersParams = new ArrayList<CodegenParameter>();
public List<CodegenParameter> formParams = new ArrayList<CodegenParameter>(); public List<CodegenParameter> formParams = new ArrayList<CodegenParameter>();
public List<CodegenParameter> cookieParams = new ArrayList<CodegenParameter>(); public List<CodegenParameter> cookieParams = new ArrayList<CodegenParameter>();
public List<CodegenParameter> requiredParams = new ArrayList<CodegenParameter>(); public List<CodegenParameter> requiredParams = new ArrayList<CodegenParameter>();

View File

@ -70,6 +70,8 @@ public abstract class AbstractJavaCodegen extends DefaultCodegen implements Code
public static final String OPENAPI_NULLABLE = "openApiNullable"; public static final String OPENAPI_NULLABLE = "openApiNullable";
public static final String JACKSON = "jackson"; public static final String JACKSON = "jackson";
public static final String TEST_OUTPUT = "testOutput"; public static final String TEST_OUTPUT = "testOutput";
public static final String IMPLICIT_HEADERS = "implicitHeaders";
public static final String IMPLICIT_HEADERS_REGEX = "implicitHeadersRegex";
public static final String DEFAULT_TEST_FOLDER = "${project.build.directory}/generated-test-sources/openapi"; public static final String DEFAULT_TEST_FOLDER = "${project.build.directory}/generated-test-sources/openapi";
@ -117,6 +119,8 @@ public abstract class AbstractJavaCodegen extends DefaultCodegen implements Code
protected String outputTestFolder = ""; protected String outputTestFolder = "";
protected DocumentationProvider documentationProvider; protected DocumentationProvider documentationProvider;
protected AnnotationLibrary annotationLibrary; protected AnnotationLibrary annotationLibrary;
protected boolean implicitHeaders = false;
protected String implicitHeadersRegex = null;
public AbstractJavaCodegen() { public AbstractJavaCodegen() {
super(); super();
@ -246,6 +250,8 @@ public abstract class AbstractJavaCodegen extends DefaultCodegen implements Code
cliOptions.add(CliOption.newString(ADDITIONAL_ENUM_TYPE_ANNOTATIONS, "Additional annotations for enum type(class level annotations)")); cliOptions.add(CliOption.newString(ADDITIONAL_ENUM_TYPE_ANNOTATIONS, "Additional annotations for enum type(class level annotations)"));
cliOptions.add(CliOption.newString(ADDITIONAL_MODEL_TYPE_ANNOTATIONS, "Additional annotations for model type(class level annotations). List separated by semicolon(;) or new line (Linux or Windows)")); cliOptions.add(CliOption.newString(ADDITIONAL_MODEL_TYPE_ANNOTATIONS, "Additional annotations for model type(class level annotations). List separated by semicolon(;) or new line (Linux or Windows)"));
cliOptions.add(CliOption.newBoolean(OPENAPI_NULLABLE, "Enable OpenAPI Jackson Nullable library", this.openApiNullable)); cliOptions.add(CliOption.newBoolean(OPENAPI_NULLABLE, "Enable OpenAPI Jackson Nullable library", this.openApiNullable));
cliOptions.add(CliOption.newBoolean(IMPLICIT_HEADERS, "Skip header parameters in the generated API methods using @ApiImplicitParams annotation.", implicitHeaders));
cliOptions.add(CliOption.newString(IMPLICIT_HEADERS_REGEX, "Skip header parameters that matches given regex in the generated API methods using @ApiImplicitParams annotation. Note: this parameter is ignored when implicitHeaders=true"));
cliOptions.add(CliOption.newString(CodegenConstants.PARENT_GROUP_ID, CodegenConstants.PARENT_GROUP_ID_DESC)); cliOptions.add(CliOption.newString(CodegenConstants.PARENT_GROUP_ID, CodegenConstants.PARENT_GROUP_ID_DESC));
cliOptions.add(CliOption.newString(CodegenConstants.PARENT_ARTIFACT_ID, CodegenConstants.PARENT_ARTIFACT_ID_DESC)); cliOptions.add(CliOption.newString(CodegenConstants.PARENT_ARTIFACT_ID, CodegenConstants.PARENT_ARTIFACT_ID_DESC));
@ -525,6 +531,14 @@ public abstract class AbstractJavaCodegen extends DefaultCodegen implements Code
this.setParentVersion((String) additionalProperties.get(CodegenConstants.PARENT_VERSION)); this.setParentVersion((String) additionalProperties.get(CodegenConstants.PARENT_VERSION));
} }
if (additionalProperties.containsKey(IMPLICIT_HEADERS)) {
this.setImplicitHeaders(Boolean.parseBoolean(additionalProperties.get(IMPLICIT_HEADERS).toString()));
}
if (additionalProperties.containsKey(IMPLICIT_HEADERS_REGEX)) {
this.setImplicitHeadersRegex(additionalProperties.get(IMPLICIT_HEADERS_REGEX).toString());
}
if (!StringUtils.isEmpty(parentGroupId) && !StringUtils.isEmpty(parentArtifactId) && !StringUtils.isEmpty(parentVersion)) { if (!StringUtils.isEmpty(parentGroupId) && !StringUtils.isEmpty(parentArtifactId) && !StringUtils.isEmpty(parentVersion)) {
additionalProperties.put("parentOverridden", true); additionalProperties.put("parentOverridden", true);
} }
@ -1357,6 +1371,8 @@ public abstract class AbstractJavaCodegen extends DefaultCodegen implements Code
} }
} }
op.vendorExtensions.put("x-java-import", operationImports); op.vendorExtensions.put("x-java-import", operationImports);
handleImplicitHeaders(op);
} }
return objs; return objs;
} }
@ -1384,7 +1400,6 @@ public abstract class AbstractJavaCodegen extends DefaultCodegen implements Code
} }
String accepts = getAccept(openAPI, operation); String accepts = getAccept(openAPI, operation);
operation.addExtension("x-accepts", accepts); operation.addExtension("x-accepts", accepts);
} }
} }
} }
@ -1823,6 +1838,14 @@ public abstract class AbstractJavaCodegen extends DefaultCodegen implements Code
this.annotationLibrary = annotationLibrary; this.annotationLibrary = annotationLibrary;
} }
public void setImplicitHeaders(boolean implicitHeaders) {
this.implicitHeaders = implicitHeaders;
}
public void setImplicitHeadersRegex(String implicitHeadersRegex) {
this.implicitHeadersRegex = implicitHeadersRegex;
}
@Override @Override
public String escapeQuotationMark(String input) { public String escapeQuotationMark(String input) {
// remove " to avoid code injection // remove " to avoid code injection
@ -2004,6 +2027,33 @@ public abstract class AbstractJavaCodegen extends DefaultCodegen implements Code
} }
} }
/**
* This method removes all implicit header parameters from the list of parameters
*
* @param operation - operation to be processed
*/
protected void handleImplicitHeaders(CodegenOperation operation) {
if (operation.allParams.isEmpty()) {
return;
}
final ArrayList<CodegenParameter> copy = new ArrayList<>(operation.allParams);
operation.allParams.clear();
for (CodegenParameter p : copy) {
if (p.isHeaderParam && (implicitHeaders || shouldBeImplicitHeader(p))) {
operation.implicitHeadersParams.add(p);
operation.headerParams.removeIf(header -> header.baseName.equals(p.baseName));
LOGGER.info("Update operation [{}]. Remove header [{}] because it's marked to be implicit", operation.operationId, p.baseName);
} else {
operation.allParams.add(p);
}
}
}
private boolean shouldBeImplicitHeader(CodegenParameter parameter) {
return StringUtils.isNotBlank(implicitHeadersRegex) && parameter.baseName.matches(implicitHeadersRegex);
}
@Override @Override
public List<VendorExtension> getSupportedVendorExtensions() { public List<VendorExtension> getSupportedVendorExtensions() {
List<VendorExtension> extensions = super.getSupportedVendorExtensions(); List<VendorExtension> extensions = super.getSupportedVendorExtensions();

View File

@ -167,8 +167,17 @@ public abstract class AbstractJavaJAXRSServerCodegen extends AbstractJavaCodegen
} }
@Override @Override
@SuppressWarnings("unchecked")
public Map<String, Object> postProcessOperationsWithModels(Map<String, Object> objs, List<Object> allModels) { public Map<String, Object> postProcessOperationsWithModels(Map<String, Object> objs, List<Object> allModels) {
return jaxrsPostProcessOperations(objs); Map<String, Object> updatedObjs = jaxrsPostProcessOperations(objs);
Map<String, Object> operations = (Map<String, Object>) updatedObjs.get("operations");
if (operations != null) {
List<CodegenOperation> ops = (List<CodegenOperation>) operations.get("operation");
for (CodegenOperation co : ops) {
handleImplicitHeaders(co);
}
}
return updatedObjs;
} }
static Map<String, Object> jaxrsPostProcessOperations(Map<String, Object> objs) { static Map<String, Object> jaxrsPostProcessOperations(Map<String, Object> objs) {

View File

@ -45,7 +45,6 @@ public class JavaPKMSTServerCodegen extends AbstractJavaCodegen {
protected String basePackage = "com.prokarma.pkmst"; protected String basePackage = "com.prokarma.pkmst";
protected String serviceName = "Pkmst"; protected String serviceName = "Pkmst";
protected String configPackage = "com.prokarma.pkmst.config"; protected String configPackage = "com.prokarma.pkmst.config";
protected boolean implicitHeaders = false;
protected String title; protected String title;
protected String eurekaUri; protected String eurekaUri;
protected String zipkinUri; protected String zipkinUri;
@ -347,34 +346,13 @@ public class JavaPKMSTServerCodegen extends AbstractJavaCodegen {
} }
}); });
if (implicitHeaders) { handleImplicitHeaders(operation);
removeHeadersFromAllParams(operation.allParams);
}
} }
} }
return objs; return objs;
} }
/**
* This method removes header parameters from the list of parameters
*
* @param allParams list of all parameters
*/
private void removeHeadersFromAllParams(List<CodegenParameter> allParams) {
if (allParams.isEmpty()) {
return;
}
final ArrayList<CodegenParameter> copy = new ArrayList<>(allParams);
allParams.clear();
for (CodegenParameter p : copy) {
if (!p.isHeaderParam) {
allParams.add(p);
}
}
}
/** /**
* @param returnType The return type that needs to be converted * @param returnType The return type that needs to be converted
* @param dataTypeAssigner An object that will assign the data to the respective fields * @param dataTypeAssigner An object that will assign the data to the respective fields

View File

@ -117,11 +117,6 @@ public class JavaResteasyEapServerCodegen extends AbstractJavaJAXRSServerCodegen
} }
@Override
public Map<String, Object> postProcessOperationsWithModels(Map<String, Object> objs, List<Object> allModels) {
return super.postProcessOperationsWithModels(objs, allModels);
}
@Override @Override
public void postProcessModelProperty(CodegenModel model, CodegenProperty property) { public void postProcessModelProperty(CodegenModel model, CodegenProperty property) {
super.postProcessModelProperty(model, property); super.postProcessModelProperty(model, property);

View File

@ -128,11 +128,6 @@ public class JavaResteasyServerCodegen extends AbstractJavaJAXRSServerCodegen im
} }
} }
@Override
public Map<String, Object> postProcessOperationsWithModels(Map<String, Object> objs, List<Object> allModels) {
return super.postProcessOperationsWithModels(objs, allModels);
}
@Override @Override
public void postProcessModelProperty(CodegenModel model, CodegenProperty property) { public void postProcessModelProperty(CodegenModel model, CodegenProperty property) {
super.postProcessModelProperty(model, property); super.postProcessModelProperty(model, property);

View File

@ -86,7 +86,6 @@ public class SpringCodegen extends AbstractJavaCodegen
public static final String USE_TAGS = "useTags"; public static final String USE_TAGS = "useTags";
public static final String SPRING_BOOT = "spring-boot"; public static final String SPRING_BOOT = "spring-boot";
public static final String SPRING_CLOUD_LIBRARY = "spring-cloud"; public static final String SPRING_CLOUD_LIBRARY = "spring-cloud";
public static final String IMPLICIT_HEADERS = "implicitHeaders";
public static final String API_FIRST = "apiFirst"; public static final String API_FIRST = "apiFirst";
public static final String SPRING_CONTROLLER = "useSpringController"; public static final String SPRING_CONTROLLER = "useSpringController";
public static final String HATEOAS = "hateoas"; public static final String HATEOAS = "hateoas";
@ -110,7 +109,6 @@ public class SpringCodegen extends AbstractJavaCodegen
protected boolean useTags = false; protected boolean useTags = false;
protected boolean useBeanValidation = true; protected boolean useBeanValidation = true;
protected boolean performBeanValidation = false; protected boolean performBeanValidation = false;
protected boolean implicitHeaders = false;
protected boolean apiFirst = false; protected boolean apiFirst = false;
protected boolean useOptional = false; protected boolean useOptional = false;
protected boolean virtualService = false; protected boolean virtualService = false;
@ -180,9 +178,6 @@ public class SpringCodegen extends AbstractJavaCodegen
.add(CliOption.newBoolean(USE_BEANVALIDATION, "Use BeanValidation API annotations", useBeanValidation)); .add(CliOption.newBoolean(USE_BEANVALIDATION, "Use BeanValidation API annotations", useBeanValidation));
cliOptions.add(CliOption.newBoolean(PERFORM_BEANVALIDATION, cliOptions.add(CliOption.newBoolean(PERFORM_BEANVALIDATION,
"Use Bean Validation Impl. to perform BeanValidation", performBeanValidation)); "Use Bean Validation Impl. to perform BeanValidation", performBeanValidation));
cliOptions.add(CliOption.newBoolean(IMPLICIT_HEADERS,
"Skip header parameters in the generated API methods using @ApiImplicitParams annotation.",
implicitHeaders));
cliOptions.add(CliOption.newBoolean(API_FIRST, cliOptions.add(CliOption.newBoolean(API_FIRST,
"Generate the API from the OAI spec at server compile time (API first approach)", apiFirst)); "Generate the API from the OAI spec at server compile time (API first approach)", apiFirst));
cliOptions cliOptions
@ -369,10 +364,6 @@ public class SpringCodegen extends AbstractJavaCodegen
this.setUseOptional(convertPropertyToBoolean(USE_OPTIONAL)); this.setUseOptional(convertPropertyToBoolean(USE_OPTIONAL));
} }
if (additionalProperties.containsKey(IMPLICIT_HEADERS)) {
this.setImplicitHeaders(Boolean.parseBoolean(additionalProperties.get(IMPLICIT_HEADERS).toString()));
}
if (additionalProperties.containsKey(API_FIRST)) { if (additionalProperties.containsKey(API_FIRST)) {
this.setApiFirst(Boolean.parseBoolean(additionalProperties.get(API_FIRST).toString())); this.setApiFirst(Boolean.parseBoolean(additionalProperties.get(API_FIRST).toString()));
} }
@ -665,9 +656,7 @@ public class SpringCodegen extends AbstractJavaCodegen
} }
}); });
if (implicitHeaders) { handleImplicitHeaders(operation);
removeHeadersFromAllParams(operation.allParams);
}
} }
} }
@ -710,25 +699,6 @@ public class SpringCodegen extends AbstractJavaCodegen
} }
} }
/**
* This method removes header parameters from the list of parameters
*
* @param allParams list of all parameters
*/
private void removeHeadersFromAllParams(List<CodegenParameter> allParams) {
if (allParams.isEmpty()) {
return;
}
final ArrayList<CodegenParameter> copy = new ArrayList<>(allParams);
allParams.clear();
for (final CodegenParameter p : copy) {
if (!p.isHeaderParam) {
allParams.add(p);
}
}
}
@Override @Override
public Map<String, Object> postProcessSupportingFileData(Map<String, Object> objs) { public Map<String, Object> postProcessSupportingFileData(Map<String, Object> objs) {
generateYAMLSpecFile(objs); generateYAMLSpecFile(objs);
@ -839,10 +809,6 @@ public class SpringCodegen extends AbstractJavaCodegen
this.useTags = useTags; this.useTags = useTags;
} }
public void setImplicitHeaders(boolean implicitHeaders) {
this.implicitHeaders = implicitHeaders;
}
public void setApiFirst(boolean apiFirst) { public void setApiFirst(boolean apiFirst) {
this.apiFirst = apiFirst; this.apiFirst = apiFirst;
} }

View File

@ -76,6 +76,13 @@ public class {{classname}} {
@io.swagger.annotations.ApiResponse(code = {{{code}}}, message = "{{{message}}}", response = {{{baseType}}}.class{{#containerType}}, responseContainer = "{{{.}}}"{{/containerType}}){{^-last}},{{/-last}} @io.swagger.annotations.ApiResponse(code = {{{code}}}, message = "{{{message}}}", response = {{{baseType}}}.class{{#containerType}}, responseContainer = "{{{.}}}"{{/containerType}}){{^-last}},{{/-last}}
{{/responses}} {{/responses}}
}) })
{{#implicitHeadersParams.0}}
@io.swagger.annotations.ApiImplicitParams({
{{#implicitHeadersParams}}
@io.swagger.annotations.ApiImplicitParam(name = "{{{baseName}}}", value = "{{{description}}}", {{#required}}required = true,{{/required}} dataType = "{{{dataType}}}", paramType = "header"){{^-last}},{{/-last}}
{{/implicitHeadersParams}}
})
{{/implicitHeadersParams.0}}
public Response {{nickname}}({{#allParams}}{{>queryParams}}{{>pathParams}}{{>headerParams}}{{>bodyParams}}{{>formParams}},{{/allParams}}@Context SecurityContext securityContext) public Response {{nickname}}({{#allParams}}{{>queryParams}}{{>pathParams}}{{>headerParams}}{{>bodyParams}}{{>formParams}},{{/allParams}}@Context SecurityContext securityContext)
throws NotFoundException { throws NotFoundException {
return delegate.{{nickname}}({{#allParams}}{{#isFormParam}}{{#isFile}}{{paramName}}Bodypart{{/isFile}}{{/isFormParam}}{{^isFile}}{{paramName}}{{/isFile}}{{^isFormParam}}{{#isFile}}{{paramName}}{{/isFile}}{{/isFormParam}}, {{/allParams}}securityContext); return delegate.{{nickname}}({{#allParams}}{{#isFormParam}}{{#isFile}}{{paramName}}Bodypart{{/isFile}}{{/isFormParam}}{{^isFile}}{{paramName}}{{/isFile}}{{^isFormParam}}{{#isFile}}{{paramName}}{{/isFile}}{{/isFormParam}}, {{/allParams}}securityContext);

View File

@ -51,6 +51,13 @@ public class {{classname}} {
{{/-last}}{{/scopes}} }){{^-last}},{{/-last}}{{/isOAuth}} {{/-last}}{{/scopes}} }){{^-last}},{{/-last}}{{/isOAuth}}
{{^isOAuth}}@Authorization(value = "{{name}}"){{^-last}},{{/-last}} {{^isOAuth}}@Authorization(value = "{{name}}"){{^-last}},{{/-last}}
{{/isOAuth}}{{/authMethods}} }{{/hasAuthMethods}}, tags={ {{#vendorExtensions.x-tags}}"{{tag}}"{{^-last}}, {{/-last}}{{/vendorExtensions.x-tags}} }) {{/isOAuth}}{{/authMethods}} }{{/hasAuthMethods}}, tags={ {{#vendorExtensions.x-tags}}"{{tag}}"{{^-last}}, {{/-last}}{{/vendorExtensions.x-tags}} })
{{#implicitHeadersParams.0}}
@io.swagger.annotations.ApiImplicitParams({
{{#implicitHeadersParams}}
@io.swagger.annotations.ApiImplicitParam(name = "{{{baseName}}}", value = "{{{description}}}", {{#required}}required = true,{{/required}} dataType = "{{{dataType}}}", paramType = "header"){{^-last}},{{/-last}}
{{/implicitHeadersParams}}
})
{{/implicitHeadersParams.0}}
@ApiResponses(value = { {{#responses}} @ApiResponses(value = { {{#responses}}
@ApiResponse(code = {{{code}}}, message = "{{{message}}}", response = {{{baseType}}}.class{{#containerType}}, responseContainer = "{{{.}}}"{{/containerType}}){{^-last}},{{/-last}}{{/responses}} }) @ApiResponse(code = {{{code}}}, message = "{{{message}}}", response = {{{baseType}}}.class{{#containerType}}, responseContainer = "{{{.}}}"{{/containerType}}){{^-last}},{{/-last}}{{/responses}} })
public Response {{nickname}}({{#allParams}}{{>queryParams}}{{>pathParams}}{{>headerParams}}{{>bodyParams}}{{>formParams}}{{^-last}}, {{/-last}}{{/allParams}}) { public Response {{nickname}}({{#allParams}}{{>queryParams}}{{>pathParams}}{{>headerParams}}{{>bodyParams}}{{>formParams}}{{^-last}}, {{/-last}}{{/allParams}}) {

View File

@ -61,6 +61,13 @@ public interface {{classname}} {
@Produces({ {{#produces}}"{{{mediaType}}}"{{^-last}}, {{/-last}}{{/produces}} }) @Produces({ {{#produces}}"{{{mediaType}}}"{{^-last}}, {{/-last}}{{/produces}} })
{{/hasProduces}} {{/hasProduces}}
@ApiOperation(value = "{{{summary}}}", tags={ {{#vendorExtensions.x-tags}}"{{tag}}"{{^-last}}, {{/-last}}{{/vendorExtensions.x-tags}} }) @ApiOperation(value = "{{{summary}}}", tags={ {{#vendorExtensions.x-tags}}"{{tag}}"{{^-last}}, {{/-last}}{{/vendorExtensions.x-tags}} })
{{#implicitHeadersParams.0}}
@io.swagger.annotations.ApiImplicitParams({
{{#implicitHeadersParams}}
@io.swagger.annotations.ApiImplicitParam(name = "{{{baseName}}}", value = "{{{description}}}", {{#required}}required = true,{{/required}} dataType = "{{{dataType}}}", paramType = "header"){{^-last}},{{/-last}}
{{/implicitHeadersParams}}
})
{{/implicitHeadersParams.0}}
@ApiResponses(value = { {{#responses}} @ApiResponses(value = { {{#responses}}
@ApiResponse(code = {{{code}}}, message = "{{{message}}}"{{^vendorExtensions.x-java-is-response-void}}, response = {{{baseType}}}.class{{#containerType}}, responseContainer = "{{{.}}}"{{/containerType}}{{/vendorExtensions.x-java-is-response-void}}){{^-last}},{{/-last}}{{/responses}} }) @ApiResponse(code = {{{code}}}, message = "{{{message}}}"{{^vendorExtensions.x-java-is-response-void}}, response = {{{baseType}}}.class{{#containerType}}, responseContainer = "{{{.}}}"{{/containerType}}{{/vendorExtensions.x-java-is-response-void}}){{^-last}},{{/-last}}{{/responses}} })
public {{>returnTypes}} {{operationId}}({{#allParams}}{{>queryParams}}{{>pathParams}}{{>headerParams}}{{>bodyParams}}{{>formParams}}{{^-last}}, {{/-last}}{{/allParams}}); public {{>returnTypes}} {{operationId}}({{#allParams}}{{>queryParams}}{{>pathParams}}{{>headerParams}}{{>bodyParams}}{{>formParams}}{{^-last}}, {{/-last}}{{/allParams}});

View File

@ -61,6 +61,13 @@ public interface {{classname}} {
@Produces({ {{#produces}}"{{{mediaType}}}"{{^-last}}, {{/-last}}{{/produces}} }) @Produces({ {{#produces}}"{{{mediaType}}}"{{^-last}}, {{/-last}}{{/produces}} })
{{/hasProduces}} {{/hasProduces}}
@ApiOperation(value = "{{{summary}}}", tags={ {{#vendorExtensions.x-tags}}"{{tag}}"{{^-last}}, {{/-last}}{{/vendorExtensions.x-tags}} }) @ApiOperation(value = "{{{summary}}}", tags={ {{#vendorExtensions.x-tags}}"{{tag}}"{{^-last}}, {{/-last}}{{/vendorExtensions.x-tags}} })
{{#implicitHeadersParams.0}}
@io.swagger.annotations.ApiImplicitParams({
{{#implicitHeadersParams}}
@io.swagger.annotations.ApiImplicitParam(name = "{{{baseName}}}", value = "{{{description}}}", {{#required}}required = true,{{/required}} dataType = "{{{dataType}}}", paramType = "header"){{^-last}},{{/-last}}
{{/implicitHeadersParams}}
})
{{/implicitHeadersParams.0}}
@ApiResponses(value = { {{#responses}} @ApiResponses(value = { {{#responses}}
@ApiResponse(code = {{{code}}}, message = "{{{message}}}"{{^vendorExtensions.x-java-is-response-void}}, response = {{{baseType}}}.class{{#containerType}}, responseContainer = "{{{.}}}"{{/containerType}}{{/vendorExtensions.x-java-is-response-void}}){{^-last}},{{/-last}}{{/responses}} }) @ApiResponse(code = {{{code}}}, message = "{{{message}}}"{{^vendorExtensions.x-java-is-response-void}}, response = {{{baseType}}}.class{{#containerType}}, responseContainer = "{{{.}}}"{{/containerType}}{{/vendorExtensions.x-java-is-response-void}}){{^-last}},{{/-last}}{{/responses}} })
public {{>returnTypes}} {{nickname}}({{#allParams}}{{>queryParams}}{{>pathParams}}{{>headerParams}}{{>bodyParams}}{{>formParams}}{{^-last}}, {{/-last}}{{/allParams}}); public {{>returnTypes}} {{nickname}}({{#allParams}}{{>queryParams}}{{>pathParams}}{{>headerParams}}{{>bodyParams}}{{>formParams}}{{^-last}}, {{/-last}}{{/allParams}});

View File

@ -49,6 +49,13 @@ public class {{classname}} {
}{{/isOAuth}}){{^-last}}, }{{/isOAuth}}){{^-last}},
{{/-last}}{{/authMethods}} {{/-last}}{{/authMethods}}
}{{/hasAuthMethods}}, tags={ {{#vendorExtensions.x-tags}}"{{tag}}"{{^-last}}, {{/-last}}{{/vendorExtensions.x-tags}} }) }{{/hasAuthMethods}}, tags={ {{#vendorExtensions.x-tags}}"{{tag}}"{{^-last}}, {{/-last}}{{/vendorExtensions.x-tags}} })
{{#implicitHeadersParams.0}}
@io.swagger.annotations.ApiImplicitParams({
{{#implicitHeadersParams}}
@io.swagger.annotations.ApiImplicitParam(name = "{{{baseName}}}", value = "{{{description}}}", {{#required}}required = true,{{/required}} dataType = "{{{dataType}}}", paramType = "header"){{^-last}},{{/-last}}
{{/implicitHeadersParams}}
})
{{/implicitHeadersParams.0}}
@io.swagger.annotations.ApiResponses(value = { {{#responses}} @io.swagger.annotations.ApiResponses(value = { {{#responses}}
@io.swagger.annotations.ApiResponse(code = {{{code}}}, message = "{{{message}}}", response = {{{baseType}}}.class{{#containerType}}, responseContainer = "{{{.}}}"{{/containerType}}){{^-last}},{{/-last}}{{/responses}} }) @io.swagger.annotations.ApiResponse(code = {{{code}}}, message = "{{{message}}}", response = {{{baseType}}}.class{{#containerType}}, responseContainer = "{{{.}}}"{{/containerType}}){{^-last}},{{/-last}}{{/responses}} })
public Response {{nickname}}( public Response {{nickname}}(

View File

@ -49,6 +49,13 @@ public class {{classname}} {
}{{/isOAuth}}){{^-last}}, }{{/isOAuth}}){{^-last}},
{{/-last}}{{/authMethods}} {{/-last}}{{/authMethods}}
}{{/hasAuthMethods}}, tags={ {{#vendorExtensions.x-tags}}"{{tag}}",{{/vendorExtensions.x-tags}} }) }{{/hasAuthMethods}}, tags={ {{#vendorExtensions.x-tags}}"{{tag}}",{{/vendorExtensions.x-tags}} })
{{#implicitHeadersParams.0}}
@io.swagger.annotations.ApiImplicitParams({
{{#implicitHeadersParams}}
@io.swagger.annotations.ApiImplicitParam(name = "{{{baseName}}}", value = "{{{description}}}", {{#required}}required = true,{{/required}} dataType = "{{{dataType}}}", paramType = "header"){{^-last}},{{/-last}}
{{/implicitHeadersParams}}
})
{{/implicitHeadersParams.0}}
@io.swagger.annotations.ApiResponses(value = { {{#responses}} @io.swagger.annotations.ApiResponses(value = { {{#responses}}
@io.swagger.annotations.ApiResponse(code = {{{code}}}, message = "{{{message}}}", response = {{{baseType}}}.class{{#containerType}}, responseContainer = "{{{.}}}"{{/containerType}}){{^-last}}, @io.swagger.annotations.ApiResponse(code = {{{code}}}, message = "{{{message}}}", response = {{{baseType}}}.class{{#containerType}}, responseContainer = "{{{.}}}"{{/containerType}}){{^-last}},
{{/-last}}{{/responses}} }) {{/-last}}{{/responses}} })

View File

@ -43,6 +43,13 @@ public interface {{classname}} {
}{{/isOAuth}}){{^-last}}, }{{/isOAuth}}){{^-last}},
{{/-last}}{{/authMethods}} {{/-last}}{{/authMethods}}
}{{/hasAuthMethods}}, tags={ {{#vendorExtensions.x-tags}}"{{tag}}",{{/vendorExtensions.x-tags}} }) }{{/hasAuthMethods}}, tags={ {{#vendorExtensions.x-tags}}"{{tag}}",{{/vendorExtensions.x-tags}} })
{{#implicitHeadersParams.0}}
@io.swagger.annotations.ApiImplicitParams({
{{#implicitHeadersParams}}
@io.swagger.annotations.ApiImplicitParam(name = "{{{baseName}}}", value = "{{{description}}}", {{#required}}required = true,{{/required}} dataType = "{{{dataType}}}", paramType = "header"){{^-last}},{{/-last}}
{{/implicitHeadersParams}}
})
{{/implicitHeadersParams.0}}
@io.swagger.annotations.ApiResponses(value = { {{#responses}} @io.swagger.annotations.ApiResponses(value = { {{#responses}}
@io.swagger.annotations.ApiResponse(code = {{{code}}}, message = "{{{message}}}", response = {{{baseType}}}.class{{#containerType}}, responseContainer = "{{{.}}}"{{/containerType}}){{^-last}}, @io.swagger.annotations.ApiResponse(code = {{{code}}}, message = "{{{message}}}", response = {{{baseType}}}.class{{#containerType}}, responseContainer = "{{{.}}}"{{/containerType}}){{^-last}},
{{/-last}}{{/responses}} }) {{/-last}}{{/responses}} })

View File

@ -8,6 +8,13 @@
{{/-last}}{{/scopes}} }){{^-last}},{{/-last}}{{/isOAuth}} {{/-last}}{{/scopes}} }){{^-last}},{{/-last}}{{/isOAuth}}
{{^isOAuth}}@Authorization(value = "{{name}}"){{^-last}},{{/-last}} {{^isOAuth}}@Authorization(value = "{{name}}"){{^-last}},{{/-last}}
{{/isOAuth}}{{/authMethods}} }{{/hasAuthMethods}}, tags={ {{#vendorExtensions.x-tags}}"{{tag}}"{{^-last}}, {{/-last}}{{/vendorExtensions.x-tags}} }) {{/isOAuth}}{{/authMethods}} }{{/hasAuthMethods}}, tags={ {{#vendorExtensions.x-tags}}"{{tag}}"{{^-last}}, {{/-last}}{{/vendorExtensions.x-tags}} })
{{#implicitHeadersParams.0}}
@io.swagger.annotations.ApiImplicitParams({
{{#implicitHeadersParams}}
@io.swagger.annotations.ApiImplicitParam(name = "{{{baseName}}}", value = "{{{description}}}", {{#required}}required = true,{{/required}} dataType = "{{{dataType}}}", paramType = "header"){{^-last}},{{/-last}}
{{/implicitHeadersParams}}
})
{{/implicitHeadersParams.0}}
@ApiResponses(value = { {{#responses}} @ApiResponses(value = { {{#responses}}
@ApiResponse(code = {{{code}}}, message = "{{{message}}}", response = {{{baseType}}}.class{{#returnContainer}}, responseContainer = "{{{.}}}"{{/returnContainer}}){{^-last}},{{/-last}}{{/responses}} }){{/useSwaggerAnnotations}} @ApiResponse(code = {{{code}}}, message = "{{{message}}}", response = {{{baseType}}}.class{{#returnContainer}}, responseContainer = "{{{.}}}"{{/returnContainer}}){{^-last}},{{/-last}}{{/responses}} }){{/useSwaggerAnnotations}}
{{#supportAsync}}{{>returnAsyncTypeInterface}}{{/supportAsync}}{{^supportAsync}}{{#returnResponse}}Response{{/returnResponse}}{{^returnResponse}}{{>returnTypeInterface}}{{/returnResponse}}{{/supportAsync}} {{nickname}}({{#allParams}}{{>queryParams}}{{>pathParams}}{{>headerParams}}{{>bodyParams}}{{>formParams}}{{^-last}},{{/-last}}{{/allParams}}); {{#supportAsync}}{{>returnAsyncTypeInterface}}{{/supportAsync}}{{^supportAsync}}{{#returnResponse}}Response{{/returnResponse}}{{^returnResponse}}{{>returnTypeInterface}}{{/returnResponse}}{{/supportAsync}} {{nickname}}({{#allParams}}{{>queryParams}}{{>pathParams}}{{>headerParams}}{{>bodyParams}}{{>formParams}}{{^-last}},{{/-last}}{{/allParams}});

View File

@ -8,6 +8,13 @@
{{/-last}}{{/scopes}} }){{^-last}},{{/-last}}{{/isOAuth}} {{/-last}}{{/scopes}} }){{^-last}},{{/-last}}{{/isOAuth}}
{{^isOAuth}}@Authorization(value = "{{name}}"){{^-last}},{{/-last}} {{^isOAuth}}@Authorization(value = "{{name}}"){{^-last}},{{/-last}}
{{/isOAuth}}{{/authMethods}} }{{/hasAuthMethods}}, tags={ {{#vendorExtensions.x-tags}}"{{tag}}"{{^-last}}, {{/-last}}{{/vendorExtensions.x-tags}} }) {{/isOAuth}}{{/authMethods}} }{{/hasAuthMethods}}, tags={ {{#vendorExtensions.x-tags}}"{{tag}}"{{^-last}}, {{/-last}}{{/vendorExtensions.x-tags}} })
{{#implicitHeadersParams.0}}
@io.swagger.annotations.ApiImplicitParams({
{{#implicitHeadersParams}}
@io.swagger.annotations.ApiImplicitParam(name = "{{{baseName}}}", value = "{{{description}}}", {{#required}}required = true,{{/required}} dataType = "{{{dataType}}}", paramType = "header"){{^-last}},{{/-last}}
{{/implicitHeadersParams}}
})
{{/implicitHeadersParams.0}}
@ApiResponses(value = { {{#responses}} @ApiResponses(value = { {{#responses}}
@ApiResponse(code = {{{code}}}, message = "{{{message}}}", response = {{{baseType}}}.class{{#containerType}}, responseContainer = "{{{.}}}"{{/containerType}}){{^-last}},{{/-last}}{{/responses}} @ApiResponse(code = {{{code}}}, message = "{{{message}}}", response = {{{baseType}}}.class{{#containerType}}, responseContainer = "{{{.}}}"{{/containerType}}){{^-last}},{{/-last}}{{/responses}}
}){{/useSwaggerAnnotations}} }){{/useSwaggerAnnotations}}

View File

@ -184,21 +184,21 @@ public interface {{classname}} {
{{/responses}} {{/responses}}
}) })
{{/swagger1AnnotationLibrary}} {{/swagger1AnnotationLibrary}}
{{#implicitHeaders}} {{#implicitHeadersParams.0}}
{{#swagger2AnnotationLibrary}} {{#swagger2AnnotationLibrary}}
@Parameters({ @Parameters({
{{#headerParams}} {{#implicitHeadersParams}}
{{>paramDoc}}{{^-last}},{{/-last}} {{>paramDoc}}{{^-last}},{{/-last}}
{{/headerParams}} {{/implicitHeadersParams}}
{{/swagger2AnnotationLibrary}} {{/swagger2AnnotationLibrary}}
{{#swagger1AnnotationLibrary}} {{#swagger1AnnotationLibrary}}
@ApiImplicitParams({ @ApiImplicitParams({
{{#headerParams}} {{#implicitHeadersParams}}
{{>implicitHeader}}{{^-last}},{{/-last}} {{>implicitHeader}}{{^-last}},{{/-last}}
{{/headerParams}} {{/implicitHeadersParams}}
{{/swagger1AnnotationLibrary}} {{/swagger1AnnotationLibrary}}
}) })
{{/implicitHeaders}} {{/implicitHeadersParams.0}}
@RequestMapping( @RequestMapping(
method = RequestMethod.{{httpMethod}}, method = RequestMethod.{{httpMethod}},
value = "{{{path}}}"{{#singleContentTypes}}{{#hasProduces}}, value = "{{{path}}}"{{#singleContentTypes}}{{#hasProduces}},

View File

@ -1 +1 @@
{{#isHeaderParam}}@ApiImplicitParam(name = "{{{paramName}}}", value = "{{{description}}}", {{#required}}required = true,{{/required}} dataType = "{{{dataType}}}", paramType = "header"){{/isHeaderParam}} {{#isHeaderParam}}@ApiImplicitParam(name = "{{{baseName}}}", value = "{{{description}}}", {{#required}}required = true,{{/required}} dataType = "{{{dataType}}}", paramType = "header"){{/isHeaderParam}}

View File

@ -50,11 +50,11 @@ public interface {{classname}} {
{{/isOAuth}}{{/authMethods}} }{{/hasAuthMethods}}, tags={ {{#vendorExtensions.x-tags}}"{{tag}}",{{/vendorExtensions.x-tags}} }) {{/isOAuth}}{{/authMethods}} }{{/hasAuthMethods}}, tags={ {{#vendorExtensions.x-tags}}"{{tag}}",{{/vendorExtensions.x-tags}} })
@ApiResponses(value = { {{#responses}} @ApiResponses(value = { {{#responses}}
@ApiResponse(code = {{{code}}}, message = "{{{message}}}"{{#baseType}}, response = {{{.}}}.class{{/baseType}}{{#containerType}}, responseContainer = "{{{.}}}"{{/containerType}}){{^-last}},{{/-last}}{{/responses}} }) @ApiResponse(code = {{{code}}}, message = "{{{message}}}"{{#baseType}}, response = {{{.}}}.class{{/baseType}}{{#containerType}}, responseContainer = "{{{.}}}"{{/containerType}}){{^-last}},{{/-last}}{{/responses}} })
{{#implicitHeaders}} {{#implicitHeadersParams.0}}
@ApiImplicitParams({ @ApiImplicitParams({
{{#headerParams}}{{>implicitHeader}}{{/headerParams}} {{#implicitHeadersParams}}{{>implicitHeader}}{{/implicitHeadersParams}}
}) })
{{/implicitHeaders}} {{/implicitHeadersParams.0}}
@RequestMapping( @RequestMapping(
method = RequestMethod.{{httpMethod}}, method = RequestMethod.{{httpMethod}},
value = "{{{path}}}"{{#singleContentTypes}}, value = "{{{path}}}"{{#singleContentTypes}},

View File

@ -1 +1 @@
{{#isHeaderParam}}@ApiImplicitParam(name = "{{{paramName}}}", value = "{{{description}}}", {{#required}}required=true,{{/required}} dataType = "{{{dataType}}}", paramType = "header"){{^-last}},{{/-last}}{{/isHeaderParam}} {{#isHeaderParam}}@ApiImplicitParam(name = "{{{baseName}}}", value = "{{{description}}}", {{#required}}required=true,{{/required}} dataType = "{{{dataType}}}", paramType = "header"){{^-last}},{{/-last}}{{/isHeaderParam}}

View File

@ -131,7 +131,7 @@ public class JavaClientCodegenTest {
CodegenParameter pathParam1 = createPathParam("pathParam1"); CodegenParameter pathParam1 = createPathParam("pathParam1");
CodegenParameter pathParam2 = createPathParam("pathParam2"); CodegenParameter pathParam2 = createPathParam("pathParam2");
codegenOperation.allParams = Arrays.asList(queryParamRequired, pathParam1, pathParam2, queryParamOptional); codegenOperation.allParams.addAll(Arrays.asList(queryParamRequired, pathParam1, pathParam2, queryParamOptional));
Map<String, Object> operations = ImmutableMap.of("operation", Arrays.asList(codegenOperation)); Map<String, Object> operations = ImmutableMap.of("operation", Arrays.asList(codegenOperation));
Map<String, Object> objs = ImmutableMap.of("operations", operations, "imports", new ArrayList<Map<String, String>>()); Map<String, Object> objs = ImmutableMap.of("operations", operations, "imports", new ArrayList<Map<String, String>>());

View File

@ -55,8 +55,6 @@ public interface AnotherFakeApi {
}) })
} }
) )
@Parameters({
})
@RequestMapping( @RequestMapping(
method = RequestMethod.PATCH, method = RequestMethod.PATCH,
value = "/another-fake/dummy", value = "/another-fake/dummy",

View File

@ -63,8 +63,6 @@ public interface FakeApi {
@ApiResponse(responseCode = "200", description = "successful operation") @ApiResponse(responseCode = "200", description = "successful operation")
} }
) )
@Parameters({
})
@RequestMapping( @RequestMapping(
method = RequestMethod.POST, method = RequestMethod.POST,
value = "/fake/create_xml_item", value = "/fake/create_xml_item",
@ -94,8 +92,6 @@ public interface FakeApi {
}) })
} }
) )
@Parameters({
})
@RequestMapping( @RequestMapping(
method = RequestMethod.POST, method = RequestMethod.POST,
value = "/fake/outer/boolean", value = "/fake/outer/boolean",
@ -125,8 +121,6 @@ public interface FakeApi {
}) })
} }
) )
@Parameters({
})
@RequestMapping( @RequestMapping(
method = RequestMethod.POST, method = RequestMethod.POST,
value = "/fake/outer/composite", value = "/fake/outer/composite",
@ -165,8 +159,6 @@ public interface FakeApi {
}) })
} }
) )
@Parameters({
})
@RequestMapping( @RequestMapping(
method = RequestMethod.POST, method = RequestMethod.POST,
value = "/fake/outer/number", value = "/fake/outer/number",
@ -196,8 +188,6 @@ public interface FakeApi {
}) })
} }
) )
@Parameters({
})
@RequestMapping( @RequestMapping(
method = RequestMethod.POST, method = RequestMethod.POST,
value = "/fake/outer/string", value = "/fake/outer/string",
@ -225,8 +215,6 @@ public interface FakeApi {
@ApiResponse(responseCode = "200", description = "Success") @ApiResponse(responseCode = "200", description = "Success")
} }
) )
@Parameters({
})
@RequestMapping( @RequestMapping(
method = RequestMethod.PUT, method = RequestMethod.PUT,
value = "/fake/body-with-file-schema", value = "/fake/body-with-file-schema",
@ -254,8 +242,6 @@ public interface FakeApi {
@ApiResponse(responseCode = "200", description = "Success") @ApiResponse(responseCode = "200", description = "Success")
} }
) )
@Parameters({
})
@RequestMapping( @RequestMapping(
method = RequestMethod.PUT, method = RequestMethod.PUT,
value = "/fake/body-with-query-params", value = "/fake/body-with-query-params",
@ -287,8 +273,6 @@ public interface FakeApi {
}) })
} }
) )
@Parameters({
})
@RequestMapping( @RequestMapping(
method = RequestMethod.PATCH, method = RequestMethod.PATCH,
value = "/fake", value = "/fake",
@ -345,8 +329,6 @@ public interface FakeApi {
@SecurityRequirement(name = "http_basic_test") @SecurityRequirement(name = "http_basic_test")
} }
) )
@Parameters({
})
@RequestMapping( @RequestMapping(
method = RequestMethod.POST, method = RequestMethod.POST,
value = "/fake", value = "/fake",
@ -468,8 +450,6 @@ public interface FakeApi {
@ApiResponse(responseCode = "200", description = "successful operation") @ApiResponse(responseCode = "200", description = "successful operation")
} }
) )
@Parameters({
})
@RequestMapping( @RequestMapping(
method = RequestMethod.POST, method = RequestMethod.POST,
value = "/fake/inline-additionalProperties", value = "/fake/inline-additionalProperties",
@ -498,8 +478,6 @@ public interface FakeApi {
@ApiResponse(responseCode = "200", description = "successful operation") @ApiResponse(responseCode = "200", description = "successful operation")
} }
) )
@Parameters({
})
@RequestMapping( @RequestMapping(
method = RequestMethod.GET, method = RequestMethod.GET,
value = "/fake/jsonFormData", value = "/fake/jsonFormData",
@ -532,8 +510,6 @@ public interface FakeApi {
@ApiResponse(responseCode = "200", description = "Success") @ApiResponse(responseCode = "200", description = "Success")
} }
) )
@Parameters({
})
@RequestMapping( @RequestMapping(
method = RequestMethod.PUT, method = RequestMethod.PUT,
value = "/fake/test-query-parameters" value = "/fake/test-query-parameters"
@ -571,8 +547,6 @@ public interface FakeApi {
@SecurityRequirement(name = "petstore_auth", scopes={ "write:pets", "read:pets" }) @SecurityRequirement(name = "petstore_auth", scopes={ "write:pets", "read:pets" })
} }
) )
@Parameters({
})
@RequestMapping( @RequestMapping(
method = RequestMethod.POST, method = RequestMethod.POST,
value = "/fake/{petId}/uploadImageWithRequiredFile", value = "/fake/{petId}/uploadImageWithRequiredFile",

View File

@ -58,8 +58,6 @@ public interface FakeClassnameTestApi {
@SecurityRequirement(name = "api_key_query") @SecurityRequirement(name = "api_key_query")
} }
) )
@Parameters({
})
@RequestMapping( @RequestMapping(
method = RequestMethod.PATCH, method = RequestMethod.PATCH,
value = "/fake_classname_test", value = "/fake_classname_test",

View File

@ -59,8 +59,6 @@ public interface PetApi {
@SecurityRequirement(name = "petstore_auth", scopes={ "write:pets", "read:pets" }) @SecurityRequirement(name = "petstore_auth", scopes={ "write:pets", "read:pets" })
} }
) )
@Parameters({
})
@RequestMapping( @RequestMapping(
method = RequestMethod.POST, method = RequestMethod.POST,
value = "/pet", value = "/pet",
@ -131,8 +129,6 @@ public interface PetApi {
@SecurityRequirement(name = "petstore_auth", scopes={ "write:pets", "read:pets" }) @SecurityRequirement(name = "petstore_auth", scopes={ "write:pets", "read:pets" })
} }
) )
@Parameters({
})
@RequestMapping( @RequestMapping(
method = RequestMethod.GET, method = RequestMethod.GET,
value = "/pet/findByStatus", value = "/pet/findByStatus",
@ -184,8 +180,6 @@ public interface PetApi {
@SecurityRequirement(name = "petstore_auth", scopes={ "write:pets", "read:pets" }) @SecurityRequirement(name = "petstore_auth", scopes={ "write:pets", "read:pets" })
} }
) )
@Parameters({
})
@RequestMapping( @RequestMapping(
method = RequestMethod.GET, method = RequestMethod.GET,
value = "/pet/findByTags", value = "/pet/findByTags",
@ -238,8 +232,6 @@ public interface PetApi {
@SecurityRequirement(name = "api_key") @SecurityRequirement(name = "api_key")
} }
) )
@Parameters({
})
@RequestMapping( @RequestMapping(
method = RequestMethod.GET, method = RequestMethod.GET,
value = "/pet/{petId}", value = "/pet/{petId}",
@ -290,8 +282,6 @@ public interface PetApi {
@SecurityRequirement(name = "petstore_auth", scopes={ "write:pets", "read:pets" }) @SecurityRequirement(name = "petstore_auth", scopes={ "write:pets", "read:pets" })
} }
) )
@Parameters({
})
@RequestMapping( @RequestMapping(
method = RequestMethod.PUT, method = RequestMethod.PUT,
value = "/pet", value = "/pet",
@ -324,8 +314,6 @@ public interface PetApi {
@SecurityRequirement(name = "petstore_auth", scopes={ "write:pets", "read:pets" }) @SecurityRequirement(name = "petstore_auth", scopes={ "write:pets", "read:pets" })
} }
) )
@Parameters({
})
@RequestMapping( @RequestMapping(
method = RequestMethod.POST, method = RequestMethod.POST,
value = "/pet/{petId}", value = "/pet/{petId}",
@ -362,8 +350,6 @@ public interface PetApi {
@SecurityRequirement(name = "petstore_auth", scopes={ "write:pets", "read:pets" }) @SecurityRequirement(name = "petstore_auth", scopes={ "write:pets", "read:pets" })
} }
) )
@Parameters({
})
@RequestMapping( @RequestMapping(
method = RequestMethod.POST, method = RequestMethod.POST,
value = "/pet/{petId}/uploadImage", value = "/pet/{petId}/uploadImage",

View File

@ -56,8 +56,6 @@ public interface StoreApi {
@ApiResponse(responseCode = "404", description = "Order not found") @ApiResponse(responseCode = "404", description = "Order not found")
} }
) )
@Parameters({
})
@RequestMapping( @RequestMapping(
method = RequestMethod.DELETE, method = RequestMethod.DELETE,
value = "/store/order/{order_id}" value = "/store/order/{order_id}"
@ -89,8 +87,6 @@ public interface StoreApi {
@SecurityRequirement(name = "api_key") @SecurityRequirement(name = "api_key")
} }
) )
@Parameters({
})
@RequestMapping( @RequestMapping(
method = RequestMethod.GET, method = RequestMethod.GET,
value = "/store/inventory", value = "/store/inventory",
@ -126,8 +122,6 @@ public interface StoreApi {
@ApiResponse(responseCode = "404", description = "Order not found") @ApiResponse(responseCode = "404", description = "Order not found")
} }
) )
@Parameters({
})
@RequestMapping( @RequestMapping(
method = RequestMethod.GET, method = RequestMethod.GET,
value = "/store/order/{order_id}", value = "/store/order/{order_id}",
@ -174,8 +168,6 @@ public interface StoreApi {
@ApiResponse(responseCode = "400", description = "Invalid Order") @ApiResponse(responseCode = "400", description = "Invalid Order")
} }
) )
@Parameters({
})
@RequestMapping( @RequestMapping(
method = RequestMethod.POST, method = RequestMethod.POST,
value = "/store/order", value = "/store/order",

View File

@ -55,8 +55,6 @@ public interface UserApi {
@ApiResponse(responseCode = "200", description = "successful operation") @ApiResponse(responseCode = "200", description = "successful operation")
} }
) )
@Parameters({
})
@RequestMapping( @RequestMapping(
method = RequestMethod.POST, method = RequestMethod.POST,
value = "/user" value = "/user"
@ -83,8 +81,6 @@ public interface UserApi {
@ApiResponse(responseCode = "200", description = "successful operation") @ApiResponse(responseCode = "200", description = "successful operation")
} }
) )
@Parameters({
})
@RequestMapping( @RequestMapping(
method = RequestMethod.POST, method = RequestMethod.POST,
value = "/user/createWithArray" value = "/user/createWithArray"
@ -111,8 +107,6 @@ public interface UserApi {
@ApiResponse(responseCode = "200", description = "successful operation") @ApiResponse(responseCode = "200", description = "successful operation")
} }
) )
@Parameters({
})
@RequestMapping( @RequestMapping(
method = RequestMethod.POST, method = RequestMethod.POST,
value = "/user/createWithList" value = "/user/createWithList"
@ -142,8 +136,6 @@ public interface UserApi {
@ApiResponse(responseCode = "404", description = "User not found") @ApiResponse(responseCode = "404", description = "User not found")
} }
) )
@Parameters({
})
@RequestMapping( @RequestMapping(
method = RequestMethod.DELETE, method = RequestMethod.DELETE,
value = "/user/{username}" value = "/user/{username}"
@ -177,8 +169,6 @@ public interface UserApi {
@ApiResponse(responseCode = "404", description = "User not found") @ApiResponse(responseCode = "404", description = "User not found")
} }
) )
@Parameters({
})
@RequestMapping( @RequestMapping(
method = RequestMethod.GET, method = RequestMethod.GET,
value = "/user/{username}", value = "/user/{username}",
@ -226,8 +216,6 @@ public interface UserApi {
@ApiResponse(responseCode = "400", description = "Invalid username/password supplied") @ApiResponse(responseCode = "400", description = "Invalid username/password supplied")
} }
) )
@Parameters({
})
@RequestMapping( @RequestMapping(
method = RequestMethod.GET, method = RequestMethod.GET,
value = "/user/login", value = "/user/login",
@ -255,8 +243,6 @@ public interface UserApi {
@ApiResponse(responseCode = "200", description = "successful operation") @ApiResponse(responseCode = "200", description = "successful operation")
} }
) )
@Parameters({
})
@RequestMapping( @RequestMapping(
method = RequestMethod.GET, method = RequestMethod.GET,
value = "/user/logout" value = "/user/logout"
@ -287,8 +273,6 @@ public interface UserApi {
@ApiResponse(responseCode = "404", description = "User not found") @ApiResponse(responseCode = "404", description = "User not found")
} }
) )
@Parameters({
})
@RequestMapping( @RequestMapping(
method = RequestMethod.PUT, method = RequestMethod.PUT,
value = "/user/{username}" value = "/user/{username}"

View File

@ -1,84 +0,0 @@
package org.openapitools.model;
import java.net.URI;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import org.openapitools.jackson.nullable.JsonNullable;
import java.time.OffsetDateTime;
import javax.validation.Valid;
import javax.validation.constraints.*;
import io.swagger.v3.oas.annotations.media.Schema;
import java.util.*;
/**
* Must be named &#x60;File&#x60; for test.
*/
@Schema(name = "File",description = "Must be named `File` for test.")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
public class ModelFile {
@JsonProperty("sourceURI")
private String sourceURI;
public ModelFile sourceURI(String sourceURI) {
this.sourceURI = sourceURI;
return this;
}
/**
* Test capitalization
* @return sourceURI
*/
@Schema(name = "sourceURI", defaultValue = "Test capitalization")
public String getSourceURI() {
return sourceURI;
}
public void setSourceURI(String sourceURI) {
this.sourceURI = sourceURI;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ModelFile _file = (ModelFile) o;
return Objects.equals(this.sourceURI, _file.sourceURI);
}
@Override
public int hashCode() {
return Objects.hash(sourceURI);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ModelFile {\n");
sb.append(" sourceURI: ").append(toIndentedString(sourceURI)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}

View File

@ -61,10 +61,13 @@ public class PetApi {
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
@AuthorizationScope(scope = "read:pets", description = "read your pets") }) @AuthorizationScope(scope = "read:pets", description = "read your pets") })
}, tags={ "pet" }) }, tags={ "pet" })
@io.swagger.annotations.ApiImplicitParams({
@io.swagger.annotations.ApiImplicitParam(name = "api_key", value = "", dataType = "String", paramType = "header")
})
@ApiResponses(value = { @ApiResponses(value = {
@ApiResponse(code = 400, message = "Invalid pet value", response = Void.class) }) @ApiResponse(code = 400, message = "Invalid pet value", response = Void.class) })
public Response deletePet(@ApiParam(value = "Pet id to delete",required=true) @PathParam("petId") Long petId, @ApiParam(value = "" )@HeaderParam("api_key") String apiKey) { public Response deletePet(@ApiParam(value = "Pet id to delete",required=true) @PathParam("petId") Long petId) {
return delegate.deletePet(petId, apiKey, securityContext); return delegate.deletePet(petId, securityContext);
} }
@GET @GET

View File

@ -20,7 +20,7 @@ import javax.ws.rs.core.SecurityContext;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSCXFCDIServerCodegen") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSCXFCDIServerCodegen")
public interface PetApiService { public interface PetApiService {
public Response addPet(Pet body, SecurityContext securityContext); public Response addPet(Pet body, SecurityContext securityContext);
public Response deletePet(Long petId, String apiKey, SecurityContext securityContext); public Response deletePet(Long petId, SecurityContext securityContext);
public Response findPetsByStatus(List<String> status, SecurityContext securityContext); public Response findPetsByStatus(List<String> status, SecurityContext securityContext);
@Deprecated public Response findPetsByTags(List<String> tags, SecurityContext securityContext); @Deprecated public Response findPetsByTags(List<String> tags, SecurityContext securityContext);
public Response getPetById(Long petId, SecurityContext securityContext); public Response getPetById(Long petId, SecurityContext securityContext);

View File

@ -26,7 +26,7 @@ public class PetApiServiceImpl implements PetApiService {
return Response.ok().entity("magic!").build(); return Response.ok().entity("magic!").build();
} }
@Override @Override
public Response deletePet(Long petId, String apiKey, SecurityContext securityContext) { public Response deletePet(Long petId, SecurityContext securityContext) {
// do some magic! // do some magic!
return Response.ok().entity("magic!").build(); return Response.ok().entity("magic!").build();
} }

View File

@ -140,10 +140,13 @@ public interface FakeApi {
@Consumes({ "application/x-www-form-urlencoded" }) @Consumes({ "application/x-www-form-urlencoded" })
@ApiOperation(value = "To test enum parameters", tags={ "fake" }) @ApiOperation(value = "To test enum parameters", tags={ "fake" })
@io.swagger.annotations.ApiImplicitParams({
@io.swagger.annotations.ApiImplicitParam(name = "enum_header_string", value = "Header parameter enum test (string)", dataType = "String", paramType = "header")
})
@ApiResponses(value = { @ApiResponses(value = {
@ApiResponse(code = 400, message = "Invalid request"), @ApiResponse(code = 400, message = "Invalid request"),
@ApiResponse(code = 404, message = "Not found") }) @ApiResponse(code = 404, message = "Not found") })
public void testEnumParameters(@HeaderParam("enum_header_string_array") List<String> enumHeaderStringArray, @HeaderParam("enum_header_string") String enumHeaderString, @QueryParam("enum_query_string_array") List<String> enumQueryStringArray, @QueryParam("enum_query_string") @DefaultValue("-efg")String enumQueryString, @QueryParam("enum_query_integer") Integer enumQueryInteger, @QueryParam("enum_query_double") Double enumQueryDouble, @Multipart(value = "enum_form_string_array", required = false) List<String> enumFormStringArray, @Multipart(value = "enum_form_string", required = false) String enumFormString); public void testEnumParameters(@HeaderParam("enum_header_string_array") List<String> enumHeaderStringArray, @QueryParam("enum_query_string_array") List<String> enumQueryStringArray, @QueryParam("enum_query_string") @DefaultValue("-efg")String enumQueryString, @QueryParam("enum_query_integer") Integer enumQueryInteger, @QueryParam("enum_query_double") Double enumQueryDouble, @Multipart(value = "enum_form_string_array", required = false) List<String> enumFormStringArray, @Multipart(value = "enum_form_string", required = false) String enumFormString);
/** /**
* Fake endpoint to test group parameters (optional) * Fake endpoint to test group parameters (optional)

View File

@ -52,10 +52,13 @@ public interface PetApi {
@DELETE @DELETE
@Path("/pet/{petId}") @Path("/pet/{petId}")
@ApiOperation(value = "Deletes a pet", tags={ "pet" }) @ApiOperation(value = "Deletes a pet", tags={ "pet" })
@io.swagger.annotations.ApiImplicitParams({
@io.swagger.annotations.ApiImplicitParam(name = "api_key", value = "", dataType = "String", paramType = "header")
})
@ApiResponses(value = { @ApiResponses(value = {
@ApiResponse(code = 200, message = "successful operation"), @ApiResponse(code = 200, message = "successful operation"),
@ApiResponse(code = 400, message = "Invalid pet value") }) @ApiResponse(code = 400, message = "Invalid pet value") })
public void deletePet(@PathParam("petId") Long petId, @HeaderParam("api_key") String apiKey); public void deletePet(@PathParam("petId") Long petId);
/** /**
* Finds Pets by status * Finds Pets by status

View File

@ -31,9 +31,8 @@ public class AnotherFakeApiServiceImpl implements AnotherFakeApi {
*/ */
public Client call123testSpecialTags(Client body) { public Client call123testSpecialTags(Client body) {
// TODO: Implement... // TODO: Implement...
return null; return null;
} }
}
}

View File

@ -40,46 +40,46 @@ public class FakeApiServiceImpl implements FakeApi {
*/ */
public void createXmlItem(XmlItem xmlItem) { public void createXmlItem(XmlItem xmlItem) {
// TODO: Implement... // TODO: Implement...
} }
public Boolean fakeOuterBooleanSerialize(Boolean body) { public Boolean fakeOuterBooleanSerialize(Boolean body) {
// TODO: Implement... // TODO: Implement...
return null; return null;
} }
public OuterComposite fakeOuterCompositeSerialize(OuterComposite body) { public OuterComposite fakeOuterCompositeSerialize(OuterComposite body) {
// TODO: Implement... // TODO: Implement...
return null; return null;
} }
public BigDecimal fakeOuterNumberSerialize(BigDecimal body) { public BigDecimal fakeOuterNumberSerialize(BigDecimal body) {
// TODO: Implement... // TODO: Implement...
return null; return null;
} }
public String fakeOuterStringSerialize(String body) { public String fakeOuterStringSerialize(String body) {
// TODO: Implement... // TODO: Implement...
return null; return null;
} }
public void testBodyWithFileSchema(FileSchemaTestClass body) { public void testBodyWithFileSchema(FileSchemaTestClass body) {
// TODO: Implement... // TODO: Implement...
} }
public void testBodyWithQueryParams(String query, User body) { public void testBodyWithQueryParams(String query, User body) {
// TODO: Implement... // TODO: Implement...
} }
/** /**
* To test \&quot;client\&quot; model * To test \&quot;client\&quot; model
* *
@ -88,10 +88,10 @@ public class FakeApiServiceImpl implements FakeApi {
*/ */
public Client testClientModel(Client body) { public Client testClientModel(Client body) {
// TODO: Implement... // TODO: Implement...
return null; return null;
} }
/** /**
* Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 * Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
* *
@ -100,22 +100,22 @@ public class FakeApiServiceImpl implements FakeApi {
*/ */
public void testEndpointParameters(BigDecimal number, Double _double, String patternWithoutDelimiter, byte[] _byte, Integer integer, Integer int32, Long int64, Float _float, String string, Attachment binaryDetail, LocalDate date, Date dateTime, String password, String paramCallback) { public void testEndpointParameters(BigDecimal number, Double _double, String patternWithoutDelimiter, byte[] _byte, Integer integer, Integer int32, Long int64, Float _float, String string, Attachment binaryDetail, LocalDate date, Date dateTime, String password, String paramCallback) {
// TODO: Implement... // TODO: Implement...
} }
/** /**
* To test enum parameters * To test enum parameters
* *
* To test enum parameters * To test enum parameters
* *
*/ */
public void testEnumParameters(List<String> enumHeaderStringArray, String enumHeaderString, List<String> enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List<String> enumFormStringArray, String enumFormString) { public void testEnumParameters(List<String> enumHeaderStringArray, List<String> enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List<String> enumFormStringArray, String enumFormString) {
// TODO: Implement... // TODO: Implement...
} }
/** /**
* Fake endpoint to test group parameters (optional) * Fake endpoint to test group parameters (optional)
* *
@ -124,35 +124,34 @@ public class FakeApiServiceImpl implements FakeApi {
*/ */
public void testGroupParameters(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group, Integer stringGroup, Boolean booleanGroup, Long int64Group) { public void testGroupParameters(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group, Integer stringGroup, Boolean booleanGroup, Long int64Group) {
// TODO: Implement... // TODO: Implement...
} }
/** /**
* test inline additionalProperties * test inline additionalProperties
* *
*/ */
public void testInlineAdditionalProperties(Map<String, String> param) { public void testInlineAdditionalProperties(Map<String, String> param) {
// TODO: Implement... // TODO: Implement...
} }
/** /**
* test json serialization of form data * test json serialization of form data
* *
*/ */
public void testJsonFormData(String param, String param2) { public void testJsonFormData(String param, String param2) {
// TODO: Implement... // TODO: Implement...
} }
public void testQueryParameterCollectionFormat(List<String> pipe, List<String> ioutil, List<String> http, List<String> url, List<String> context) { public void testQueryParameterCollectionFormat(List<String> pipe, List<String> ioutil, List<String> http, List<String> url, List<String> context) {
// TODO: Implement... // TODO: Implement...
} }
}
}

View File

@ -31,9 +31,8 @@ public class FakeClassnameTags123ApiServiceImpl implements FakeClassnameTags123A
*/ */
public Client testClassname(Client body) { public Client testClassname(Client body) {
// TODO: Implement... // TODO: Implement...
return null; return null;
} }
}
}

View File

@ -32,20 +32,20 @@ public class PetApiServiceImpl implements PetApi {
*/ */
public void addPet(Pet body) { public void addPet(Pet body) {
// TODO: Implement... // TODO: Implement...
} }
/** /**
* Deletes a pet * Deletes a pet
* *
*/ */
public void deletePet(Long petId, String apiKey) { public void deletePet(Long petId) {
// TODO: Implement... // TODO: Implement...
} }
/** /**
* Finds Pets by status * Finds Pets by status
* *
@ -54,10 +54,10 @@ public class PetApiServiceImpl implements PetApi {
*/ */
public List<Pet> findPetsByStatus(List<String> status) { public List<Pet> findPetsByStatus(List<String> status) {
// TODO: Implement... // TODO: Implement...
return null; return null;
} }
/** /**
* Finds Pets by tags * Finds Pets by tags
* *
@ -66,10 +66,10 @@ public class PetApiServiceImpl implements PetApi {
*/ */
public Set<Pet> findPetsByTags(Set<String> tags) { public Set<Pet> findPetsByTags(Set<String> tags) {
// TODO: Implement... // TODO: Implement...
return null; return null;
} }
/** /**
* Find pet by ID * Find pet by ID
* *
@ -78,49 +78,48 @@ public class PetApiServiceImpl implements PetApi {
*/ */
public Pet getPetById(Long petId) { public Pet getPetById(Long petId) {
// TODO: Implement... // TODO: Implement...
return null; return null;
} }
/** /**
* Update an existing pet * Update an existing pet
* *
*/ */
public void updatePet(Pet body) { public void updatePet(Pet body) {
// TODO: Implement... // TODO: Implement...
} }
/** /**
* Updates a pet in the store with form data * Updates a pet in the store with form data
* *
*/ */
public void updatePetWithForm(Long petId, String name, String status) { public void updatePetWithForm(Long petId, String name, String status) {
// TODO: Implement... // TODO: Implement...
} }
/** /**
* uploads an image * uploads an image
* *
*/ */
public ModelApiResponse uploadFile(Long petId, String additionalMetadata, Attachment fileDetail) { public ModelApiResponse uploadFile(Long petId, String additionalMetadata, Attachment _fileDetail) {
// TODO: Implement... // TODO: Implement...
return null; return null;
} }
/** /**
* uploads an image (required) * uploads an image (required)
* *
*/ */
public ModelApiResponse uploadFileWithRequiredFile(Long petId, Attachment requiredFileDetail, String additionalMetadata) { public ModelApiResponse uploadFileWithRequiredFile(Long petId, Attachment requiredFileDetail, String additionalMetadata) {
// TODO: Implement... // TODO: Implement...
return null; return null;
} }
}
}

View File

@ -32,10 +32,10 @@ public class StoreApiServiceImpl implements StoreApi {
*/ */
public void deleteOrder(String orderId) { public void deleteOrder(String orderId) {
// TODO: Implement... // TODO: Implement...
} }
/** /**
* Returns pet inventories by status * Returns pet inventories by status
* *
@ -44,10 +44,10 @@ public class StoreApiServiceImpl implements StoreApi {
*/ */
public Map<String, Integer> getInventory() { public Map<String, Integer> getInventory() {
// TODO: Implement... // TODO: Implement...
return null; return null;
} }
/** /**
* Find purchase order by ID * Find purchase order by ID
* *
@ -56,19 +56,18 @@ public class StoreApiServiceImpl implements StoreApi {
*/ */
public Order getOrderById(Long orderId) { public Order getOrderById(Long orderId) {
// TODO: Implement... // TODO: Implement...
return null; return null;
} }
/** /**
* Place an order for a pet * Place an order for a pet
* *
*/ */
public Order placeOrder(Order body) { public Order placeOrder(Order body) {
// TODO: Implement... // TODO: Implement...
return null; return null;
} }
}
}

View File

@ -1,6 +1,7 @@
package org.openapitools.api.impl; package org.openapitools.api.impl;
import org.openapitools.api.*; import org.openapitools.api.*;
import java.util.Date;
import java.util.List; import java.util.List;
import org.openapitools.model.User; import org.openapitools.model.User;
@ -32,30 +33,30 @@ public class UserApiServiceImpl implements UserApi {
*/ */
public void createUser(User body) { public void createUser(User body) {
// TODO: Implement... // TODO: Implement...
} }
/** /**
* Creates list of users with given input array * Creates list of users with given input array
* *
*/ */
public void createUsersWithArrayInput(List<User> body) { public void createUsersWithArrayInput(List<User> body) {
// TODO: Implement... // TODO: Implement...
} }
/** /**
* Creates list of users with given input array * Creates list of users with given input array
* *
*/ */
public void createUsersWithListInput(List<User> body) { public void createUsersWithListInput(List<User> body) {
// TODO: Implement... // TODO: Implement...
} }
/** /**
* Delete user * Delete user
* *
@ -64,40 +65,40 @@ public class UserApiServiceImpl implements UserApi {
*/ */
public void deleteUser(String username) { public void deleteUser(String username) {
// TODO: Implement... // TODO: Implement...
} }
/** /**
* Get user by user name * Get user by user name
* *
*/ */
public User getUserByName(String username) { public User getUserByName(String username) {
// TODO: Implement... // TODO: Implement...
return null; return null;
} }
/** /**
* Logs user into the system * Logs user into the system
* *
*/ */
public String loginUser(String username, String password) { public String loginUser(String username, String password) {
// TODO: Implement... // TODO: Implement...
return null; return null;
} }
/** /**
* Logs out current logged in user session * Logs out current logged in user session
* *
*/ */
public void logoutUser() { public void logoutUser() {
// TODO: Implement... // TODO: Implement...
} }
/** /**
* Updated user * Updated user
* *
@ -106,9 +107,8 @@ public class UserApiServiceImpl implements UserApi {
*/ */
public void updateUser(String username, User body) { public void updateUser(String username, User body) {
// TODO: Implement... // TODO: Implement...
} }
}
}

View File

@ -8,18 +8,6 @@
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech * https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/ */
@ -51,23 +39,23 @@ import java.util.Map;
* *
* <p>This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * <p>This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* API tests for AnotherFakeApi * API tests for AnotherFakeApi
*/ */
public class AnotherFakeApiTest { public class AnotherFakeApiTest {
private AnotherFakeApi api; private AnotherFakeApi api;
@Before @Before
public void setup() { public void setup() {
JacksonJsonProvider provider = new JacksonJsonProvider(); JacksonJsonProvider provider = new JacksonJsonProvider();
List providers = new ArrayList(); List providers = new ArrayList();
providers.add(provider); providers.add(provider);
api = JAXRSClientFactory.create("http://petstore.swagger.io:80/v2", AnotherFakeApi.class, providers); api = JAXRSClientFactory.create("http://petstore.swagger.io:80/v2", AnotherFakeApi.class, providers);
org.apache.cxf.jaxrs.client.Client client = WebClient.client(api); org.apache.cxf.jaxrs.client.Client client = WebClient.client(api);
ClientConfiguration config = WebClient.getConfig(client); ClientConfiguration config = WebClient.getConfig(client);
} }
@ -85,8 +73,8 @@ public class AnotherFakeApiTest {
//Client response = api.call123testSpecialTags(body); //Client response = api.call123testSpecialTags(body);
//assertNotNull(response); //assertNotNull(response);
// TODO: test validations // TODO: test validations
} }
} }

View File

@ -8,18 +8,6 @@
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech * https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/ */
@ -60,23 +48,23 @@ import java.util.Map;
* *
* <p>This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * <p>This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* API tests for FakeApi * API tests for FakeApi
*/ */
public class FakeApiTest { public class FakeApiTest {
private FakeApi api; private FakeApi api;
@Before @Before
public void setup() { public void setup() {
JacksonJsonProvider provider = new JacksonJsonProvider(); JacksonJsonProvider provider = new JacksonJsonProvider();
List providers = new ArrayList(); List providers = new ArrayList();
providers.add(provider); providers.add(provider);
api = JAXRSClientFactory.create("http://petstore.swagger.io:80/v2", FakeApi.class, providers); api = JAXRSClientFactory.create("http://petstore.swagger.io:80/v2", FakeApi.class, providers);
org.apache.cxf.jaxrs.client.Client client = WebClient.client(api); org.apache.cxf.jaxrs.client.Client client = WebClient.client(api);
ClientConfiguration config = WebClient.getConfig(client); ClientConfiguration config = WebClient.getConfig(client);
} }
@ -94,8 +82,8 @@ public class FakeApiTest {
//api.createXmlItem(xmlItem); //api.createXmlItem(xmlItem);
// TODO: test validations // TODO: test validations
} }
/** /**
@ -108,8 +96,8 @@ public class FakeApiTest {
//Boolean response = api.fakeOuterBooleanSerialize(body); //Boolean response = api.fakeOuterBooleanSerialize(body);
//assertNotNull(response); //assertNotNull(response);
// TODO: test validations // TODO: test validations
} }
/** /**
@ -122,8 +110,8 @@ public class FakeApiTest {
//OuterComposite response = api.fakeOuterCompositeSerialize(body); //OuterComposite response = api.fakeOuterCompositeSerialize(body);
//assertNotNull(response); //assertNotNull(response);
// TODO: test validations // TODO: test validations
} }
/** /**
@ -136,8 +124,8 @@ public class FakeApiTest {
//BigDecimal response = api.fakeOuterNumberSerialize(body); //BigDecimal response = api.fakeOuterNumberSerialize(body);
//assertNotNull(response); //assertNotNull(response);
// TODO: test validations // TODO: test validations
} }
/** /**
@ -150,8 +138,8 @@ public class FakeApiTest {
//String response = api.fakeOuterStringSerialize(body); //String response = api.fakeOuterStringSerialize(body);
//assertNotNull(response); //assertNotNull(response);
// TODO: test validations // TODO: test validations
} }
/** /**
@ -164,8 +152,8 @@ public class FakeApiTest {
//api.testBodyWithFileSchema(body); //api.testBodyWithFileSchema(body);
// TODO: test validations // TODO: test validations
} }
/** /**
@ -179,8 +167,8 @@ public class FakeApiTest {
//api.testBodyWithQueryParams(query, body); //api.testBodyWithQueryParams(query, body);
// TODO: test validations // TODO: test validations
} }
/** /**
@ -197,8 +185,8 @@ public class FakeApiTest {
//Client response = api.testClientModel(body); //Client response = api.testClientModel(body);
//assertNotNull(response); //assertNotNull(response);
// TODO: test validations // TODO: test validations
} }
/** /**
@ -228,8 +216,8 @@ public class FakeApiTest {
//api.testEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback); //api.testEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback);
// TODO: test validations // TODO: test validations
} }
/** /**
@ -243,18 +231,17 @@ public class FakeApiTest {
@Test @Test
public void testEnumParametersTest() { public void testEnumParametersTest() {
List<String> enumHeaderStringArray = null; List<String> enumHeaderStringArray = null;
String enumHeaderString = null;
List<String> enumQueryStringArray = null; List<String> enumQueryStringArray = null;
String enumQueryString = null; String enumQueryString = null;
Integer enumQueryInteger = null; Integer enumQueryInteger = null;
Double enumQueryDouble = null; Double enumQueryDouble = null;
List<String> enumFormStringArray = null; List<String> enumFormStringArray = null;
String enumFormString = null; String enumFormString = null;
//api.testEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString); //api.testEnumParameters(enumHeaderStringArray, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString);
// TODO: test validations // TODO: test validations
} }
/** /**
@ -276,8 +263,8 @@ public class FakeApiTest {
//api.testGroupParameters(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group); //api.testGroupParameters(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group);
// TODO: test validations // TODO: test validations
} }
/** /**
@ -292,8 +279,8 @@ public class FakeApiTest {
//api.testInlineAdditionalProperties(param); //api.testInlineAdditionalProperties(param);
// TODO: test validations // TODO: test validations
} }
/** /**
@ -309,8 +296,8 @@ public class FakeApiTest {
//api.testJsonFormData(param, param2); //api.testJsonFormData(param, param2);
// TODO: test validations // TODO: test validations
} }
/** /**
@ -327,8 +314,8 @@ public class FakeApiTest {
//api.testQueryParameterCollectionFormat(pipe, ioutil, http, url, context); //api.testQueryParameterCollectionFormat(pipe, ioutil, http, url, context);
// TODO: test validations // TODO: test validations
} }
} }

View File

@ -8,18 +8,6 @@
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech * https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/ */
@ -51,23 +39,23 @@ import java.util.Map;
* *
* <p>This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * <p>This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* API tests for FakeClassnameTags123Api * API tests for FakeClassnameTags123Api
*/ */
public class FakeClassnameTags123ApiTest { public class FakeClassnameTags123ApiTest {
private FakeClassnameTags123Api api; private FakeClassnameTags123Api api;
@Before @Before
public void setup() { public void setup() {
JacksonJsonProvider provider = new JacksonJsonProvider(); JacksonJsonProvider provider = new JacksonJsonProvider();
List providers = new ArrayList(); List providers = new ArrayList();
providers.add(provider); providers.add(provider);
api = JAXRSClientFactory.create("http://petstore.swagger.io:80/v2", FakeClassnameTags123Api.class, providers); api = JAXRSClientFactory.create("http://petstore.swagger.io:80/v2", FakeClassnameTags123Api.class, providers);
org.apache.cxf.jaxrs.client.Client client = WebClient.client(api); org.apache.cxf.jaxrs.client.Client client = WebClient.client(api);
ClientConfiguration config = WebClient.getConfig(client); ClientConfiguration config = WebClient.getConfig(client);
} }
@ -85,8 +73,8 @@ public class FakeClassnameTags123ApiTest {
//Client response = api.testClassname(body); //Client response = api.testClassname(body);
//assertNotNull(response); //assertNotNull(response);
// TODO: test validations // TODO: test validations
} }
} }

View File

@ -8,18 +8,6 @@
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech * https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/ */
@ -54,23 +42,23 @@ import java.util.Map;
* *
* <p>This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * <p>This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* API tests for PetApi * API tests for PetApi
*/ */
public class PetApiTest { public class PetApiTest {
private PetApi api; private PetApi api;
@Before @Before
public void setup() { public void setup() {
JacksonJsonProvider provider = new JacksonJsonProvider(); JacksonJsonProvider provider = new JacksonJsonProvider();
List providers = new ArrayList(); List providers = new ArrayList();
providers.add(provider); providers.add(provider);
api = JAXRSClientFactory.create("http://petstore.swagger.io:80/v2", PetApi.class, providers); api = JAXRSClientFactory.create("http://petstore.swagger.io:80/v2", PetApi.class, providers);
org.apache.cxf.jaxrs.client.Client client = WebClient.client(api); org.apache.cxf.jaxrs.client.Client client = WebClient.client(api);
ClientConfiguration config = WebClient.getConfig(client); ClientConfiguration config = WebClient.getConfig(client);
} }
@ -86,8 +74,8 @@ public class PetApiTest {
//api.addPet(body); //api.addPet(body);
// TODO: test validations // TODO: test validations
} }
/** /**
@ -99,12 +87,11 @@ public class PetApiTest {
@Test @Test
public void deletePetTest() { public void deletePetTest() {
Long petId = null; Long petId = null;
String apiKey = null; //api.deletePet(petId);
//api.deletePet(petId, apiKey);
// TODO: test validations // TODO: test validations
} }
/** /**
@ -121,8 +108,8 @@ public class PetApiTest {
//List<Pet> response = api.findPetsByStatus(status); //List<Pet> response = api.findPetsByStatus(status);
//assertNotNull(response); //assertNotNull(response);
// TODO: test validations // TODO: test validations
} }
/** /**
@ -139,8 +126,8 @@ public class PetApiTest {
//Set<Pet> response = api.findPetsByTags(tags); //Set<Pet> response = api.findPetsByTags(tags);
//assertNotNull(response); //assertNotNull(response);
// TODO: test validations // TODO: test validations
} }
/** /**
@ -157,8 +144,8 @@ public class PetApiTest {
//Pet response = api.getPetById(petId); //Pet response = api.getPetById(petId);
//assertNotNull(response); //assertNotNull(response);
// TODO: test validations // TODO: test validations
} }
/** /**
@ -173,8 +160,8 @@ public class PetApiTest {
//api.updatePet(body); //api.updatePet(body);
// TODO: test validations // TODO: test validations
} }
/** /**
@ -191,8 +178,8 @@ public class PetApiTest {
//api.updatePetWithForm(petId, name, status); //api.updatePetWithForm(petId, name, status);
// TODO: test validations // TODO: test validations
} }
/** /**
@ -205,12 +192,12 @@ public class PetApiTest {
public void uploadFileTest() { public void uploadFileTest() {
Long petId = null; Long petId = null;
String additionalMetadata = null; String additionalMetadata = null;
org.apache.cxf.jaxrs.ext.multipart.Attachment file = null; org.apache.cxf.jaxrs.ext.multipart.Attachment _file = null;
//ModelApiResponse response = api.uploadFile(petId, additionalMetadata, file); //ModelApiResponse response = api.uploadFile(petId, additionalMetadata, _file);
//assertNotNull(response); //assertNotNull(response);
// TODO: test validations // TODO: test validations
} }
/** /**
@ -227,8 +214,8 @@ public class PetApiTest {
//ModelApiResponse response = api.uploadFileWithRequiredFile(petId, requiredFile, additionalMetadata); //ModelApiResponse response = api.uploadFileWithRequiredFile(petId, requiredFile, additionalMetadata);
//assertNotNull(response); //assertNotNull(response);
// TODO: test validations // TODO: test validations
} }
} }

View File

@ -8,18 +8,6 @@
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech * https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/ */
@ -52,23 +40,23 @@ import java.util.Map;
* *
* <p>This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * <p>This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* API tests for StoreApi * API tests for StoreApi
*/ */
public class StoreApiTest { public class StoreApiTest {
private StoreApi api; private StoreApi api;
@Before @Before
public void setup() { public void setup() {
JacksonJsonProvider provider = new JacksonJsonProvider(); JacksonJsonProvider provider = new JacksonJsonProvider();
List providers = new ArrayList(); List providers = new ArrayList();
providers.add(provider); providers.add(provider);
api = JAXRSClientFactory.create("http://petstore.swagger.io:80/v2", StoreApi.class, providers); api = JAXRSClientFactory.create("http://petstore.swagger.io:80/v2", StoreApi.class, providers);
org.apache.cxf.jaxrs.client.Client client = WebClient.client(api); org.apache.cxf.jaxrs.client.Client client = WebClient.client(api);
ClientConfiguration config = WebClient.getConfig(client); ClientConfiguration config = WebClient.getConfig(client);
} }
@ -86,8 +74,8 @@ public class StoreApiTest {
//api.deleteOrder(orderId); //api.deleteOrder(orderId);
// TODO: test validations // TODO: test validations
} }
/** /**
@ -103,8 +91,8 @@ public class StoreApiTest {
//Map<String, Integer> response = api.getInventory(); //Map<String, Integer> response = api.getInventory();
//assertNotNull(response); //assertNotNull(response);
// TODO: test validations // TODO: test validations
} }
/** /**
@ -121,8 +109,8 @@ public class StoreApiTest {
//Order response = api.getOrderById(orderId); //Order response = api.getOrderById(orderId);
//assertNotNull(response); //assertNotNull(response);
// TODO: test validations // TODO: test validations
} }
/** /**
@ -137,8 +125,8 @@ public class StoreApiTest {
//Order response = api.placeOrder(body); //Order response = api.placeOrder(body);
//assertNotNull(response); //assertNotNull(response);
// TODO: test validations // TODO: test validations
} }
} }

View File

@ -8,23 +8,12 @@
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech * https://openapi-generator.tech
* Do not edit the class manually. * Do not edit the class manually.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/ */
package org.openapitools.api; package org.openapitools.api;
import java.util.Date;
import java.util.List; import java.util.List;
import org.openapitools.model.User; import org.openapitools.model.User;
import org.junit.Test; import org.junit.Test;
@ -52,23 +41,23 @@ import java.util.Map;
* *
* <p>This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * <p>This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* API tests for UserApi * API tests for UserApi
*/ */
public class UserApiTest { public class UserApiTest {
private UserApi api; private UserApi api;
@Before @Before
public void setup() { public void setup() {
JacksonJsonProvider provider = new JacksonJsonProvider(); JacksonJsonProvider provider = new JacksonJsonProvider();
List providers = new ArrayList(); List providers = new ArrayList();
providers.add(provider); providers.add(provider);
api = JAXRSClientFactory.create("http://petstore.swagger.io:80/v2", UserApi.class, providers); api = JAXRSClientFactory.create("http://petstore.swagger.io:80/v2", UserApi.class, providers);
org.apache.cxf.jaxrs.client.Client client = WebClient.client(api); org.apache.cxf.jaxrs.client.Client client = WebClient.client(api);
ClientConfiguration config = WebClient.getConfig(client); ClientConfiguration config = WebClient.getConfig(client);
} }
@ -86,8 +75,8 @@ public class UserApiTest {
//api.createUser(body); //api.createUser(body);
// TODO: test validations // TODO: test validations
} }
/** /**
@ -102,8 +91,8 @@ public class UserApiTest {
//api.createUsersWithArrayInput(body); //api.createUsersWithArrayInput(body);
// TODO: test validations // TODO: test validations
} }
/** /**
@ -118,8 +107,8 @@ public class UserApiTest {
//api.createUsersWithListInput(body); //api.createUsersWithListInput(body);
// TODO: test validations // TODO: test validations
} }
/** /**
@ -136,8 +125,8 @@ public class UserApiTest {
//api.deleteUser(username); //api.deleteUser(username);
// TODO: test validations // TODO: test validations
} }
/** /**
@ -152,8 +141,8 @@ public class UserApiTest {
//User response = api.getUserByName(username); //User response = api.getUserByName(username);
//assertNotNull(response); //assertNotNull(response);
// TODO: test validations // TODO: test validations
} }
/** /**
@ -169,8 +158,8 @@ public class UserApiTest {
//String response = api.loginUser(username, password); //String response = api.loginUser(username, password);
//assertNotNull(response); //assertNotNull(response);
// TODO: test validations // TODO: test validations
} }
/** /**
@ -184,8 +173,8 @@ public class UserApiTest {
//api.logoutUser(); //api.logoutUser();
// TODO: test validations // TODO: test validations
} }
/** /**
@ -203,8 +192,8 @@ public class UserApiTest {
//api.updateUser(username, body); //api.updateUser(username, body);
// TODO: test validations // TODO: test validations
} }
} }

View File

@ -61,11 +61,14 @@ public class PetApi {
@io.swagger.annotations.AuthorizationScope(scope = "read:pets", description = "read your pets") @io.swagger.annotations.AuthorizationScope(scope = "read:pets", description = "read your pets")
}) })
}, tags={ "pet", }) }, tags={ "pet", })
@io.swagger.annotations.ApiImplicitParams({
@io.swagger.annotations.ApiImplicitParam(name = "api_key", value = "", dataType = "String", paramType = "header")
})
@io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponses(value = {
@io.swagger.annotations.ApiResponse(code = 400, message = "Invalid pet value", response = Void.class) }) @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid pet value", response = Void.class) })
public Response deletePet( @PathParam("petId") Long petId, @ApiParam(value = "" ) @HeaderParam("api_key") String apiKey,@Context SecurityContext securityContext) public Response deletePet( @PathParam("petId") Long petId,@Context SecurityContext securityContext)
throws NotFoundException { throws NotFoundException {
return service.deletePet(petId,apiKey,securityContext); return service.deletePet(petId,securityContext);
} }
@GET @GET
@Path("/findByStatus") @Path("/findByStatus")

View File

@ -21,7 +21,7 @@ import javax.ws.rs.core.SecurityContext;
public interface PetApiService { public interface PetApiService {
Response addPet(Pet body,SecurityContext securityContext) Response addPet(Pet body,SecurityContext securityContext)
throws NotFoundException; throws NotFoundException;
Response deletePet(Long petId,String apiKey,SecurityContext securityContext) Response deletePet(Long petId,SecurityContext securityContext)
throws NotFoundException; throws NotFoundException;
Response findPetsByStatus(List<String> status,SecurityContext securityContext) Response findPetsByStatus(List<String> status,SecurityContext securityContext)
throws NotFoundException; throws NotFoundException;

View File

@ -26,7 +26,7 @@ public class PetApiServiceImpl implements PetApiService {
// do some magic! // do some magic!
return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build();
} }
public Response deletePet(Long petId,String apiKey,SecurityContext securityContext) public Response deletePet(Long petId,SecurityContext securityContext)
throws NotFoundException { throws NotFoundException {
// do some magic! // do some magic!
return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build();

View File

@ -52,9 +52,12 @@ public interface PetApi {
@io.swagger.annotations.AuthorizationScope(scope = "read:pets", description = "read your pets") @io.swagger.annotations.AuthorizationScope(scope = "read:pets", description = "read your pets")
}) })
}, tags={ "pet", }) }, tags={ "pet", })
@io.swagger.annotations.ApiImplicitParams({
@io.swagger.annotations.ApiImplicitParam(name = "api_key", value = "", dataType = "String", paramType = "header")
})
@io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponses(value = {
@io.swagger.annotations.ApiResponse(code = 400, message = "Invalid pet value", response = Void.class) }) @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid pet value", response = Void.class) })
public Response deletePet( @PathParam("petId") Long petId, @ApiParam(value = "" ) @HeaderParam("api_key") String apiKey,@Context SecurityContext securityContext); public Response deletePet( @PathParam("petId") Long petId,@Context SecurityContext securityContext);
@GET @GET
@Path("/findByStatus") @Path("/findByStatus")

View File

@ -22,7 +22,7 @@ public class PetApiServiceImpl implements PetApi {
// do some magic! // do some magic!
return Response.ok().build(); return Response.ok().build();
} }
public Response deletePet(Long petId,String apiKey,SecurityContext securityContext) { public Response deletePet(Long petId,SecurityContext securityContext) {
// do some magic! // do some magic!
return Response.ok().build(); return Response.ok().build();
} }

View File

@ -105,10 +105,13 @@ import javax.validation.Valid;
@GET @GET
@Consumes({ "application/x-www-form-urlencoded" }) @Consumes({ "application/x-www-form-urlencoded" })
@ApiOperation(value = "To test enum parameters", notes = "To test enum parameters", tags={ "fake" }) @ApiOperation(value = "To test enum parameters", notes = "To test enum parameters", tags={ "fake" })
@io.swagger.annotations.ApiImplicitParams({
@io.swagger.annotations.ApiImplicitParam(name = "enum_header_string", value = "Header parameter enum test (string)", dataType = "String", paramType = "header")
})
@ApiResponses(value = { @ApiResponses(value = {
@ApiResponse(code = 400, message = "Invalid request", response = Void.class), @ApiResponse(code = 400, message = "Invalid request", response = Void.class),
@ApiResponse(code = 404, message = "Not found", response = Void.class) }) @ApiResponse(code = 404, message = "Not found", response = Void.class) })
void testEnumParameters(@HeaderParam("enum_header_string_array") @ApiParam("Header parameter enum test (string array)") List<String> enumHeaderStringArray,@HeaderParam("enum_header_string") @DefaultValue("-efg") @ApiParam("Header parameter enum test (string)") String enumHeaderString,@QueryParam("enum_query_string_array") @ApiParam("Query parameter enum test (string array)") List<String> enumQueryStringArray,@QueryParam("enum_query_string") @DefaultValue("-efg") @ApiParam("Query parameter enum test (string)") String enumQueryString,@QueryParam("enum_query_integer") @ApiParam("Query parameter enum test (double)") Integer enumQueryInteger,@QueryParam("enum_query_double") @ApiParam("Query parameter enum test (double)") Double enumQueryDouble,@FormParam(value = "enum_form_string_array") List<String> enumFormStringArray,@FormParam(value = "enum_form_string") String enumFormString); void testEnumParameters(@HeaderParam("enum_header_string_array") @ApiParam("Header parameter enum test (string array)") List<String> enumHeaderStringArray,@QueryParam("enum_query_string_array") @ApiParam("Query parameter enum test (string array)") List<String> enumQueryStringArray,@QueryParam("enum_query_string") @DefaultValue("-efg") @ApiParam("Query parameter enum test (string)") String enumQueryString,@QueryParam("enum_query_integer") @ApiParam("Query parameter enum test (double)") Integer enumQueryInteger,@QueryParam("enum_query_double") @ApiParam("Query parameter enum test (double)") Double enumQueryDouble,@FormParam(value = "enum_form_string_array") List<String> enumFormStringArray,@FormParam(value = "enum_form_string") String enumFormString);
@DELETE @DELETE
@ApiOperation(value = "Fake endpoint to test group parameters (optional)", notes = "Fake endpoint to test group parameters (optional)", tags={ "fake" }) @ApiOperation(value = "Fake endpoint to test group parameters (optional)", notes = "Fake endpoint to test group parameters (optional)", tags={ "fake" })

View File

@ -1,29 +0,0 @@
package org.openapitools.api;
import org.openapitools.model.Client;
import javax.ws.rs.*;
import javax.ws.rs.core.Response;
import io.swagger.annotations.*;
import java.io.InputStream;
import java.util.Map;
import java.util.List;
import javax.validation.constraints.*;
import javax.validation.Valid;
@Path("/FakeClassnameTags123")
@Api(description = "the FakeClassnameTags123 API")
public interface FakeClassnameTags123Api {
@PATCH
@Consumes({ "application/json" })
@Produces({ "application/json" })
@ApiOperation(value = "To test class name in snake case", notes = "To test class name in snake case", authorizations = {
@Authorization(value = "api_key_query")
}, tags={ "fake_classname_tags 123#$%^" })
@ApiResponses(value = {
@ApiResponse(code = 200, message = "successful operation", response = Client.class) })
Client testClassname(@Valid Client body);
}

View File

@ -39,10 +39,13 @@ import javax.validation.Valid;
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
@AuthorizationScope(scope = "read:pets", description = "read your pets") }) @AuthorizationScope(scope = "read:pets", description = "read your pets") })
}, tags={ "pet" }) }, tags={ "pet" })
@io.swagger.annotations.ApiImplicitParams({
@io.swagger.annotations.ApiImplicitParam(name = "api_key", value = "", dataType = "String", paramType = "header")
})
@ApiResponses(value = { @ApiResponses(value = {
@ApiResponse(code = 200, message = "successful operation", response = Void.class), @ApiResponse(code = 200, message = "successful operation", response = Void.class),
@ApiResponse(code = 400, message = "Invalid pet value", response = Void.class) }) @ApiResponse(code = 400, message = "Invalid pet value", response = Void.class) })
void deletePet(@PathParam("petId") @ApiParam("Pet id to delete") Long petId,@HeaderParam("api_key") String apiKey); void deletePet(@PathParam("petId") @ApiParam("Pet id to delete") Long petId);
@GET @GET
@Path("/findByStatus") @Path("/findByStatus")

View File

@ -1,59 +0,0 @@
package org.openapitools.model;
import java.util.ArrayList;
import java.util.List;
import org.openapitools.model.Animal;
import java.io.Serializable;
import javax.validation.constraints.*;
import javax.validation.Valid;
import io.swagger.annotations.*;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
public class AnimalFarm extends ArrayList<Animal> implements Serializable {
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
AnimalFarm animalFarm = (AnimalFarm) o;
return true;
}
@Override
public int hashCode() {
return Objects.hash();
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class AnimalFarm {\n");
sb.append(" ").append(toIndentedString(super.toString())).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}

View File

@ -1,58 +0,0 @@
package org.openapitools.model;
import java.util.HashMap;
import java.util.Map;
import java.io.Serializable;
import javax.validation.constraints.*;
import javax.validation.Valid;
import io.swagger.annotations.*;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
public class StringBooleanMap extends HashMap<String, Boolean> implements Serializable {
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
StringBooleanMap stringBooleanMap = (StringBooleanMap) o;
return true;
}
@Override
public int hashCode() {
return Objects.hash();
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class StringBooleanMap {\n");
sb.append(" ").append(toIndentedString(super.toString())).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}

View File

@ -132,11 +132,14 @@ import javax.validation.Valid;
@GET @GET
@Consumes({ "application/x-www-form-urlencoded" }) @Consumes({ "application/x-www-form-urlencoded" })
@ApiOperation(value = "To test enum parameters", notes = "To test enum parameters", response = Void.class, tags={ "fake" }) @ApiOperation(value = "To test enum parameters", notes = "To test enum parameters", response = Void.class, tags={ "fake" })
@io.swagger.annotations.ApiImplicitParams({
@io.swagger.annotations.ApiImplicitParam(name = "enum_header_string", value = "Header parameter enum test (string)", dataType = "String", paramType = "header")
})
@ApiResponses(value = { @ApiResponses(value = {
@ApiResponse(code = 400, message = "Invalid request", response = Void.class), @ApiResponse(code = 400, message = "Invalid request", response = Void.class),
@ApiResponse(code = 404, message = "Not found", response = Void.class) @ApiResponse(code = 404, message = "Not found", response = Void.class)
}) })
public Response testEnumParameters(@HeaderParam("enum_header_string_array") @ApiParam("Header parameter enum test (string array)") List<String> enumHeaderStringArray,@HeaderParam("enum_header_string") @DefaultValue("-efg") @ApiParam("Header parameter enum test (string)") String enumHeaderString,@QueryParam("enum_query_string_array") @ApiParam("Query parameter enum test (string array)") List<String> enumQueryStringArray,@QueryParam("enum_query_string") @DefaultValue("-efg") @ApiParam("Query parameter enum test (string)") String enumQueryString,@QueryParam("enum_query_integer") @ApiParam("Query parameter enum test (double)") Integer enumQueryInteger,@QueryParam("enum_query_double") @ApiParam("Query parameter enum test (double)") Double enumQueryDouble,@FormParam(value = "enum_form_string_array") List<String> enumFormStringArray,@FormParam(value = "enum_form_string") String enumFormString) { public Response testEnumParameters(@HeaderParam("enum_header_string_array") @ApiParam("Header parameter enum test (string array)") List<String> enumHeaderStringArray,@QueryParam("enum_query_string_array") @ApiParam("Query parameter enum test (string array)") List<String> enumQueryStringArray,@QueryParam("enum_query_string") @DefaultValue("-efg") @ApiParam("Query parameter enum test (string)") String enumQueryString,@QueryParam("enum_query_integer") @ApiParam("Query parameter enum test (double)") Integer enumQueryInteger,@QueryParam("enum_query_double") @ApiParam("Query parameter enum test (double)") Double enumQueryDouble,@FormParam(value = "enum_form_string_array") List<String> enumFormStringArray,@FormParam(value = "enum_form_string") String enumFormString) {
return Response.ok().entity("magic!").build(); return Response.ok().entity("magic!").build();
} }

View File

@ -42,11 +42,14 @@ import javax.validation.Valid;
@AuthorizationScope(scope = "write:pets", description = "modify pets in your account"), @AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
@AuthorizationScope(scope = "read:pets", description = "read your pets") }) @AuthorizationScope(scope = "read:pets", description = "read your pets") })
}, tags={ "pet" }) }, tags={ "pet" })
@io.swagger.annotations.ApiImplicitParams({
@io.swagger.annotations.ApiImplicitParam(name = "api_key", value = "", dataType = "String", paramType = "header")
})
@ApiResponses(value = { @ApiResponses(value = {
@ApiResponse(code = 200, message = "successful operation", response = Void.class), @ApiResponse(code = 200, message = "successful operation", response = Void.class),
@ApiResponse(code = 400, message = "Invalid pet value", response = Void.class) @ApiResponse(code = 400, message = "Invalid pet value", response = Void.class)
}) })
public Response deletePet(@PathParam("petId") @ApiParam("Pet id to delete") Long petId,@HeaderParam("api_key") String apiKey) { public Response deletePet(@PathParam("petId") @ApiParam("Pet id to delete") Long petId) {
return Response.ok().entity("magic!").build(); return Response.ok().entity("magic!").build();
} }

View File

@ -48,8 +48,6 @@ public interface AnotherFakeApi {
@ApiResponses({ @ApiResponses({
@ApiResponse(code = 200, message = "successful operation", response = Client.class) @ApiResponse(code = 200, message = "successful operation", response = Client.class)
}) })
@ApiImplicitParams({
})
@RequestMapping( @RequestMapping(
method = RequestMethod.PATCH, method = RequestMethod.PATCH,
value = "/another-fake/dummy", value = "/another-fake/dummy",

View File

@ -57,8 +57,6 @@ public interface FakeApi {
@ApiResponses({ @ApiResponses({
@ApiResponse(code = 200, message = "successful operation") @ApiResponse(code = 200, message = "successful operation")
}) })
@ApiImplicitParams({
})
@RequestMapping( @RequestMapping(
method = RequestMethod.POST, method = RequestMethod.POST,
value = "/fake/create_xml_item", value = "/fake/create_xml_item",
@ -89,8 +87,6 @@ public interface FakeApi {
@ApiResponses({ @ApiResponses({
@ApiResponse(code = 200, message = "Output boolean", response = Boolean.class) @ApiResponse(code = 200, message = "Output boolean", response = Boolean.class)
}) })
@ApiImplicitParams({
})
@RequestMapping( @RequestMapping(
method = RequestMethod.POST, method = RequestMethod.POST,
value = "/fake/outer/boolean", value = "/fake/outer/boolean",
@ -121,8 +117,6 @@ public interface FakeApi {
@ApiResponses({ @ApiResponses({
@ApiResponse(code = 200, message = "Output composite", response = OuterComposite.class) @ApiResponse(code = 200, message = "Output composite", response = OuterComposite.class)
}) })
@ApiImplicitParams({
})
@RequestMapping( @RequestMapping(
method = RequestMethod.POST, method = RequestMethod.POST,
value = "/fake/outer/composite", value = "/fake/outer/composite",
@ -162,8 +156,6 @@ public interface FakeApi {
@ApiResponses({ @ApiResponses({
@ApiResponse(code = 200, message = "Output number", response = BigDecimal.class) @ApiResponse(code = 200, message = "Output number", response = BigDecimal.class)
}) })
@ApiImplicitParams({
})
@RequestMapping( @RequestMapping(
method = RequestMethod.POST, method = RequestMethod.POST,
value = "/fake/outer/number", value = "/fake/outer/number",
@ -194,8 +186,6 @@ public interface FakeApi {
@ApiResponses({ @ApiResponses({
@ApiResponse(code = 200, message = "Output string", response = String.class) @ApiResponse(code = 200, message = "Output string", response = String.class)
}) })
@ApiImplicitParams({
})
@RequestMapping( @RequestMapping(
method = RequestMethod.POST, method = RequestMethod.POST,
value = "/fake/outer/string", value = "/fake/outer/string",
@ -225,8 +215,6 @@ public interface FakeApi {
@ApiResponses({ @ApiResponses({
@ApiResponse(code = 200, message = "Success") @ApiResponse(code = 200, message = "Success")
}) })
@ApiImplicitParams({
})
@RequestMapping( @RequestMapping(
method = RequestMethod.PUT, method = RequestMethod.PUT,
value = "/fake/body-with-file-schema", value = "/fake/body-with-file-schema",
@ -256,8 +244,6 @@ public interface FakeApi {
@ApiResponses({ @ApiResponses({
@ApiResponse(code = 200, message = "Success") @ApiResponse(code = 200, message = "Success")
}) })
@ApiImplicitParams({
})
@RequestMapping( @RequestMapping(
method = RequestMethod.PUT, method = RequestMethod.PUT,
value = "/fake/body-with-query-params", value = "/fake/body-with-query-params",
@ -289,8 +275,6 @@ public interface FakeApi {
@ApiResponses({ @ApiResponses({
@ApiResponse(code = 200, message = "successful operation", response = Client.class) @ApiResponse(code = 200, message = "successful operation", response = Client.class)
}) })
@ApiImplicitParams({
})
@RequestMapping( @RequestMapping(
method = RequestMethod.PATCH, method = RequestMethod.PATCH,
value = "/fake", value = "/fake",
@ -348,8 +332,6 @@ public interface FakeApi {
@ApiResponse(code = 400, message = "Invalid username supplied"), @ApiResponse(code = 400, message = "Invalid username supplied"),
@ApiResponse(code = 404, message = "User not found") @ApiResponse(code = 404, message = "User not found")
}) })
@ApiImplicitParams({
})
@RequestMapping( @RequestMapping(
method = RequestMethod.POST, method = RequestMethod.POST,
value = "/fake", value = "/fake",
@ -400,8 +382,8 @@ public interface FakeApi {
@ApiResponse(code = 404, message = "Not found") @ApiResponse(code = 404, message = "Not found")
}) })
@ApiImplicitParams({ @ApiImplicitParams({
@ApiImplicitParam(name = "enumHeaderStringArray", value = "Header parameter enum test (string array)", dataType = "List<String>", paramType = "header"), @ApiImplicitParam(name = "enum_header_string_array", value = "Header parameter enum test (string array)", dataType = "List<String>", paramType = "header"),
@ApiImplicitParam(name = "enumHeaderString", value = "Header parameter enum test (string)", dataType = "String", paramType = "header") @ApiImplicitParam(name = "enum_header_string", value = "Header parameter enum test (string)", dataType = "String", paramType = "header")
}) })
@RequestMapping( @RequestMapping(
method = RequestMethod.GET, method = RequestMethod.GET,
@ -441,8 +423,8 @@ public interface FakeApi {
@ApiResponse(code = 400, message = "Someting wrong") @ApiResponse(code = 400, message = "Someting wrong")
}) })
@ApiImplicitParams({ @ApiImplicitParams({
@ApiImplicitParam(name = "requiredBooleanGroup", value = "Required Boolean in group parameters", required = true, dataType = "Boolean", paramType = "header"), @ApiImplicitParam(name = "required_boolean_group", value = "Required Boolean in group parameters", required = true, dataType = "Boolean", paramType = "header"),
@ApiImplicitParam(name = "booleanGroup", value = "Boolean in group parameters", dataType = "Boolean", paramType = "header") @ApiImplicitParam(name = "boolean_group", value = "Boolean in group parameters", dataType = "Boolean", paramType = "header")
}) })
@RequestMapping( @RequestMapping(
method = RequestMethod.DELETE, method = RequestMethod.DELETE,
@ -474,8 +456,6 @@ public interface FakeApi {
@ApiResponses({ @ApiResponses({
@ApiResponse(code = 200, message = "successful operation") @ApiResponse(code = 200, message = "successful operation")
}) })
@ApiImplicitParams({
})
@RequestMapping( @RequestMapping(
method = RequestMethod.POST, method = RequestMethod.POST,
value = "/fake/inline-additionalProperties", value = "/fake/inline-additionalProperties",
@ -505,8 +485,6 @@ public interface FakeApi {
@ApiResponses({ @ApiResponses({
@ApiResponse(code = 200, message = "successful operation") @ApiResponse(code = 200, message = "successful operation")
}) })
@ApiImplicitParams({
})
@RequestMapping( @RequestMapping(
method = RequestMethod.GET, method = RequestMethod.GET,
value = "/fake/jsonFormData", value = "/fake/jsonFormData",
@ -541,8 +519,6 @@ public interface FakeApi {
@ApiResponses({ @ApiResponses({
@ApiResponse(code = 200, message = "Success") @ApiResponse(code = 200, message = "Success")
}) })
@ApiImplicitParams({
})
@RequestMapping( @RequestMapping(
method = RequestMethod.PUT, method = RequestMethod.PUT,
value = "/fake/test-query-parameters" value = "/fake/test-query-parameters"
@ -583,8 +559,6 @@ public interface FakeApi {
@ApiResponses({ @ApiResponses({
@ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) @ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class)
}) })
@ApiImplicitParams({
})
@RequestMapping( @RequestMapping(
method = RequestMethod.POST, method = RequestMethod.POST,
value = "/fake/{petId}/uploadImageWithRequiredFile", value = "/fake/{petId}/uploadImageWithRequiredFile",

View File

@ -51,8 +51,6 @@ public interface FakeClassnameTestApi {
@ApiResponses({ @ApiResponses({
@ApiResponse(code = 200, message = "successful operation", response = Client.class) @ApiResponse(code = 200, message = "successful operation", response = Client.class)
}) })
@ApiImplicitParams({
})
@RequestMapping( @RequestMapping(
method = RequestMethod.PATCH, method = RequestMethod.PATCH,
value = "/fake_classname_test", value = "/fake_classname_test",

View File

@ -56,8 +56,6 @@ public interface PetApi {
@ApiResponse(code = 200, message = "successful operation"), @ApiResponse(code = 200, message = "successful operation"),
@ApiResponse(code = 405, message = "Invalid input") @ApiResponse(code = 405, message = "Invalid input")
}) })
@ApiImplicitParams({
})
@RequestMapping( @RequestMapping(
method = RequestMethod.POST, method = RequestMethod.POST,
value = "/pet", value = "/pet",
@ -95,7 +93,7 @@ public interface PetApi {
@ApiResponse(code = 400, message = "Invalid pet value") @ApiResponse(code = 400, message = "Invalid pet value")
}) })
@ApiImplicitParams({ @ApiImplicitParams({
@ApiImplicitParam(name = "apiKey", value = "", dataType = "String", paramType = "header") @ApiImplicitParam(name = "api_key", value = "", dataType = "String", paramType = "header")
}) })
@RequestMapping( @RequestMapping(
method = RequestMethod.DELETE, method = RequestMethod.DELETE,
@ -135,8 +133,6 @@ public interface PetApi {
@ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"), @ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"),
@ApiResponse(code = 400, message = "Invalid status value") @ApiResponse(code = 400, message = "Invalid status value")
}) })
@ApiImplicitParams({
})
@RequestMapping( @RequestMapping(
method = RequestMethod.GET, method = RequestMethod.GET,
value = "/pet/findByStatus", value = "/pet/findByStatus",
@ -191,8 +187,6 @@ public interface PetApi {
@ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "Set"), @ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "Set"),
@ApiResponse(code = 400, message = "Invalid tag value") @ApiResponse(code = 400, message = "Invalid tag value")
}) })
@ApiImplicitParams({
})
@RequestMapping( @RequestMapping(
method = RequestMethod.GET, method = RequestMethod.GET,
value = "/pet/findByTags", value = "/pet/findByTags",
@ -244,8 +238,6 @@ public interface PetApi {
@ApiResponse(code = 400, message = "Invalid ID supplied"), @ApiResponse(code = 400, message = "Invalid ID supplied"),
@ApiResponse(code = 404, message = "Pet not found") @ApiResponse(code = 404, message = "Pet not found")
}) })
@ApiImplicitParams({
})
@RequestMapping( @RequestMapping(
method = RequestMethod.GET, method = RequestMethod.GET,
value = "/pet/{petId}", value = "/pet/{petId}",
@ -300,8 +292,6 @@ public interface PetApi {
@ApiResponse(code = 404, message = "Pet not found"), @ApiResponse(code = 404, message = "Pet not found"),
@ApiResponse(code = 405, message = "Validation exception") @ApiResponse(code = 405, message = "Validation exception")
}) })
@ApiImplicitParams({
})
@RequestMapping( @RequestMapping(
method = RequestMethod.PUT, method = RequestMethod.PUT,
value = "/pet", value = "/pet",
@ -338,8 +328,6 @@ public interface PetApi {
@ApiResponses({ @ApiResponses({
@ApiResponse(code = 405, message = "Invalid input") @ApiResponse(code = 405, message = "Invalid input")
}) })
@ApiImplicitParams({
})
@RequestMapping( @RequestMapping(
method = RequestMethod.POST, method = RequestMethod.POST,
value = "/pet/{petId}", value = "/pet/{petId}",
@ -379,8 +367,6 @@ public interface PetApi {
@ApiResponses({ @ApiResponses({
@ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) @ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class)
}) })
@ApiImplicitParams({
})
@RequestMapping( @RequestMapping(
method = RequestMethod.POST, method = RequestMethod.POST,
value = "/pet/{petId}/uploadImage", value = "/pet/{petId}/uploadImage",

View File

@ -50,8 +50,6 @@ public interface StoreApi {
@ApiResponse(code = 400, message = "Invalid ID supplied"), @ApiResponse(code = 400, message = "Invalid ID supplied"),
@ApiResponse(code = 404, message = "Order not found") @ApiResponse(code = 404, message = "Order not found")
}) })
@ApiImplicitParams({
})
@RequestMapping( @RequestMapping(
method = RequestMethod.DELETE, method = RequestMethod.DELETE,
value = "/store/order/{order_id}" value = "/store/order/{order_id}"
@ -84,8 +82,6 @@ public interface StoreApi {
@ApiResponses({ @ApiResponses({
@ApiResponse(code = 200, message = "successful operation", response = Map.class, responseContainer = "Map") @ApiResponse(code = 200, message = "successful operation", response = Map.class, responseContainer = "Map")
}) })
@ApiImplicitParams({
})
@RequestMapping( @RequestMapping(
method = RequestMethod.GET, method = RequestMethod.GET,
value = "/store/inventory", value = "/store/inventory",
@ -120,8 +116,6 @@ public interface StoreApi {
@ApiResponse(code = 400, message = "Invalid ID supplied"), @ApiResponse(code = 400, message = "Invalid ID supplied"),
@ApiResponse(code = 404, message = "Order not found") @ApiResponse(code = 404, message = "Order not found")
}) })
@ApiImplicitParams({
})
@RequestMapping( @RequestMapping(
method = RequestMethod.GET, method = RequestMethod.GET,
value = "/store/order/{order_id}", value = "/store/order/{order_id}",
@ -167,8 +161,6 @@ public interface StoreApi {
@ApiResponse(code = 200, message = "successful operation", response = Order.class), @ApiResponse(code = 200, message = "successful operation", response = Order.class),
@ApiResponse(code = 400, message = "Invalid Order") @ApiResponse(code = 400, message = "Invalid Order")
}) })
@ApiImplicitParams({
})
@RequestMapping( @RequestMapping(
method = RequestMethod.POST, method = RequestMethod.POST,
value = "/store/order", value = "/store/order",

View File

@ -49,8 +49,6 @@ public interface UserApi {
@ApiResponses({ @ApiResponses({
@ApiResponse(code = 200, message = "successful operation") @ApiResponse(code = 200, message = "successful operation")
}) })
@ApiImplicitParams({
})
@RequestMapping( @RequestMapping(
method = RequestMethod.POST, method = RequestMethod.POST,
value = "/user" value = "/user"
@ -78,8 +76,6 @@ public interface UserApi {
@ApiResponses({ @ApiResponses({
@ApiResponse(code = 200, message = "successful operation") @ApiResponse(code = 200, message = "successful operation")
}) })
@ApiImplicitParams({
})
@RequestMapping( @RequestMapping(
method = RequestMethod.POST, method = RequestMethod.POST,
value = "/user/createWithArray" value = "/user/createWithArray"
@ -107,8 +103,6 @@ public interface UserApi {
@ApiResponses({ @ApiResponses({
@ApiResponse(code = 200, message = "successful operation") @ApiResponse(code = 200, message = "successful operation")
}) })
@ApiImplicitParams({
})
@RequestMapping( @RequestMapping(
method = RequestMethod.POST, method = RequestMethod.POST,
value = "/user/createWithList" value = "/user/createWithList"
@ -139,8 +133,6 @@ public interface UserApi {
@ApiResponse(code = 400, message = "Invalid username supplied"), @ApiResponse(code = 400, message = "Invalid username supplied"),
@ApiResponse(code = 404, message = "User not found") @ApiResponse(code = 404, message = "User not found")
}) })
@ApiImplicitParams({
})
@RequestMapping( @RequestMapping(
method = RequestMethod.DELETE, method = RequestMethod.DELETE,
value = "/user/{username}" value = "/user/{username}"
@ -173,8 +165,6 @@ public interface UserApi {
@ApiResponse(code = 400, message = "Invalid username supplied"), @ApiResponse(code = 400, message = "Invalid username supplied"),
@ApiResponse(code = 404, message = "User not found") @ApiResponse(code = 404, message = "User not found")
}) })
@ApiImplicitParams({
})
@RequestMapping( @RequestMapping(
method = RequestMethod.GET, method = RequestMethod.GET,
value = "/user/{username}", value = "/user/{username}",
@ -221,8 +211,6 @@ public interface UserApi {
@ApiResponse(code = 200, message = "successful operation", response = String.class), @ApiResponse(code = 200, message = "successful operation", response = String.class),
@ApiResponse(code = 400, message = "Invalid username/password supplied") @ApiResponse(code = 400, message = "Invalid username/password supplied")
}) })
@ApiImplicitParams({
})
@RequestMapping( @RequestMapping(
method = RequestMethod.GET, method = RequestMethod.GET,
value = "/user/login", value = "/user/login",
@ -251,8 +239,6 @@ public interface UserApi {
@ApiResponses({ @ApiResponses({
@ApiResponse(code = 200, message = "successful operation") @ApiResponse(code = 200, message = "successful operation")
}) })
@ApiImplicitParams({
})
@RequestMapping( @RequestMapping(
method = RequestMethod.GET, method = RequestMethod.GET,
value = "/user/logout" value = "/user/logout"
@ -284,8 +270,6 @@ public interface UserApi {
@ApiResponse(code = 400, message = "Invalid user supplied"), @ApiResponse(code = 400, message = "Invalid user supplied"),
@ApiResponse(code = 404, message = "User not found") @ApiResponse(code = 404, message = "User not found")
}) })
@ApiImplicitParams({
})
@RequestMapping( @RequestMapping(
method = RequestMethod.PUT, method = RequestMethod.PUT,
value = "/user/{username}" value = "/user/{username}"

View File

@ -1,85 +0,0 @@
package org.openapitools.model;
import java.net.URI;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.openapitools.jackson.nullable.JsonNullable;
import java.time.OffsetDateTime;
import javax.validation.Valid;
import javax.validation.constraints.*;
import java.util.*;
/**
* Must be named &#x60;File&#x60; for test.
*/
@ApiModel(description = "Must be named `File` for test.")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
public class ModelFile {
@JsonProperty("sourceURI")
private String sourceURI;
public ModelFile sourceURI(String sourceURI) {
this.sourceURI = sourceURI;
return this;
}
/**
* Test capitalization
* @return sourceURI
*/
@ApiModelProperty(value = "Test capitalization")
public String getSourceURI() {
return sourceURI;
}
public void setSourceURI(String sourceURI) {
this.sourceURI = sourceURI;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ModelFile _file = (ModelFile) o;
return Objects.equals(this.sourceURI, _file.sourceURI);
}
@Override
public int hashCode() {
return Objects.hash(sourceURI);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ModelFile {\n");
sb.append(" sourceURI: ").append(toIndentedString(sourceURI)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}