Skip to content

Commit

Permalink
Removing custom template for now
Browse files Browse the repository at this point in the history
  • Loading branch information
brianluisgomez committed Feb 8, 2024
1 parent 301b411 commit 22b77ae
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 138 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Add this dependency to your project's POM:
<dependency>
<groupId>com.bandwidth.sdk</groupId>
<artifactId>bandwidth-sdk</artifactId>
<version>9.0.0</version>
<version>9.1.1</version>
<scope>compile</scope>
</dependency>
```
Expand All @@ -56,7 +56,7 @@ Add this dependency to your project's build file:
}
dependencies {
implementation "com.bandwidth.sdk:bandwidth-sdk:9.0.0"
implementation "com.bandwidth.sdk:bandwidth-sdk:9.1.1"
}
```

Expand All @@ -70,7 +70,7 @@ mvn clean package

Then manually install the following JARs:

* `target/bandwidth-sdk-9.0.0.jar`
* `target/bandwidth-sdk-9.1.1.jar`
* `target/lib/*.jar`

## Getting Started
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ apply plugin: 'java'
apply plugin: 'com.diffplug.spotless'

group = 'com.bandwidth.sdk'
version = '9.0.0'
version = '9.1.1'

buildscript {
repositories {
Expand Down
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ lazy val root = (project in file(".")).
settings(
organization := "com.bandwidth.sdk",
name := "bandwidth-sdk",
version := "9.0.0",
version := "9.1.1",
scalaVersion := "2.11.4",
scalacOptions ++= Seq("-feature"),
javacOptions in compile ++= Seq("-Xlint:deprecation"),
Expand Down
123 changes: 0 additions & 123 deletions custom_templates/api.mustache

This file was deleted.

2 changes: 0 additions & 2 deletions openapi-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,9 @@ developerEmail: dx@bandwidth.com
developerOrganization: Bandwidth
disallowAdditionalPropertiesIfNotPresent: false
hideGenerationTimestamp: true
caseInsensitiveResponseHeaders: true
groupId: com.bandwidth.sdk
invokerPackage: com.bandwidth.sdk
apiPackage: com.bandwidth.sdk.api
modelPackage: com.bandwidth.sdk.model
library: okhttp-gson
licenseName: MIT
templateDir: custom_templates
5 changes: 5 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,11 @@
<artifactId>logging-interceptor</artifactId>
<version>${okhttp-version}</version>
</dependency>
<dependency>
<groupId>com.sun.jersey</groupId>
<artifactId>jersey-client</artifactId>
<version>1.19.4</version>
</dependency>
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/bandwidth/sdk/ApiClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ private void init() {
json = new JSON();

// Set default User-Agent.
setUserAgent("OpenAPI-Generator/9.0.0/java");
setUserAgent("OpenAPI-Generator/9.1.1/java");

authentications = new HashMap<String, Authentication>();
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/bandwidth/sdk/Configuration.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class Configuration {
public static final String VERSION = "9.0.0";
public static final String VERSION = "9.1.1";

private static ApiClient defaultApiClient = new ApiClient();

Expand Down
12 changes: 6 additions & 6 deletions src/main/java/com/bandwidth/sdk/api/MediaApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -677,12 +677,12 @@ public okhttp3.Call uploadMediaCall(String accountId, String mediaId, File body,
"video/webm",
"video/x-ms-wmv"
};
if (contentType == null) {
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
if (localVarContentType != null) {
localVarHeaderParams.put("Content-Type", localVarContentType);
}
}
if (contentType == null) {
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
if (localVarContentType != null) {
localVarHeaderParams.put("Content-Type", localVarContentType);
}
};

String[] localVarAuthNames = new String[] { "Basic" };
return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
Expand Down

0 comments on commit 22b77ae

Please sign in to comment.