Skip to content

Conversation

alexambarch
Copy link
Contributor

@alexambarch alexambarch commented Feb 5, 2025

Currently, if a stream in a connection has field paths defined whose ordering does not match exactly with the way it's retrieved from the API, it is reported as a "change" regardless of whether there were any actual changes.

This is a proof of concept to add a plan modifier on the selected_fields that sorts the field paths in the plan by length, smallest first. This is the ordering the plan seems to be getting compared against. From my local testing it appears to work to silence the spurious changes in the fields.

As a disclaimer: I don't develop providers and I'm aware that Speakeasy is the one that generates this provider, so I'm not expecting this to get merged.

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