Skip to content

Read stringable objects as strings in length() and reverse() - #140

Merged
GrahamCampbell merged 1 commit into
2.11from
stringable-objects-as-strings
Nov 29, 2026
Merged

GrahamCampbell merged 1 commit into
2.11from
stringable-objects-as-strings

Conversation

@GrahamCampbell

@GrahamCampbell GrahamCampbell commented Nov 29, 2026 •

Copy link
Copy Markdown
Collaborator

An object with a __toString() method has the JMESPath type string, but length() counted its properties and reverse() refused it. Both now read it as the string it converts to.

@GrahamCampbell
GrahamCampbell force-pushed the stringable-objects-as-strings branch from f9c5c8f to 47aff20 Compare November 29, 2026 03:28
Base automatically changed from array-access-objects to 2.11 November 29, 2026 03:28
@GrahamCampbell
GrahamCampbell marked this pull request as ready for review November 29, 2026 03:40
@GrahamCampbell
GrahamCampbell merged commit 882f495 into 2.11 Nov 29, 2026
22 checks passed
@GrahamCampbell
GrahamCampbell deleted the stringable-objects-as-strings branch November 29, 2026 03:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant