-
Notifications
You must be signed in to change notification settings - Fork 17
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
[TASK] Update data type for useNonce argument #79
Conversation
According to `TYPO3\CMS\Fluid\ViewHelpers\Asset\CssViewHelper` and `TYPO3\CMS\Fluid\ViewHelpers\Asset\ScriptViewHelper` the argument `useNonce` should be of type `boolean`.
These files are generated automatically. So, if it is in the docblocks of the view helper classes, we have to investigate why they are not correct in the docs. |
Ok, there seems to be a broader problem with different valid data types for ViewHelper arguments. |
@linawolf Do you have insight in here? |
With regard to the data type |
Thanks for investigating, just looking for the repo where this is handled. |
This seems to be the place where the "mixed" comes from: There seems to be a schema.xsd to be loaded. I assume, this schema generator does not handle the bool. This one? https://github.com/TYPO3/Fluid.SchemaGenerator |
This is where the type mapping is located when generating the XSD file: |
PR to add the correct interpretation of the "bool" notation in the SchemaGenerator has been created: |
My PR to change the generated XSD file TYPO3/Fluid.SchemaGenerator#16 has been merged. What will happen now? Will the documentation be recreated in the foreseeable future on the basis of the new XSD file or does this process still need to be explicitly initiated by someone? |
Pinged Simon about tagging. |
new tag is available @linawolf Do you know, how to trigger a new commit of the changes? The content is still old: |
@brotkrueml we can trigger rerendering here: https://github.com/TYPO3-Documentation/t3docs-ci-deploy/actions/workflows/fluid-viewhelper.yml |
If I read the workflow file correctly, it's also created once a day (at 1 am) via crontab. The latest workflow however shows an error that seems to use PHP 8.1 instead of PHP 8.2 and I'm quite stumped how that happens; the "main" job does set-up PHP 8.2, so why isn't it available... |
Good hint! I will investigate. I was recently making some other changes to the fluid-documentation-generator and they might have an effect here |
So the rendering now worked and the nonce argument is displayed as boolean: @ErHaWeb thanks a lot for supplying the patch in the schema generator! |
According to
TYPO3\CMS\Fluid\ViewHelpers\Asset\CssViewHelper
andTYPO3\CMS\Fluid\ViewHelpers\Asset\ScriptViewHelper
the argumentuseNonce
should be of typeboolean
.