bet365 / soap

Make it easy to use SOAP from Erlang
Apache License 2.0
200 stars 75 forks source link

Fix types based on dialyzer checks #17

Closed define-null closed 7 years ago

define-null commented 7 years ago

I found this bugs, while running dialyzer for the project that uses soap. While the change might not reflect what was the initial intention of the types for those fields - it at least reflect the current code.

So we might end up with undefined value in wrapper_ns field because of that code: https://github.com/bet365/soap/blob/master/src/soap_parse_wsdl.erl#L337 and decoders just don't have any default falue. So you might wanna change it to decoders = [] :: [{string(), module}] instead of having undefined there.

define-null commented 7 years ago

Added soap_body spec fix

define-null commented 7 years ago

Any chance to merge this?@willemdj @cmullaparthi