You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How skip_when_empty is related to $element->setMin(0) ? TBH i forgot where it was set, however OTA was one of the main usecases i had when developing this library, thus most of the common situations should be handled.
can you describe what is the expected behavior? how metadata look and how would you like them to look?
imho: the xpath-query should be restricted to the "direct" anchestor.
e.g. in the schema sample above the choice should only be valid for <xs:element name="Errors"> or <xs:sequence>
and not for the element <xs:element name="ReservationsList"> cause this element is a "sub/sub-child"
Hi,
i'm currently working on a project with OpenTravel-Data called Alpinebits.
(Sorry, i'm not 100% sure, if i am in the correct project because it could also fit better in the xsd2php project).
I am using xsd2php to generate the classes and the JMS-Metadata.
The problem is that a property has the
skip_when_empty: true
-Flag in the metadata-file und therefore the property is not serialized.i checked it and found out that the minOccurs was set to 0 in this if-block:
xsd-reader/src/SchemaReader.php
Lines 1376 to 1378 in a434167
i think the xpath-query should only check the first anchestor (parent) or am i wrong?
method-schema
method-response
The text was updated successfully, but these errors were encountered: