Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: sdk cleanup #9

Merged
merged 1 commit into from
Aug 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .openapi-generator-ignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
**/ServerConfiguration.java
**/ServerVariable.java
**/JSON.java
**/client/Configuration.java
src/main/AndroidManifest.xml
build.sbt
pom.xml
Expand Down
10 changes: 4 additions & 6 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -79,15 +79,13 @@ src/main/java/dev/openfga/sdk/api/client/ApiBearerToken.java
src/main/java/dev/openfga/sdk/api/client/ApiClient.java
src/main/java/dev/openfga/sdk/api/client/ApiException.java
src/main/java/dev/openfga/sdk/api/client/ApiResponse.java
src/main/java/dev/openfga/sdk/api/client/BaseConfiguration.java
src/main/java/dev/openfga/sdk/api/client/ClientCredentials.java
src/main/java/dev/openfga/sdk/api/client/Configuration.java
src/main/java/dev/openfga/sdk/api/client/Configuration.java
src/main/java/dev/openfga/sdk/api/client/ConfigurationOverride.java
src/main/java/dev/openfga/sdk/api/client/CredentialsMethod.java
src/main/java/dev/openfga/sdk/api/client/JSON.java
src/main/java/dev/openfga/sdk/api/client/Pair.java
src/main/java/dev/openfga/sdk/api/client/RFC3339DateFormat.java
src/main/java/dev/openfga/sdk/api/configuration/BaseConfiguration.java
src/main/java/dev/openfga/sdk/api/configuration/Configuration.java
src/main/java/dev/openfga/sdk/api/configuration/ConfigurationOverride.java
src/main/java/dev/openfga/sdk/api/model/AbstractOpenApiSchema.java
src/main/java/dev/openfga/sdk/api/model/Any.java
src/main/java/dev/openfga/sdk/api/model/Assertion.java
Expand Down Expand Up @@ -149,7 +147,7 @@ src/test-integration/java/dev/openfga/sdk/api/OpenFgaApiIntegrationTest.java
src/test/java/dev/openfga/sdk/api/OpenFgaApiTest.java
src/test/java/dev/openfga/sdk/api/OpenFgaApiTest.java
src/test/java/dev/openfga/sdk/api/client/ClientCredentialsTest.java
src/test/java/dev/openfga/sdk/api/client/ConfigurationTest.java
src/test/java/dev/openfga/sdk/api/configuration/ConfigurationTest.java
src/test/java/dev/openfga/sdk/api/model/AnyTest.java
src/test/java/dev/openfga/sdk/api/model/AssertionTest.java
src/test/java/dev/openfga/sdk/api/model/AuthorizationModelTest.java
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
[![Discord Server](https://img.shields.io/discord/759188666072825867?color=7289da&logo=discord "Discord Server")](https://discord.gg/8naAwJfWN6)
[![Twitter](https://img.shields.io/twitter/follow/openfga?color=%23179CF0&logo=twitter&style=flat-square "@openfga on Twitter")](https://twitter.com/openfga)

This is an autogenerated java SDK for OpenFGA. It provides a wrapper around the [OpenFGA API definition](https://openfga.dev/api).
This is an autogenerated Java SDK for OpenFGA. It provides a wrapper around the [OpenFGA API definition](https://openfga.dev/api).

## Table of Contents

Expand Down
2 changes: 0 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ javadoc {

ext {
jackson_version = "2.14.1"
jakarta_annotation_version = "1.3.5"
junit_version = "5.7.1"
}

Expand All @@ -49,7 +48,6 @@ dependencies {
implementation "com.fasterxml.jackson.core:jackson-databind:$jackson_version"
implementation "com.fasterxml.jackson.datatype:jackson-datatype-jsr310:$jackson_version"
implementation "org.openapitools:jackson-databind-nullable:0.2.1"
implementation "jakarta.annotation:jakarta.annotation-api:$jakarta_annotation_version"
}

testing {
Expand Down
64 changes: 32 additions & 32 deletions docs/OpenFgaApi.md

Large diffs are not rendered by default.

15 changes: 6 additions & 9 deletions src/main/java/dev/openfga/sdk/api/OpenFgaApi.java

Large diffs are not rendered by default.

3 changes: 0 additions & 3 deletions src/main/java/dev/openfga/sdk/api/client/ApiClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,6 @@
* <p>The setter methods of this class return the current object to facilitate
* a fluent style of configuration.</p>
*/
@javax.annotation.Generated(
value = "org.openapitools.codegen.languages.JavaClientCodegen",
date = "2023-08-28T14:41:07.855252Z[Etc/UTC]")
public class ApiClient {

private HttpClient.Builder builder;
Expand Down
3 changes: 0 additions & 3 deletions src/main/java/dev/openfga/sdk/api/client/ApiException.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@

import java.net.http.HttpHeaders;

@javax.annotation.Generated(
value = "org.openapitools.codegen.languages.JavaClientCodegen",
date = "2023-08-28T14:41:07.855252Z[Etc/UTC]")
public class ApiException extends Exception {
private int code = 0;
private HttpHeaders responseHeaders = null;
Expand Down
254 changes: 0 additions & 254 deletions src/main/java/dev/openfga/sdk/api/client/JSON.java

This file was deleted.

3 changes: 0 additions & 3 deletions src/main/java/dev/openfga/sdk/api/client/Pair.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@

package dev.openfga.sdk.api.client;

@javax.annotation.Generated(
value = "org.openapitools.codegen.languages.JavaClientCodegen",
date = "2023-08-28T14:41:07.855252Z[Etc/UTC]")
public class Pair {
private String name = "";
private String value = "";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* Do not edit the class manually.
*/

package dev.openfga.sdk.api.client;
package dev.openfga.sdk.api.configuration;

import java.time.Duration;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* Do not edit the class manually.
*/

package dev.openfga.sdk.api.client;
package dev.openfga.sdk.api.configuration;

import static dev.openfga.util.StringUtil.isNullOrWhitespace;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* Do not edit the class manually.
*/

package dev.openfga.sdk.api.client;
package dev.openfga.sdk.api.configuration;

import java.net.http.HttpClient;
import java.net.http.HttpConnectTimeoutException;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@
/**
* Abstract class for oneOf,anyOf schemas defined in OpenAPI spec
*/
@javax.annotation.Generated(
value = "org.openapitools.codegen.languages.JavaClientCodegen",
date = "2023-08-28T14:41:07.855252Z[Etc/UTC]")
public abstract class AbstractOpenApiSchema {

// store the actual instance of the schema/object
Expand Down
3 changes: 0 additions & 3 deletions src/main/java/dev/openfga/sdk/api/model/Any.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,6 @@
* Any
*/
@JsonPropertyOrder({Any.JSON_PROPERTY_AT_TYPE})
@javax.annotation.Generated(
value = "org.openapitools.codegen.languages.JavaClientCodegen",
date = "2023-08-28T14:41:07.855252Z[Etc/UTC]")
public class Any extends HashMap<String, Object> {
public static final String JSON_PROPERTY_AT_TYPE = "@type";
private String atType;
Expand Down
Loading