Skip to content

Commit 5075e1f

Browse files
authored
Merge pull request #170 from rosette-api/WS-2181
WS-2181: add workspaceId
2 parents 6bd1bcc + c34f0f0 commit 5075e1f

File tree

13 files changed

+18
-62
lines changed

13 files changed

+18
-62
lines changed

DEVELOPER.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ To be updated..
55

66

77
#### Internal Releasing
8-
TBD..
8+
9+
To perform an internal release, use `-Drelease-profile=internal-release` in `release:perform`.
10+
911

1012
#### Old Stuff
1113
[Docker](examples/docker) bits for running examples. Maybe just remove?

annotations/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<parent>
2020
<groupId>com.basistech.rosette</groupId>
2121
<artifactId>rosette-api-java-binding</artifactId>
22-
<version>1.18.102-SNAPSHOT</version>
22+
<version>1.18.103-SNAPSHOT</version>
2323
</parent>
2424
<artifactId>rosette-api-annotations</artifactId>
2525
<name>rosette-api-annotations</name>

api/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<parent>
2020
<groupId>com.basistech.rosette</groupId>
2121
<artifactId>rosette-api-java-binding</artifactId>
22-
<version>1.18.102-SNAPSHOT</version>
22+
<version>1.18.103-SNAPSHOT</version>
2323
</parent>
2424
<artifactId>rosette-api</artifactId>
2525
<name>rosette-api</name>

common/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<parent>
2020
<groupId>com.basistech.rosette</groupId>
2121
<artifactId>rosette-api-java-binding</artifactId>
22-
<version>1.18.102-SNAPSHOT</version>
22+
<version>1.18.103-SNAPSHOT</version>
2323
</parent>
2424
<artifactId>rosette-api-common</artifactId>
2525
<name>rosette-api-common</name>

examples/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<parent>
2121
<groupId>com.basistech.rosette</groupId>
2222
<artifactId>rosette-api-java-binding</artifactId>
23-
<version>1.18.102-SNAPSHOT</version>
23+
<version>1.18.103-SNAPSHOT</version>
2424
</parent>
2525
<groupId>com.basistech.rosette</groupId>
2626
<artifactId>rosette-api-examples</artifactId>

json/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<parent>
2121
<groupId>com.basistech.rosette</groupId>
2222
<artifactId>rosette-api-java-binding</artifactId>
23-
<version>1.18.102-SNAPSHOT</version>
23+
<version>1.18.103-SNAPSHOT</version>
2424
</parent>
2525
<artifactId>rosette-api-json</artifactId>
2626
<name>rosette-api-json</name>

json/src/test/java/com/basistech/rosette/apimodel/PolymorphicRequestTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public void init() {
3535

3636
@Test
3737
public void testRequestTypes() throws Exception {
38-
String json = "{\"content\": \"what is my type\", \"language\": \"eng\", \"options\": {\"calculateConfidence\": true}}";
38+
String json = "{\"content\": \"what is my type\", \"language\": \"eng\", \"options\": {\"workspaceId\": \"ws1\"}}";
3939
Request request = mapper.readValue(json, new TypeReference<DocumentRequest<EventsOptions>>() { });
4040
assertTrue(request instanceof DocumentRequest);
4141

model/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<parent>
2020
<groupId>com.basistech.rosette</groupId>
2121
<artifactId>rosette-api-java-binding</artifactId>
22-
<version>1.18.102-SNAPSHOT</version>
22+
<version>1.18.103-SNAPSHOT</version>
2323
</parent>
2424
<artifactId>rosette-api-model</artifactId>
2525
<name>rosette-api-model</name>

model/src/main/java/com/basistech/rosette/apimodel/Event.java

Lines changed: 0 additions & 42 deletions
This file was deleted.

model/src/main/java/com/basistech/rosette/apimodel/EventsOptions.java

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,17 +31,11 @@ public class EventsOptions extends Options {
3131
* Default options
3232
*/
3333
public static final EventsOptions DEFAULT = EventsOptions.builder()
34-
.calculateConfidence(false)
35-
.modelType("stubModel")
34+
.workspaceId("_unset_")
3635
.build();
3736

38-
/**
39-
* @return the calculateConfidence flag.
40-
*/
41-
private final Boolean calculateConfidence;
42-
4337
/**
4438
* @return the modelType to use.
4539
*/
46-
private final String modelType;
40+
private final String workspaceId;
4741
}

0 commit comments

Comments
 (0)