Open horstoeko opened 9 months ago
somenamespace\DocumentCodeType
in the YAML it is a bug, it should be string
. In your case DocumentCodeContentType
extends xs:token
that is a string. The issue is somewhere in https://github.com/goetas-webservices/xsd2php/blob/5e5f02645da79bc4febfeb9a47cd4760861b2577/src/Jms/YamlConverter.php#L403C31-L403C31 but might be not trivial to debug.
Hi @goetas,
thank you for your answer... I will have an eye on it...
Hi.
First of all - thank you for this great tool. You did a good job.
I have noticed that the DocBlocks are created incorrectly. I have the following behaviour:
The XSD presents with the following:
In particular, I am concerned here with the element TypeCode, which is of the type DocumentCodeType.
The type DocumentCodeType is declared in the XSD as follows
The DocumentCodeContentType is declared in die XSD as follows:
The resulting class for
ExchangedDocumentType
is generated in this respect as follows:Here you can see that the data type is assumed to be ``string''.
However, if one follows the information from the YAML file generated at the same time, then I would have expected another data type to be mentioned in the DocBlock, namely
somenamespace\DocumentCodeType
:I would actually expect the following DocBlock at this point:
Can anyone help me with this issue?
Thank you very much.