Skip to content

fix: [PromptRegistry] byte[] to File on uploads#833

Open
newtork wants to merge 7 commits intomainfrom
fix/import-prompt-template
Open

fix: [PromptRegistry] byte[] to File on uploads#833
newtork wants to merge 7 commits intomainfrom
fix/import-prompt-template

Conversation

@newtork
Copy link
Copy Markdown
Contributor

@newtork newtork commented Apr 21, 2026

  • Find proper solution

See diff:

  • multipart payload requires filename definition
image

Currently the generated code will not offer that since internally it uses ByteArrayBody instead of FileBody.
The latter will add a filename reference.

image

Currently the workaround is to use File instead of byte[].


Update 7, May

Edit: This PR now holds the actual fix. Earlier, it served as an example for what the generated code should like.

Now, since the latest cloud sdk release (5.30.0), we have regenerated the prompt-registry module.

@newtork newtork added the please-review Request to review a pull-request label Apr 21, 2026
@rpanackal rpanackal changed the title fix: [Template] test fix: [Prompt Registry] byte[] to File on uploads May 6, 2026
@rpanackal rpanackal changed the title fix: [Prompt Registry] byte[] to File on uploads fix: [PromptRegistry] byte[] to File on uploads May 6, 2026
Comment thread pom.xml
Comment on lines +290 to +296
<!-- Handle regression in 7.22.0 -->
<dependency>
<groupId>org.openapitools</groupId>
<artifactId>openapi-generator</artifactId>
<version>7.21.0</version>
</dependency>
</dependencies>
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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

please-review Request to review a pull-request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants