forked from OpenAPITools/openapi-generator
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request OpenAPITools#5 from ronanwatkins/DEVENGAGE-981
DEVENGAGE-981: Java Guest SDK
- Loading branch information
Showing
2 changed files
with
25 additions
and
0 deletions.
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
...tor/src/main/java/org/openapitools/codegen/languages/PureCloudJavaGuestClientCodegen.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package org.openapitools.codegen.languages; | ||
|
||
import org.slf4j.Logger; | ||
import org.slf4j.LoggerFactory; | ||
|
||
|
||
public class PureCloudJavaGuestClientCodegen extends PureCloudJavaClientCodegen { | ||
protected Logger LOGGER = LoggerFactory.getLogger(PureCloudJavaGuestClientCodegen.class); | ||
|
||
public PureCloudJavaGuestClientCodegen() { | ||
super(); | ||
|
||
// Custom mappings for swagger type -> java type | ||
// Override the standard sdk's type | ||
importMapping.replace("PagedResource", "com.mypurecloud.sdk.v2.guest.PagedResource"); | ||
importMapping.put("LocalDate", "java.time.LocalDate"); | ||
|
||
// Type overrides | ||
typeMapping.put("date", "LocalDate"); | ||
} | ||
|
||
@Override | ||
public String getName() { return "purecloudjava-guest"; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters