Repository navigation
fix(salesforce): name the fallback dataType in the warning - #561
Merged
jbonofre merged 1 commit intoOct 11, 2026
Merged
Conversation
jbonofre
self-requested a review
October 11, 2026 08:09
jbonofre
approved these changes
Oct 11, 2026
jbonofre
left a comment
Member
There was a problem hiding this comment.
LGTM!
Passing the FieldType into applyOssieDatatype makes the fallback warning name the dataType that applyFieldDefaults actually applies. Both call sites pass the correct type. The new test cover the fallback path: Time has no mapper entry, so it falls back to Number as a measurement.
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.
Summary
Follow-up to #550, answering the review question there.
A field with an explicit Ossie
datatypethat has no safe Salesforce mapping(
Time,Opaque) and no Salesforce extension takes the role default, so aTimemeasurement ships asNumber. The warning said a default was appliedbut not which one, so the change in meaning was invisible in the log:
The review's other option, applying the default only when
datatypeis null,would send
TimeandOpaquefields to the API with nodataTypeagain, whichis the HTTP 500 #550 fixed.
Verification
mvn -B clean verify: 334 tests, 0 failures.mainis 333, so this adds oneand breaks nothing.
apache-rat:checkclean.mainand on thisbranch gives byte-identical JSON, so only the log line changes.
Related Issues
No existing issue covers this.
Checklist
Sections this change does not touch (Specification, Ontology, Validation,
Examples, Documentation) are omitted rather than left unchecked.
Converters
Tests
Compliance