Documentation Plugin doesn't generate Proper Type for the Localization prop , and doesn't generate Refs for Components in Dynamic Zones #13453
Labels
issue: bug
Issue reporting a bug
severity: low
If the issue only affects a very niche base of users and an easily implemented workaround can solve
source: plugin:documentation
Source is plugin/documentation package
status: confirmed
Confirmed by a Strapi Team member or multiple community members
Bug report
Required System information
Describe the bug
When Generating a OpenAPI documentation with the Documentation Plugin , Content-Types that Are localized have an Empty array for the "localizations" prop instead of the correct type.
Also it doesn't generate Proper refs for Components in Dynamic Zones, which Bloats the Documentation if there are many Components in Dynamic Zones that are used in multiple Content-Types.
This also Makes it not as UserFriendly to use with CodeGens ( i use Orval) because the Component-types in Dynamic Zones are not Named properly (for example A Slider Component is named AnyOf instead of Slider)
Steps to reproduce the behavior
Expected behavior
Components in Dynamic Zones are Reffed.
the localizations prop shows the "parent" content type aswell
Additional context
i Created A Patch for it and would like to submit it as a PR or have it implemented by someone from Strapi:
too much of a wall of text
The text was updated successfully, but these errors were encountered: