SDK regeneration - #214
Closed
fern-api[bot] wants to merge 5 commits into
Closed
SDK regeneration#214fern-api[bot] wants to merge 5 commits into
fern-api[bot] wants to merge 5 commits into
Conversation
Generated by Fern CLI Version: unknown Generators: - fernapi/fern-java-sdk: 4.19.2
🌿 Generated with Fern
🌿 Generated with Fern
…e0c37e3812b79507 [skip ci]
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 40ea59d. Configure here.
| .addPathSegments("items"); | ||
| FileStream fs = new FileStream(stream, filename, null); | ||
| MultipartBody.Builder multipartBodyBuilder = new MultipartBody.Builder().setType(MultipartBody.FORM); | ||
| multipartBodyBuilder.addFormDataPart("file", filename, fs.toRequestBody()); |
There was a problem hiding this comment.
Stream uploads omit required fields
High Severity
The InputStream uploadItem overloads send only a file multipart part and never attach document, create, request_id, or id. The unused file argument is also ignored. The API requires exactly one of document or create, so these public methods always produce a 400 and cannot express a valid batch item.
Additional Locations (2)
Reviewed by Cursor Bugbot for commit 40ea59d. Configure here.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


17.13.0 → 17.13.1
🌿 Generated with Fern
Note
Medium Risk
Large generated surface area with additive APIs, but OAuth grant-type removal and environment builder changes can break existing auth and URL configuration.
Overview
Regenerates the phenoml Java SDK from 17.13.0 to 17.13.1 (Fern CLI/generator bump) and exposes new platform APIs plus a few client behavior tweaks.
Lang2Fhir batch — Adds
client.lang2FhirBatch()with create/list, multipart item upload, finalize, cancel, job status, and paginated results retrieval (idempotentrequest_idon create/upload).FHIR packaging & profiles — Implementation guides gain
createVersion/getVersion, updated delete semantics, and summary fields (canonical_url,version_count). Custom profiles addclient.profiles().versions()for listing, creating, fetching, and deleting retained StructureDefinition versions; list/update/delete docs reflect version retention rules.Document extraction — Lang2Fhir document/multi now document RTF and XML/C-CDA (with size/instance constraints) and map 403 responses via
ForbiddenError.Integrator-facing changes — Credentials auth no longer accepts a custom OAuth
grantType(alwaysclient_credentials).instanceUrlonly rewrites the base URL when environment is unset orDEFAULT, preserving other custom environments. SDK identity headers and Maven version align to 17.13.1;ClientOptions.addHeaderskips null values.Reviewed by Cursor Bugbot for commit 40ea59d. Bugbot is set up for automated code reviews on this repo. Configure here.