Skip to content

Commit

Permalink
Merge pull request OpenAPITools#5 from ronanwatkins/DEVENGAGE-981
Browse files Browse the repository at this point in the history
DEVENGAGE-981: Java Guest SDK
  • Loading branch information
ronanwatkins authored Mar 1, 2022
2 parents 5a03899 + 02812be commit c5aacbd
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
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"; }
}
Original file line number Diff line number Diff line change
Expand Up @@ -137,3 +137,4 @@ org.openapitools.codegen.languages.TypeScriptReduxQueryClientCodegen
org.openapitools.codegen.languages.TypeScriptRxjsClientCodegen
org.openapitools.codegen.languages.WsdlSchemaCodegen
org.openapitools.codegen.languages.PureCloudJavaClientCodegen
org.openapitools.codegen.languages.PureCloudJavaGuestClientCodegen

0 comments on commit c5aacbd

Please sign in to comment.