forked from loafle/openapi-generator-original
Syntax highlighting
Syntax highlighting
This commit is contained in:
parent
51c66a270e
commit
acb62810a9
12
README.md
12
README.md
@ -402,9 +402,9 @@ CONFIG OPTIONS
|
|||||||
retrofit2 - HTTP client: OkHttp 2.5.0. JSON processing: Gson 2.4 (Retrofit 2.0.0-beta2)
|
retrofit2 - HTTP client: OkHttp 2.5.0. JSON processing: Gson 2.4 (Retrofit 2.0.0-beta2)
|
||||||
```
|
```
|
||||||
|
|
||||||
Your config file for java can look like
|
Your config file for Java can look like
|
||||||
|
|
||||||
```
|
```json
|
||||||
{
|
{
|
||||||
"groupId":"com.my.company",
|
"groupId":"com.my.company",
|
||||||
"artifactId":"MyClent",
|
"artifactId":"MyClent",
|
||||||
@ -418,15 +418,15 @@ For all the unspecified options default values will be used.
|
|||||||
Another way to override default options is to extend the config class for the specific language.
|
Another way to override default options is to extend the config class for the specific language.
|
||||||
To change, for example, the prefix for the Objective-C generated files, simply subclass the ObjcClientCodegen.java:
|
To change, for example, the prefix for the Objective-C generated files, simply subclass the ObjcClientCodegen.java:
|
||||||
|
|
||||||
```
|
```java
|
||||||
package com.mycompany.swagger.codegen;
|
package com.mycompany.swagger.codegen;
|
||||||
|
|
||||||
import io.swagger.codegen.languages.*;
|
import io.swagger.codegen.languages.*;
|
||||||
|
|
||||||
public class MyObjcCodegen extends ObjcClientCodegen {
|
public class MyObjcCodegen extends ObjcClientCodegen {
|
||||||
static {
|
static {
|
||||||
PREFIX = "HELO";
|
PREFIX = "HELO";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user