Rename default packages in meta (#314)

This commit is contained in:
Jérémie Bresson 2018-05-04 10:19:07 +02:00 committed by GitHub
parent ea18065447
commit 71d544c9f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
12 changed files with 9 additions and 9 deletions

View File

@ -76,12 +76,12 @@ public class {{generatorClass}} extends DefaultCodegen implements CodegenConfig
/** /**
* Api Package. Optional, if needed, this can be used in templates * Api Package. Optional, if needed, this can be used in templates
*/ */
apiPackage = "io.swagger.client.api"; apiPackage = "org.openapitools.api";
/** /**
* Model Package. Optional, if needed, this can be used in templates * Model Package. Optional, if needed, this can be used in templates
*/ */
modelPackage = "io.swagger.client.model"; modelPackage = "org.openapitools.model";
/** /**
* Reserved words. Override this with reserved words specific to your language * Reserved words. Override this with reserved words specific to your language

View File

@ -1,7 +1,7 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>io.swagger</groupId> <groupId>org.openapitools</groupId>
<artifactId>{{name}}-openapi-generator</artifactId> <artifactId>{{name}}-openapi-generator</artifactId>
<packaging>jar</packaging> <packaging>jar</packaging>
<name>{{name}}-openapi-generator</name> <name>{{name}}-openapi-generator</name>

View File

@ -1,7 +1,7 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>io.swagger</groupId> <groupId>org.openapitools</groupId>
<artifactId>myClientCodegen-openapi-generator</artifactId> <artifactId>myClientCodegen-openapi-generator</artifactId>
<packaging>jar</packaging> <packaging>jar</packaging>
<name>myClientCodegen-openapi-generator</name> <name>myClientCodegen-openapi-generator</name>

View File

@ -76,12 +76,12 @@ public class MyclientcodegenGenerator extends DefaultCodegen implements CodegenC
/** /**
* Api Package. Optional, if needed, this can be used in templates * Api Package. Optional, if needed, this can be used in templates
*/ */
apiPackage = "io.swagger.client.api"; apiPackage = "org.openapitools.api";
/** /**
* Model Package. Optional, if needed, this can be used in templates * Model Package. Optional, if needed, this can be used in templates
*/ */
modelPackage = "io.swagger.client.model"; modelPackage = "org.openapitools.model";
/** /**
* Reserved words. Override this with reserved words specific to your language * Reserved words. Override this with reserved words specific to your language

View File

@ -5,7 +5,7 @@
# like such: # like such:
# use the package from the `apiPackage` variable # use the package from the `apiPackage` variable
package: io.swagger.client.api package: org.openapitools.api
# operations block # operations block
classname: PetApi classname: PetApi

View File

@ -5,7 +5,7 @@
# like such: # like such:
# use the package from the `apiPackage` variable # use the package from the `apiPackage` variable
package: io.swagger.client.api package: org.openapitools.api
# operations block # operations block
classname: StoreApi classname: StoreApi

View File

@ -5,7 +5,7 @@
# like such: # like such:
# use the package from the `apiPackage` variable # use the package from the `apiPackage` variable
package: io.swagger.client.api package: org.openapitools.api
# operations block # operations block
classname: UserApi classname: UserApi