Skip to content
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
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import com.sap.cloud.sdk.services.openapi.apache.apiclient.BaseApi;
import com.sap.cloud.sdk.services.openapi.apache.apiclient.Pair;
import com.sap.cloud.sdk.services.openapi.apache.core.OpenApiRequestException;
import java.io.File;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
Expand Down Expand Up @@ -432,7 +433,7 @@ public OrchestrationConfigGetResponse getOrchestrationConfigByUuid(
*/
@Nonnull
public OrchestrationConfigPostResponse importOrchestrationConfig(
@Nullable final String aiResourceGroup, @Nullable final byte[] _file)
@Nullable final String aiResourceGroup, @Nullable final File _file)
throws OpenApiRequestException {

// create path and map variables
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import com.sap.cloud.sdk.services.openapi.apache.apiclient.BaseApi;
import com.sap.cloud.sdk.services.openapi.apache.apiclient.Pair;
import com.sap.cloud.sdk.services.openapi.apache.core.OpenApiRequestException;
import java.io.File;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
Expand Down Expand Up @@ -448,7 +449,7 @@ public PromptTemplateGetResponse getPromptTemplateByUuid(@Nonnull final UUID pro
public PromptTemplatePostResponse importPromptTemplate(
@Nullable final String aiResourceGroup,
@Nullable final String aiResourceGroupScope,
@Nullable final byte[] _file)
@Nullable final File _file)
throws OpenApiRequestException {

// create path and map variables
Expand Down
1 change: 1 addition & 0 deletions docs/release_notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
### 🔧 Compatibility Notes

- [Document Grounding] `getAllPipelines()` has additional nullable parameter `metadataConfigId`.
- [Prompt Registry] The `importPromptTemplate` and `importOrchestrationConfig` accepts `File` instead of `byte[]` to propagate file name in `Content-Disposition` header.

### ✨ New Functionality

Expand Down
10 changes: 9 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
<maven.compiler.proc>full</maven.compiler.proc>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.build.outputTimestamp>2025-04-03T13:23:00Z</project.build.outputTimestamp>
<cloud-sdk.version>5.29.0</cloud-sdk.version>
<cloud-sdk.version>5.30.0</cloud-sdk.version>
<junit-jupiter.version>6.0.3</junit-jupiter.version>
<wiremock.version>3.13.2</wiremock.version>
<assertj-core.version>3.27.7</assertj-core.version>
Expand Down Expand Up @@ -286,6 +286,14 @@
<groupId>com.sap.cloud.sdk.datamodel</groupId>
<artifactId>openapi-generator-maven-plugin</artifactId>
<version>${cloud-sdk.version}</version>
<dependencies>
<!-- Handle regression in 7.22.0 -->
<dependency>
<groupId>org.openapitools</groupId>
<artifactId>openapi-generator</artifactId>
<version>7.21.0</version>
</dependency>
</dependencies>
Comment on lines +290 to +296
Copy link
Copy Markdown
Member

@rpanackal rpanackal May 7, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

7.22.0 brings in a regression on generated mode classes.

Image Image

String (before) is now generated as TrckExecutionId. TrckExecutionId has a schema in spec and is simply a string container. Previously, such string container schemas were resolved to inner String for simplicity.

The resolution is breaking at the moment and there is no equivalent model class generated.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

</plugin>
<plugin>
<groupId>org.openapitools</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ PromptTemplateListResponse history() {

@GetMapping("/importTemplate")
PromptTemplatePostResponse importTemplate() throws IOException {
val template = new ClassPathResource("prompt-template.yaml").getContentAsByteArray();
val template = new ClassPathResource("prompt-template.yaml").getFile();
return promptClient.importPromptTemplate("default", null, template);
}

Expand Down
Loading