Pedro Cerejo ed8443a57a
feat: add mapping property support for documentation plugin's open api generated docs (#21752)
* feat: add mapping property support for documentation plugin's open API generated spec

Dynamic zones are reflected in the OpenAPI docs generated as an anyOf.
We can use a discriminator and mapping to improve the docs.

* fix: missing one value enum for __component property

* enhancement: extract logic to convert component names to OpenAPI names

* chore: run prettier write on clean schema attributes

---------

Co-authored-by: Jamie Howard <48524071+jhoward1994@users.noreply.github.com>
2024-10-11 11:12:50 +01:00
..
2024-03-21 18:20:12 +01:00
2024-03-21 18:20:12 +01:00