<#2997 feat: Transform strings with respect to pro...
# meltano-repo-activity
g
#2997 feat: Transform strings with respect to property schema when conforming properties Pull request opened by ReubenFrankel Adds support for transforming string values to their defined property schema types. --- Related discussion: #2994 Closes #3014 ## Summary by Sourcery Add automatic type conversion for string properties based on their schema during data conforming. New Features: • Transform string values to boolean, integer, number, array, or object types according to the property's JSON schema definition. • Handle empty strings appropriately for each target type (e.g., 0 for integer/number, False for boolean, empty list/dict for array/object). • Treat 'inf' and 'nan' strings as null when converting to numbers. • Parse JSON strings when converting to array or object types. • Perform case-insensitive matching for 'true' when converting to boolean; other strings become False. • Return None for empty strings if the target schema is nullable and not string type itself Tests: • Add unit tests to cover various string transformation scenarios, including edge cases. meltano/sdk