PaloAltoNetworks / docusaurus-openapi-docs

🦝 OpenAPI plugin for generating API reference docs in Docusaurus v2.
https://docusaurus-openapi.tryingpan.dev
MIT License
561 stars 193 forks source link

The plugin seems not to process well when we have "allOf" in the OpenAPI schema #805

Closed JaimeOVasconcelos closed 1 month ago

JaimeOVasconcelos commented 1 month ago

Describe the bug

When we have an object defined with allOf the plugin generates the object without REQUIRED and without the description. For example: image Results in this output without REQUIRED, and when expanded, it has no description: Screenshot 2024-04-19 at 18 48 41

Expected behavior

It should render with the REQUIRED and description as follows: Screenshot 2024-04-19 at 18 57 17

Possible solution

Steps to reproduce

The steps: 1.Define an object with allOf and with with a description, for example: image

2.Define an endpoint with a required parameter defined by the object.

Your Environment

JaimeOVasconcelos commented 1 month ago

After upgrading to the latest version the problem was fixed.