Skip to content

Commit a21aedf

Browse files
committed
♻️ put error parsing in its own package
1 parent 631c85a commit a21aedf

16 files changed

Lines changed: 23 additions & 15 deletions

File tree

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Mindee Java Client Library Changelog
22

3+
## v5.0.0-beta2 - 2026-05-20
4+
### ¡Breaking Changes!
5+
* :recycle: put error parsing in its own package
6+
7+
38
## v5.0.0-beta1 - 2026-05-06
49
### ¡Breaking Changes!
510
* :coffin: Remove obsolete/unused products:

docs/code_samples/v2_classification.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ public class SimpleMindeeClientV2 {
1010
throws IOException, InterruptedException
1111
{
1212
String apiKey = "MY_API_KEY";
13-
String filePath = "/path/to/the/file.ext";
1413
String modelId = "MY_MODEL_ID";
14+
String filePath = "/path/to/the/file.ext";
1515

1616
// Init a new client
1717
var mindeeClient = new MindeeClient(apiKey);
@@ -38,6 +38,6 @@ public class SimpleMindeeClientV2 {
3838

3939
// Access the classification result
4040
var result = response.getInference().getResult();
41-
var classification = result.getClassification();
41+
String documentType = result.getClassification().getDocumentType();
4242
}
4343
}

docs/code_samples/v2_crop.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ public class SimpleMindeeClientV2 {
1010
throws IOException, InterruptedException
1111
{
1212
String apiKey = "MY_API_KEY";
13-
String filePath = "/path/to/the/file.ext";
1413
String modelId = "MY_MODEL_ID";
14+
String filePath = "/path/to/the/file.ext";
1515

1616
// Init a new client
1717
var mindeeClient = new MindeeClient(apiKey);
@@ -36,6 +36,6 @@ public class SimpleMindeeClientV2 {
3636
System.out.println(response.getInference().toString());
3737

3838
// Access the crop results
39-
var result = response.getInference().getResult();
39+
var crops = response.getInference().getResult().getCrops();
4040
}
4141
}

docs/code_samples/v2_extraction.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ public class SimpleMindeeClientV2 {
1010
throws IOException, InterruptedException
1111
{
1212
String apiKey = "MY_API_KEY";
13-
String filePath = "/path/to/the/file.ext";
1413
String modelId = "MY_MODEL_ID";
14+
String filePath = "/path/to/the/file.ext";
1515

1616
// Init a new client
1717
var mindeeClient = new MindeeClient(apiKey);

docs/code_samples/v2_ocr.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,6 @@ public class SimpleMindeeClientV2 {
3636
System.out.println(response.getInference().toString());
3737

3838
// Access the result OCR pages
39-
var result = response.getInference().getResult();
39+
var pages = response.getInference().getResult().getPages();
4040
}
4141
}

docs/code_samples/v2_split.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ public class SimpleMindeeClientV2 {
1010
throws IOException, InterruptedException
1111
{
1212
String apiKey = "MY_API_KEY";
13-
String filePath = "/path/to/the/file.ext";
1413
String modelId = "MY_MODEL_ID";
14+
String filePath = "/path/to/the/file.ext";
1515

1616
// Init a new client
1717
var mindeeClient = new MindeeClient(apiKey);
@@ -36,6 +36,6 @@ public class SimpleMindeeClientV2 {
3636
System.out.println(response.getInference().toString());
3737

3838
// Access the split result
39-
var result = response.getInference().getResult();
39+
var splits = response.getInference().getResult().getSplits();
4040
}
4141
}

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@
372372

373373
<properties>
374374
<!-- MINDEE VERSION GOES HERE -->
375-
<revision>5.0.0-beta1</revision>
375+
<revision>5.0.0-beta2</revision>
376376

377377
<!-- Give special access when running tests -->
378378
<surefire.addOpens>

src/main/java/com/mindee/v2/MindeeClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
import com.mindee.v2.http.MindeeHttpApiV2;
99
import com.mindee.v2.http.MindeeHttpExceptionV2;
1010
import com.mindee.v2.parsing.CommonResponse;
11-
import com.mindee.v2.parsing.ErrorResponse;
1211
import com.mindee.v2.parsing.JobResponse;
12+
import com.mindee.v2.parsing.error.ErrorResponse;
1313
import com.mindee.v2.product.extraction.ExtractionResponse;
1414
import java.io.IOException;
1515

src/main/java/com/mindee/v2/http/MindeeApiV2.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
import com.mindee.input.URLInputSource;
77
import com.mindee.v2.clientoptions.BaseParameters;
88
import com.mindee.v2.parsing.CommonResponse;
9-
import com.mindee.v2.parsing.ErrorResponse;
109
import com.mindee.v2.parsing.JobResponse;
10+
import com.mindee.v2.parsing.error.ErrorResponse;
1111
import java.io.IOException;
1212

1313
/**

src/main/java/com/mindee/v2/http/MindeeHttpApiV2.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
import com.mindee.v2.MindeeSettings;
99
import com.mindee.v2.clientoptions.BaseParameters;
1010
import com.mindee.v2.parsing.CommonResponse;
11-
import com.mindee.v2.parsing.ErrorResponse;
1211
import com.mindee.v2.parsing.JobResponse;
12+
import com.mindee.v2.parsing.error.ErrorResponse;
1313
import java.io.IOException;
1414
import java.net.URISyntaxException;
1515
import java.nio.charset.StandardCharsets;

0 commit comments

Comments
 (0)