Generate Schema files only for a chosen namespace like it was possible with generateschema command
This is a bug report for the PR: #876
I'm getting a lot of errors trying to generate schemas for viewhelpers as I can't add a parameter for which namespace I want them to be generated. I don't understand why this parameter is not available which was possible before in the old generateschema command.
I have the schema extension installed which crashes the generation:
vendor/bin/fluid schema
PHP Fatal error: Uncaught Error: Typed property Brotkrueml\Schema\Core\ViewHelpers\AbstractTypeViewHelper::$modelTemplate must not be accessed before initialization in /home/user/xxx/vendor/brotkrueml/schema/Classes/Core/ViewHelpers/AbstractTypeViewHelper.php:41
Before I used to generate the files like so:
vendor/bin/generateschema 'FluidTYPO3\Vhs' > vhs.xsd
vendor/bin/generateschema 'TYPO3\CMS\Form' > form.xsd
Did you see that there is a separate command for TYPO3? Maybe this helps for your use case?
https://docs.typo3.org/c/typo3/cms-core/main/en-us/Changelog/13.2/Feature-104114-CommandToGenerateFluidSchemaFiles.html#feature-104114-command-to-generate-fluid-schema-files
This feature is only for TYPO3 13 but I'm using TYPO3 12...
and the TYPO3 command also misses the namespace parameter to only render one namespace at a time
Our intention was to create a zero-config command to cover the most common use case.
Note that the old schema generator still works, and you can also use the new classes as API for your own commands. For example, I used this for the new ViewHelper documentation generator.