Skip to content

Fix/MID-11929 (Regressionin handling of connId constants deserialization type) - #4

Open
matusmacik wants to merge 2 commits into
mainfrom
fix/MID-11929
Open

Fix/MID-11929 (Regressionin handling of connId constants deserialization type)#4
matusmacik wants to merge 2 commits into
mainfrom
fix/MID-11929

Conversation

@matusmacik

Copy link
Copy Markdown
Contributor

Enforce String type for ConnId UID / NAME attributes

  • Added forcedConnIdType() in AbstractAttributeBuilder to return String.class for __UID__ and __NAME__ (unless explicitly declared).
  • Updated AbstractAttributeBuilder.JsonBuilder#build to apply this forced type via ValueTypeOverrideMapping before any explicit connIdType override.
  • Ensures ConnId’s contract (UID/NAME are always String) is respected even when the OpenAPI schema defines a different native type.
  • Added ForcedConnIdTypeTest class with unit tests to verify the supported use-casses.
  • Refactored MappingRuleTest and reused the inner static classes for reuse in ForcedConnIdTypeTest .

- In case of some connId constantds UID, NAME the connId type during
  deserialization must always be STRING.
- Tests for various use-casses
- Refactoring MappingRuleTests class and reusing inner classes.
@matusmacik matusmacik changed the title Fix/MID-11929 (Regresion in handling of connId constants deserialization type) Fix/MID-11929 (Regressionin handling of connId constants deserialization type) Sep 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant