Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
92 commits
Select commit Hold shift + click to select a range
3772078
docs: add Java SDK nomenclature cleanup design spec
Devesh-Skyflow May 13, 2026
9afb24a
docs: clarify tokenizedData reasoning in nomenclature cleanup spec
Devesh-Skyflow May 13, 2026
850eedb
docs: expand reasoning in Java nomenclature cleanup spec
Devesh-Skyflow May 13, 2026
ea9efb2
docs: correct tokenizedData implementation rationale in spec
Devesh-Skyflow May 13, 2026
54cb54b
docs: remove tokenizedData from scope in nomenclature cleanup spec
Devesh-Skyflow May 13, 2026
5e484d9
docs: add implementation plan for Java SDK nomenclature cleanup
Devesh-Skyflow May 13, 2026
96e7e39
feat: accept clientId/keyId/tokenUri in BearerToken with fallback to …
Devesh-Skyflow May 13, 2026
c46ced7
feat: accept clientId/keyId in SignedDataTokens with fallback to old …
Devesh-Skyflow May 13, 2026
16e6ef5
feat: normalise skyflow_id to skyflowId in Get and Query response maps
Devesh-Skyflow May 13, 2026
77d2424
feat: add getErrors() accessor to QueryResponse
Devesh-Skyflow May 14, 2026
54b500a
chore: audit confirms no setFooID/getFooID violations in public API
Devesh-Skyflow May 14, 2026
33d6c22
chore: add Claude Code setup (CLAUDE.md + .claude/)
Devesh-Skyflow May 14, 2026
f4d71ae
chore: fix gaps and inaccuracies in Claude setup files
Devesh-Skyflow May 14, 2026
93a1150
docs: add v2 backward compat + deprecation warnings implementation plan
Devesh-Skyflow May 14, 2026
fd07ab6
docs: update deprecation messages to say 'upcoming release' not 'v3'
Devesh-Skyflow May 14, 2026
6c1de31
docs: add [DEPRECATED] prefix to deprecation log messages per industr…
Devesh-Skyflow May 14, 2026
de6e4b4
docs: add PM-facing document for v2 public interface changes and depr…
Devesh-Skyflow May 14, 2026
541da95
docs: add downloadURL→downloadUrl deprecation to plan and PM doc
Devesh-Skyflow May 14, 2026
bf8f83e
fix: remove SDK-level field value null/empty validation from Insert a…
Devesh-Skyflow May 14, 2026
8112876
docs: add IDE autocomplete behavior for deprecation signals
Devesh-Skyflow May 14, 2026
57fd8f6
chore: segregate code smells into dedicated section in code-review co…
Devesh-Skyflow May 14, 2026
de2da94
chore: add DEPRECATED_SKYFLOW_ID_KEY log entry to InfoLogs
Devesh-Skyflow May 18, 2026
938f566
fix: restore skyflow_id key in Get/Query responses for v2 backward co…
Devesh-Skyflow May 18, 2026
4c3b998
docs: add deprecation Javadoc for skyflow_id key in GetResponse and Q…
Devesh-Skyflow May 18, 2026
8a1744a
feat: deprecate downloadURL in favour of downloadUrl in GetRequest an…
Devesh-Skyflow May 18, 2026
92bcf33
chore: update CLAUDE.md — add code-smell command, update slash commands
Devesh-Skyflow May 18, 2026
dbdcc07
docs: update deprecation plan and PM doc - credentials permanently su…
Devesh-Skyflow May 18, 2026
5b57857
test: add new-form downloadUrl tests alongside deprecated downloadURL…
Devesh-Skyflow May 18, 2026
008f4ba
fix: changes to claude
Devesh-Skyflow May 18, 2026
b9f0e00
docs: migrate V1-to-V2 guide from README to docs/, update CHANGELOG
Devesh-Skyflow May 18, 2026
fa7a0fc
docs: simplify CHANGELOG — remove v1 entries, keep only v2.0.4
Devesh-Skyflow May 18, 2026
927e1be
docs: simplify CHANGELOG to point to GitHub and Maven releases
Devesh-Skyflow May 18, 2026
673e57b
docs: add v2 banner to README with migration link and EOL notice
Devesh-Skyflow May 18, 2026
18821fc
docs: use release notes link instead of CHANGELOG in banner
Devesh-Skyflow May 18, 2026
37a1c95
docs: update README banner to v2.1.x announcement
Devesh-Skyflow May 18, 2026
a83a28a
revert: remove .claude/ and CLAUDE.md — will be raised as separate PR…
Devesh-Skyflow May 18, 2026
06e55a1
chore: remove superpowers planning docs from repo
Devesh-Skyflow May 18, 2026
a08edf9
chore: ignore docs/superpowers/ — keep planning docs local only
Devesh-Skyflow May 18, 2026
566d9a9
chore: update cspell config — British English words, Maven flags, ign…
Devesh-Skyflow May 18, 2026
5734333
chore: remove v2-public-interface-changes.md
Devesh-Skyflow May 18, 2026
5acbb84
fix: replace real RSA key with fake key in BearerTokenTests
Devesh-Skyflow May 18, 2026
a802668
fix: guard against null in DetokenizeRequest.downloadUrl(null)
Devesh-Skyflow May 18, 2026
40b53de
chore: remove dead error constants after validation removal
Devesh-Skyflow May 18, 2026
bff8b52
Revert "fix: guard against null in DetokenizeRequest.downloadUrl(null)"
Devesh-Skyflow May 18, 2026
ee167b4
test: add positive tests for permissive Insert validation behaviour
Devesh-Skyflow May 18, 2026
6b6c25d
fix banner
Devesh-Skyflow May 19, 2026
48d08c8
feat: port PR #273 changes — raw body support, URL encoding, null-saf…
Devesh-Skyflow May 19, 2026
033c061
fix: guard unsafe Optional.get() calls and remove dead statement in D…
Devesh-Skyflow May 19, 2026
975dfba
fix: guard Optional.get() in delete, close FileReader, guard empty fo…
Devesh-Skyflow May 20, 2026
3406eaa
docs: update README for v2.1 public interface changes
Devesh-Skyflow May 20, 2026
2740de4
fix: do not generate SDK-side requestId when server omits x-request-i…
Devesh-Skyflow May 20, 2026
88cec18
feat: add printWarningLogOnce to suppress per-record deprecation spam
Devesh-Skyflow May 20, 2026
8c292d2
test: fix testSendRequestWithNullRequestId to assert null requestId
Devesh-Skyflow May 20, 2026
8cf3cd1
docs: fix request_index to requestIndex in README response examples
Devesh-Skyflow May 20, 2026
f90c75d
fix: readme
Devesh-Skyflow May 20, 2026
6727625
docs: add v2.1.0 upgrade banner and migration guide to v1 README (#310)
Devesh-Skyflow May 20, 2026
726735c
feat: accept camelCase skyflowId in UpdateRequest and fire deprecatio…
Devesh-Skyflow May 20, 2026
ef38806
Revert "docs: add v2.1.0 upgrade banner and migration guide to v1 REA…
Devesh-Skyflow May 20, 2026
2e34619
feat: prefer skyflowId over skyflow_id in UpdateRequest with deprecat…
Devesh-Skyflow May 21, 2026
b767c4c
feat: add getByot() as canonical form; keep getBYOT() as deprecated d…
Devesh-Skyflow May 21, 2026
e6be29b
test: add TokenModeTest covering getByot(), deprecated getBYOT() dele…
Devesh-Skyflow May 21, 2026
334f7b3
feat: emit runtime deprecation warning in getBYOT(); test that it fires
Devesh-Skyflow May 21, 2026
ddbf593
chore: merge origin/release/26.5.2 — resolve conflicts, keep per-requ…
Devesh-Skyflow May 21, 2026
9594bc4
refactor: consolidate both-keys deprecation warning into DEPRECATED_S…
Devesh-Skyflow May 21, 2026
c9f9976
Merge remote-tracking branch 'origin/main' into devesh/SK-2814-java--…
Devesh-Skyflow May 21, 2026
0065210
feat: deprecate updateLogLevel(); add setLogLevel() as canonical repl…
Devesh-Skyflow May 21, 2026
82e3856
samples: migrate UpdateExample to skyflowId; preserve deprecated skyf…
Devesh-Skyflow May 21, 2026
dfc276d
docs: update migration guide with v2.1 changes
Devesh-Skyflow May 21, 2026
3d28861
test: achieve 100% instruction/branch coverage on all public interfaces
Devesh-Skyflow May 21, 2026
0367ab7
fix: emit DEPRECATED_SKYFLOW_ID_KEY warning in getFormattedBatchInser…
Devesh-Skyflow May 21, 2026
1089293
docs: add Error Handling section to README
Devesh-Skyflow May 21, 2026
2aefccb
docs: remove redundant null-for-validation-errors notes from property…
Devesh-Skyflow May 21, 2026
b9e3557
Merge remote-tracking branch 'origin/release/26.5.2' into devesh/SK-2…
Devesh-Skyflow May 21, 2026
d3a9337
docs: add downloadURL→downloadUrl rename to migration guide method re…
Devesh-Skyflow May 22, 2026
e80524b
Merge remote-tracking branch 'origin/release/26.5.2' into devesh/SK-2…
Devesh-Skyflow May 22, 2026
cba419b
samples: add deprecated DetokenizeExample; show updateLogLevel in dep…
Devesh-Skyflow May 22, 2026
62c4643
samples: add deprecated GetExample showing legacy skyflow_id response…
Devesh-Skyflow May 22, 2026
536cbb5
test: add unit tests for VaultController, DetectController, Connectio…
Devesh-Skyflow May 22, 2026
dc07d64
test: boost instruction coverage for key public-interface methods
Devesh-Skyflow May 22, 2026
0ba6fe5
fix: remove unreachable ternary in insert return path
Devesh-Skyflow May 22, 2026
908b86b
test: add DetectController deidentifyFile/processFileByType coverage …
Devesh-Skyflow May 22, 2026
b988078
test: add pollForResults retry and null-outputDir coverage for Detect…
Devesh-Skyflow May 22, 2026
5a9cde0
test: add uploadFile coverage for all three FileInput paths in VaultC…
Devesh-Skyflow May 22, 2026
e470124
test: cover entityUniqueCounter branches in VaultClient request builders
Devesh-Skyflow May 22, 2026
7373214
test: add JWT decoded() coverage to TokenTests
Devesh-Skyflow May 22, 2026
dd476fa
test: add appendRequestId and nested JSON body coverage for HttpUtility
Devesh-Skyflow May 22, 2026
95c7cf0
feat: emit deprecation WARN when legacy clientID/keyID/tokenURI crede…
Devesh-Skyflow May 22, 2026
8cf8641
test: achieve 100% instruction coverage on all public interface packages
Devesh-Skyflow May 22, 2026
77c349f
chore: add test abbreviations and sample IDs to cspell allowlist
Devesh-Skyflow May 22, 2026
746fe88
fix: propagate SkyflowException from prioritiseCredentials without wr…
Devesh-Skyflow May 22, 2026
4c69275
fix: properly save/restore .env content in dotenv tests and remove Po…
Devesh-Skyflow May 22, 2026
b256de1
fix: relax noCredentials test assertion to be environment-agnostic
Devesh-Skyflow May 22, 2026
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
8 changes: 7 additions & 1 deletion .cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,13 @@
"behaviours",
"sanitisation",
"recognised",
"unrecognised"
"unrecognised",
"nocreds",
"nodir",
"detok",
"qhdmceurtnlz",
"ngrok",
"obac"
],
"languageSettings": [
{
Expand Down
1 change: 1 addition & 0 deletions docs/migrate_to_v2.md
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,7 @@ The following instance methods have been renamed for consistency. The old names
|---|---|
| `skyflowClient.updateLogLevel(logLevel)` | `skyflowClient.setLogLevel(logLevel)` |
| `TokenMode.getBYOT()` | `TokenMode.getByot()` |
| `DetokenizeRequest.builder().downloadURL(b)` | `DetokenizeRequest.builder().downloadUrl(b)` |

---

Expand Down
8 changes: 8 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,14 @@
<version>3.2.5</version>
<configuration>
<useModulePath>false</useModulePath>
<argLine>
@{argLine}
--add-opens java.base/java.lang=ALL-UNNAMED
--add-opens java.base/java.net=ALL-UNNAMED
--add-opens java.base/java.util=ALL-UNNAMED
--add-opens java.base/java.io=ALL-UNNAMED
--add-opens java.base/sun.net.www.protocol.https=ALL-UNNAMED
</argLine>
<includes>
<include>**/*Test.java</include>
<include>**/*Tests.java</include>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
package com.example.vault.deprecated;

import com.skyflow.Skyflow;
import com.skyflow.config.Credentials;
import com.skyflow.config.VaultConfig;
import com.skyflow.enums.Env;
import com.skyflow.enums.LogLevel;
import com.skyflow.enums.RedactionType;
import com.skyflow.errors.SkyflowException;
import com.skyflow.vault.tokens.DetokenizeData;
import com.skyflow.vault.tokens.DetokenizeRequest;
import com.skyflow.vault.tokens.DetokenizeResponse;

import java.util.ArrayList;

/**
* @deprecated Pre-v2.1 pattern. The {@code downloadURL()} builder method is deprecated.
* Use {@code downloadUrl()} instead (see {@link com.example.vault.DetokenizeExample}).
*
* This example is retained for reference during the deprecation window.
* {@code downloadURL()} still works but emits a runtime warning and will be removed in a future release.
*/
@Deprecated
public class DetokenizeExample {
@SuppressWarnings("deprecation")
public static void main(String[] args) throws SkyflowException {
// Step 1: Set up Skyflow credentials
Credentials credentials = new Credentials();
credentials.setToken("<YOUR_BEARER_TOKEN>"); // Replace with the actual bearer token

// Step 2: Configure the vault
VaultConfig vaultConfig = new VaultConfig();
vaultConfig.setVaultId("<YOUR_VAULT_ID_1>");
vaultConfig.setClusterId("<YOUR_CLUSTER_ID_1>");
vaultConfig.setEnv(Env.PROD);
vaultConfig.setCredentials(credentials);

// Step 3: Set up credentials for the Skyflow client
Credentials skyflowCredentials = new Credentials();
skyflowCredentials.setCredentialsString("<YOUR_CREDENTIALS_STRING>");

// Step 4: Create a Skyflow client
Skyflow skyflowClient = Skyflow.builder()
.setLogLevel(LogLevel.ERROR)
.addVaultConfig(vaultConfig)
.addSkyflowCredentials(skyflowCredentials)
.build();

// Step 5: Detokenize with deprecated downloadURL()
// DEPRECATED: use downloadUrl(true) instead of downloadURL(true)
try {
ArrayList<DetokenizeData> detokenizeData = new ArrayList<>();
detokenizeData.add(new DetokenizeData("<YOUR_TOKEN_VALUE_1>", RedactionType.MASKED));
detokenizeData.add(new DetokenizeData("<YOUR_TOKEN_VALUE_2>"));

DetokenizeRequest request = DetokenizeRequest.builder()
.detokenizeData(detokenizeData)
.continueOnError(true)
.downloadURL(true) // @deprecated — use downloadUrl(true)
.build();

DetokenizeResponse response = skyflowClient.vault().detokenize(request);
System.out.println("Detokenize Response: " + response);
} catch (SkyflowException e) {
System.out.println("Error during detokenization:");
e.printStackTrace();
}
}
}
76 changes: 76 additions & 0 deletions samples/src/main/java/com/example/vault/deprecated/GetExample.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
package com.example.vault.deprecated;

import com.skyflow.Skyflow;
import com.skyflow.config.Credentials;
import com.skyflow.config.VaultConfig;
import com.skyflow.enums.Env;
import com.skyflow.enums.LogLevel;
import com.skyflow.enums.RedactionType;
import com.skyflow.errors.SkyflowException;
import com.skyflow.vault.data.GetRequest;
import com.skyflow.vault.data.GetResponse;

import java.util.ArrayList;
import java.util.HashMap;

/**
* @deprecated Pre-v2.1 pattern. The {@code "skyflow_id"} key in the response record map is deprecated.
* Use {@code "skyflowId"} instead (see {@link com.example.vault.GetExample}).
*
* This example is retained for reference during the deprecation window.
* Both {@code "skyflow_id"} and {@code "skyflowId"} are present in the response map until
* {@code "skyflow_id"} is removed in a future release.
*/
@Deprecated
public class GetExample {
public static void main(String[] args) throws SkyflowException {
// Step 1: Set up credentials
Credentials credentials = new Credentials();
credentials.setCredentialsString("<YOUR_CREDENTIALS_STRING_1>");

// Step 2: Configure the vault
VaultConfig vaultConfig = new VaultConfig();
vaultConfig.setVaultId("<YOUR_VAULT_ID_1>");
vaultConfig.setClusterId("<YOUR_CLUSTER_ID_1>");
vaultConfig.setEnv(Env.PROD);
vaultConfig.setCredentials(credentials);

// Step 3: Set up credentials for the Skyflow client
Credentials skyflowCredentials = new Credentials();
skyflowCredentials.setCredentialsString("<YOUR_CREDENTIALS_STRING_2>");

// Step 4: Create a Skyflow client
Skyflow skyflowClient = Skyflow.builder()
.setLogLevel(LogLevel.ERROR)
.addVaultConfig(vaultConfig)
.addSkyflowCredentials(skyflowCredentials)
.build();

// Example: Fetch records and read the Skyflow ID using the deprecated "skyflow_id" key
// DEPRECATED: the response map contains both "skyflow_id" and "skyflowId".
// Access "skyflowId" instead — "skyflow_id" will be removed in a future release.
try {
ArrayList<String> ids = new ArrayList<>();
ids.add("<YOUR_SKYFLOW_ID>");

GetRequest request = GetRequest.builder()
.ids(ids)
.table("<TABLE_NAME>")
.redactionType(RedactionType.PLAIN_TEXT)
.build();

GetResponse response = skyflowClient.vault().get(request);

// DEPRECATED: reading "skyflow_id" from the response map
for (HashMap<String, Object> record : response.getData()) {
String deprecatedId = (String) record.get("skyflow_id"); // @deprecated — use "skyflowId"
String preferredId = (String) record.get("skyflowId"); // preferred
System.out.println("skyflow_id (deprecated): " + deprecatedId);
System.out.println("skyflowId (preferred) : " + preferredId);
}
} catch (SkyflowException e) {
System.out.println("Error during fetch:");
e.printStackTrace();
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,18 @@
import java.util.HashMap;

/**
* @deprecated Pre-v2.1 pattern. The "skyflow_id" key in the data map is deprecated.
* Use "skyflowId" instead (see {@link com.example.vault.UpdateExample}).
* @deprecated Pre-v2.1 pattern. Demonstrates two deprecated APIs:
* <ul>
* <li>The {@code "skyflow_id"} key in the data map — use {@code "skyflowId"} instead.</li>
* <li>{@code updateLogLevel()} on the Skyflow client — use {@code setLogLevel()} instead.</li>
* </ul>
* See {@link com.example.vault.UpdateExample} for the current pattern.
*
* This example is retained for reference during the deprecation window.
* "skyflow_id" still works but emits a runtime warning and will be removed in a future release.
* Both still work but emit runtime warnings and will be removed in a future release.
*/
@Deprecated
public class UpdateExample {
@SuppressWarnings("deprecation")
public static void main(String[] args) throws SkyflowException {
// Step 1: Set up credentials for the first vault configuration
Credentials credentials = new Credentials();
Expand All @@ -38,11 +42,12 @@ public static void main(String[] args) throws SkyflowException {
skyflowCredentials.setCredentialsString("<YOUR_CREDENTIALS_STRING>"); // Replace with the actual credentials string

// Step 4: Create a Skyflow client and add vault configurations
// DEPRECATED: use setLogLevel() instead of updateLogLevel()
Skyflow skyflowClient = Skyflow.builder()
.setLogLevel(LogLevel.ERROR) // Enable debugging for detailed logs
.addVaultConfig(vaultConfig) // Add the vault configuration
.addSkyflowCredentials(skyflowCredentials) // Add general Skyflow credentials
.addVaultConfig(vaultConfig)
.addSkyflowCredentials(skyflowCredentials)
.build();
skyflowClient.updateLogLevel(LogLevel.ERROR); // @deprecated — use setLogLevel(LogLevel.ERROR)

// Step 5: Update records with TokenMode enabled
// DEPRECATED: use "skyflowId" key instead of "skyflow_id"
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/com/skyflow/ConnectionClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ private void prioritiseCredentials() throws SkyflowException {
} catch (DotenvException e) {
throw new SkyflowException(ErrorCode.INVALID_INPUT.getCode(),
ErrorMessage.EmptyCredentials.getMessage());
} catch (SkyflowException e) {
throw e;
} catch (Exception e) {
throw new RuntimeException(e);
}
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/com/skyflow/VaultClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -876,6 +876,8 @@ private void prioritiseCredentials() throws SkyflowException {
} catch (DotenvException e) {
throw new SkyflowException(ErrorCode.INVALID_INPUT.getCode(),
ErrorMessage.EmptyCredentials.getMessage());
} catch (SkyflowException e) {
throw e;
} catch (Exception e) {
throw new RuntimeException(e);
}
Expand Down
5 changes: 4 additions & 1 deletion src/main/java/com/skyflow/logs/InfoLogs.java
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,10 @@ public enum InfoLogs {
DEPRECATED_SKYFLOW_ID_REQUEST_KEY("[DEPRECATED] Request data key 'skyflow_id' is deprecated and will be removed in an upcoming release. Use 'skyflowId' instead."),
DEPRECATED_DOWNLOAD_URL("[DEPRECATED] Method 'downloadURL()' is deprecated and will be removed in an upcoming release. Use 'downloadUrl()' instead."),
DEPRECATED_GET_BYOT("[DEPRECATED] Method 'getBYOT()' is deprecated and will be removed in an upcoming release. Use 'getByot()' instead."),
DEPRECATED_UPDATE_LOG_LEVEL("[DEPRECATED] Method 'updateLogLevel()' is deprecated and will be removed in an upcoming release. Use 'setLogLevel()' instead.");
DEPRECATED_UPDATE_LOG_LEVEL("[DEPRECATED] Method 'updateLogLevel()' is deprecated and will be removed in an upcoming release. Use 'setLogLevel()' instead."),
DEPRECATED_CREDENTIAL_CLIENT_ID("[DEPRECATED] Credential field 'clientID' is deprecated and will be removed in an upcoming release. Use 'clientId' instead."),
DEPRECATED_CREDENTIAL_KEY_ID("[DEPRECATED] Credential field 'keyID' is deprecated and will be removed in an upcoming release. Use 'keyId' instead."),
DEPRECATED_CREDENTIAL_TOKEN_URI("[DEPRECATED] Credential field 'tokenURI' is deprecated and will be removed in an upcoming release. Use 'tokenUri' instead.");



Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,9 @@ private static V1GetAuthTokenResponse getBearerTokenFromCredentials(
JsonElement clientId = credentials.get("clientId");
if (clientId == null) {
clientId = credentials.get("clientID");
if (clientId != null) {
LogUtil.printWarningLog(InfoLogs.DEPRECATED_CREDENTIAL_CLIENT_ID.getLog());
}
}
if (clientId == null) {
LogUtil.printErrorLog(ErrorLogs.CLIENT_ID_IS_REQUIRED.getLog());
Expand All @@ -117,6 +120,9 @@ private static V1GetAuthTokenResponse getBearerTokenFromCredentials(
JsonElement keyId = credentials.get("keyId");
if (keyId == null) {
keyId = credentials.get("keyID");
if (keyId != null) {
LogUtil.printWarningLog(InfoLogs.DEPRECATED_CREDENTIAL_KEY_ID.getLog());
}
}
if (keyId == null) {
LogUtil.printErrorLog(ErrorLogs.KEY_ID_IS_REQUIRED.getLog());
Expand All @@ -126,6 +132,9 @@ private static V1GetAuthTokenResponse getBearerTokenFromCredentials(
JsonElement tokenUri = credentials.get("tokenUri");
if (tokenUri == null) {
tokenUri = credentials.get("tokenURI");
if (tokenUri != null) {
LogUtil.printWarningLog(InfoLogs.DEPRECATED_CREDENTIAL_TOKEN_URI.getLog());
}
}
if (tokenUri == null) {
LogUtil.printErrorLog(ErrorLogs.TOKEN_URI_IS_REQUIRED.getLog());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,9 @@ private static List<SignedDataTokenResponse> generateSignedTokensFromCredentials
JsonElement clientId = credentials.get("clientId");
if (clientId == null) {
clientId = credentials.get("clientID");
if (clientId != null) {
LogUtil.printWarningLog(InfoLogs.DEPRECATED_CREDENTIAL_CLIENT_ID.getLog());
}
}
if (clientId == null) {
LogUtil.printErrorLog(ErrorLogs.CLIENT_ID_IS_REQUIRED.getLog());
Expand All @@ -118,6 +121,9 @@ private static List<SignedDataTokenResponse> generateSignedTokensFromCredentials
JsonElement keyId = credentials.get("keyId");
if (keyId == null) {
keyId = credentials.get("keyID");
if (keyId != null) {
LogUtil.printWarningLog(InfoLogs.DEPRECATED_CREDENTIAL_KEY_ID.getLog());
}
}
if (keyId == null) {
LogUtil.printErrorLog(ErrorLogs.KEY_ID_IS_REQUIRED.getLog());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -968,7 +968,7 @@ public static void validateDeidentifyFileRequest(DeidentifyFileRequest request)
if (request.getWaitTime() != null && request.getWaitTime() <= 0) {
throw new SkyflowException(ErrorCode.INVALID_INPUT.getCode(), ErrorMessage.InvalidWaitTime.getMessage());
}
if(request.getWaitTime() > 64) {
if(request.getWaitTime() != null && request.getWaitTime() > 64) {
throw new SkyflowException(ErrorCode.INVALID_INPUT.getCode(), ErrorMessage.WaitTimeExceedsLimit.getMessage());
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ public InsertResponse insert(InsertRequest insertRequest) throws SkyflowExceptio
return new InsertResponse(null, errorFields.isEmpty() ? null : errorFields);
}
if (errorFields.isEmpty()) {
return new InsertResponse(insertedFields.isEmpty() ? null : insertedFields, null);
return new InsertResponse(insertedFields, null);
}
return new InsertResponse(insertedFields, errorFields);
}
Expand Down
Loading
Loading