Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adjust input parsing #122

Merged
merged 1 commit into from
Oct 27, 2024
Merged

adjust input parsing #122

merged 1 commit into from
Oct 27, 2024

Conversation

pcai
Copy link
Member

@pcai pcai commented Oct 27, 2024

Fixes some apparent regressions from #114

see savonrb/savon#1016 for reproduction

Unfortunately this change isn't motivated by any specific understanding of the relevant specification, only that it appears to address issues that have been reported since the change specified in #114 was released.

other changes

I tried my best to add a few lines of documentation as i reviewed the code to make it easier in the future to parse what is happening.
Slightly refactored a weird and kinda awkward usage of super() in one of the tests

@@ -291,6 +290,22 @@ def input_output_for(operation, input_output)
end
end

# If the message is not found, we should use the operation name as the message name for document style operations
# applies only to output
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I arbitrarily decided to apply this logic on output only, because it seemed to fix the most issues while minimizing new ones

@pcai pcai merged commit 1a7bb93 into main Oct 27, 2024
24 checks passed
@pcai pcai deleted the input-parse-fix branch October 27, 2024 19:08
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