]> git.eshelyaron.com Git - emacs.git/commitdiff
soap-client.el: Prevent some invalid encoding warnings
authorThomas Fitzsimmons <fitzsim@fitzsim.org>
Sat, 26 Sep 2020 02:57:25 +0000 (22:57 -0400)
committerThomas Fitzsimmons <fitzsim@fitzsim.org>
Sat, 26 Sep 2020 03:05:34 +0000 (23:05 -0400)
* lisp/net/soap-client.el (soap-encode-xs-complex-type): Do not
warn about missing non-nillable slot if type iself is optional.

lisp/net/soap-client.el

index 7425e8763fbb3948b1132ae79ad2b8a3aeb42ec5..bb74f47a8b9a6af0ea1457d1cb67c771889c2932 100644 (file)
@@ -1716,6 +1716,7 @@ This is a specialization of `soap-encode-value' for
                      ((and (not (eq indicator 'choice))
                            (= instance-count 0)
                            (not (soap-xs-element-optional? element))
+                           (not (soap-xs-complex-type-optional? type))
                            (and (soap-xs-complex-type-p element-type)
                                 (not (soap-xs-complex-type-optional-p
                                       element-type))))