-
-
Notifications
You must be signed in to change notification settings - Fork 88
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
OTA – ListOfRPHType not found #71
Comments
Hmm. list types are particular... are you using the latest version of this lib ? can you check if |
I'm using It should be a simple type: OTA_SimpleTypes: <xs:simpleType name="ListOfRPH">
<xs:annotation>
<xs:documentation xml:lang="en">List of Reference Place Holders.</xs:documentation>
</xs:annotation>
<xs:list itemType="RPH_Type"/>
</xs:simpleType> OTA_HotelReservation.xsd: <xs:complexType name="ResGuestRPHsType">
<xs:annotation>
<xs:documentation xml:lang="en">A collection of unsigned integers serving as reference placeholders, and used as an index identifying which guests occupy this room</xs:documentation>
</xs:annotation>
<xs:simpleContent>
<xs:extension base="ListOfRPH"/>
</xs:simpleContent>
</xs:complexType> |
Something related to xsd2php/src/AbstractConverter.php Line 208 in 4ae6efb
|
I didn't understand, what you tried to tell me in your latest comment. I'm not really interested in the type |
the bug seems to be in that line and on the reason why |
Is there any solution or fix for this problem? I've got the same issue with a list of float values. <xs:simpleType name="float">
<xs:restriction base="xs:float"/>
</xs:simpleType>
<xs:simpleType name="FloatList">
<xs:list itemType="float"/>
</xs:simpleType>
<xs:simpleType name="XYPair">
<xs:restriction base="FloatList"/>
</xs:simpleType> It will be serialized as I think an array of float values will be correct here or a class with an array as property or what ever. |
The resolution of this bug has been sponsored by https://www.weekend4two.com/ and their team. Thanks again for supporting open source and this project. |
I'm using xsd2php to generate classes for OTA 2003/05 / 2014A-1.0.
Until now, everything went fine. However, there's an issue with a simpleType that is not generated. I tried to alias the type without success.
My configuration:
And here's the generated code that causes the problem:
ListOfRPH is an xs:simpleType in OTA_SimpleTypes.xsd. ListOfRPHType is not generated and I can't find a way to prevent xsd2php from referencing it.
Can anyone help me with a workaround or solution?
The text was updated successfully, but these errors were encountered: