Skip to content

Commit

Permalink
Merge pull request #2 from fabra-io/speakeasy-sdk-regen-1677116750
Browse files Browse the repository at this point in the history
chore: speakeasy SDK regeneration
  • Loading branch information
nfiacco authored Mar 6, 2023
2 parents 69e06e2 + fcd938a commit feed1fe
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 9 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
### Gradle

```groovy
implementation 'fabra.io.javasdk:fabra-java-sdk:0.1.0'
implementation 'fabra.io.javasdk:fabra-java-sdk:0.2.2'
```
<!-- End SDK Installation -->

Expand Down
26 changes: 25 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,28 @@
### Changes
Based on:
- OpenAPI Doc 0.1.0 ./openapi.yaml
- Speakeasy CLI 1.4.5 https://github.com/speakeasy-api/speakeasy
- Speakeasy CLI 1.4.5 https://github.com/speakeasy-api/speakeasy

## Version 0.1.1
### Changes
Based on:
- OpenAPI Doc 0.1.0 ./openapi.yaml
- Speakeasy CLI 1.4.8 https://github.com/speakeasy-api/speakeasy

## Version 0.2.0
### Changes
Based on:
- OpenAPI Doc 0.1.0 ./openapi.yaml
- Speakeasy CLI 1.5.0 https://github.com/speakeasy-api/speakeasy

## Version 0.2.1
### Changes
Based on:
- OpenAPI Doc 0.1.0 ./openapi.yaml
- Speakeasy CLI 1.5.3 https://github.com/speakeasy-api/speakeasy

## Version 0.2.2
### Changes
Based on:
- OpenAPI Doc 0.1.0 ./openapi.yaml
- Speakeasy CLI 1.5.4 https://github.com/speakeasy-api/speakeasy
4 changes: 2 additions & 2 deletions gen.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
management:
openapi-checksum: 5bdbad96d6d347d81789110337cf504a
openapi-version: 0.1.0
speakeasy-version: 1.4.5
speakeasy-version: 1.5.4
java:
version: 0.1.0
version: 0.2.2
packagename: fabra.io.javasdk
projectname: fabra-java-sdk
sdkclassname: Fabra
4 changes: 2 additions & 2 deletions lib/src/main/java/fabra/io/javasdk/Fabra.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ public class Fabra {
private fabra.io.javasdk.models.shared.Security _security;
private String _serverUrl;
private String _language = "java";
private String _sdkVersion = "0.1.0";
private String _genVersion = "1.4.5";
private String _sdkVersion = "0.2.2";
private String _genVersion = "1.5.4";

public static class Builder {
private HTTPClient client;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;

import org.apache.http.NameValuePair;
import org.apache.http.message.BasicNameValuePair;
Expand Down Expand Up @@ -91,7 +92,7 @@ private static List<NameValuePair> parseFormParams(QueryParamsMetadata queryPara
values.add(String.join(",", items));
}

params.addAll(values.stream().map(v -> new BasicNameValuePair(queryParamsMetadata.name, v)).toList());
params.addAll(values.stream().map(v -> new BasicNameValuePair(queryParamsMetadata.name, v)).collect(Collectors.toList()));
break;
}
case MAP: {
Expand Down
5 changes: 3 additions & 2 deletions lib/src/main/java/fabra/io/javasdk/utils/Utils.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import java.util.Map;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import java.util.stream.Collectors;

import org.apache.http.NameValuePair;

Expand Down Expand Up @@ -51,7 +52,7 @@ public static String generateURL(String baseURL, String path, Object params)

pathParams.put(pathParamsMetadata.name,
String.join(",",
Arrays.asList(array).stream().map(v -> Utils.valToString(v)).toList()));
Arrays.asList(array).stream().map(v -> Utils.valToString(v)).collect(Collectors.toList())));
break;
case MAP:
Map<?, ?> map = (Map<?, ?>) value;
Expand All @@ -68,7 +69,7 @@ public static String generateURL(String baseURL, String path, Object params)
return String.format("%s,%s", Utils.valToString(e.getKey()),
Utils.valToString(e.getValue()));
}
}).toList()));
}).collect(Collectors.toList())));
break;
case OBJECT:
List<String> values = new ArrayList<String>();
Expand Down

0 comments on commit feed1fe

Please sign in to comment.