Skip to content
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

Finding types in default namespaces #89

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dyron
Copy link

@dyron dyron commented Feb 23, 2025

While using https://github.com/goetas-webservices/xsd2php the OTA unit tests failed with messages like

[...]
25) GoetasWebservices\Xsd\XsdToPhp\Tests\JmsSerializer\OTA\OTASerializationTest::testConversion
GoetasWebservices\XML\XSDReader\Exception\TypeException: Can't find type named {}#NightDurationType, at line 191 in /var/www/html/xsd2php/tests/JmsSerializer/OTA/otaxml/OTA_SimpleTypes.xsd  in /var/www/html/xsd2php/vendor/goetas-webservices/xsd-reader/src/SchemaReader.php:1136

26) GoetasWebservices\Xsd\XsdToPhp\Tests\JmsSerializer\OTA\PHPConversionTest::testMultiplicity
GoetasWebservices\XML\XSDReader\Exception\TypeException: Can't find type named {}#ary, at line 6 in schema.xsd

27) GoetasWebservices\Xsd\XsdToPhp\Tests\JmsSerializer\OTA\PHPConversionTest::testNestedMultiplicity
GoetasWebservices\XML\XSDReader\Exception\TypeException: Can't find type named {}#ary, at line 5 in schema.xsd

28) GoetasWebservices\Xsd\XsdToPhp\Tests\JmsSerializer\OTA\PHPConversionTest::testMultipleArrayTypes
GoetasWebservices\XML\XSDReader\Exception\TypeException: Can't find type named {}#ArrayOfStrings, at line 13 in schema.xsd

@Guite
Copy link
Collaborator

Guite commented Feb 26, 2025

@dyron thank you very much for the fix

@goetas adding you as reviewer

@Guite Guite requested a review from goetas February 26, 2025 11:22
@goetas
Copy link
Member

goetas commented Mar 13, 2025

@dyron Could you please add a test for this usecse?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants