Hello, everyone
I expected using $ref in response structure while export openAPI docs, but i used schemas in some api response then found it flattens the schema and displays it in the api response in openAPI docs.

Hello, everyone
I expected using $ref in response structure while export openAPI docs, but i used schemas in some api response then found it flattens the schema and displays it in the api response in openAPI docs.
Based on your screenshot, this typically occurs when the response schema is defined directly within the response object rather than referencing a reusable schema component. You can update the reference according to the documentation: Overview - Apidog Docs. Please try exporting again to verify the change.
I already using reusable schema and component in the response structure, but i still got the flattens of the response structure when export openAPI docs.
You can use the $ref to the root node like this
I don’t know where the setting are wrong, my reference schema is still set to ROOT. Then i found that the button to export openAPI docs is missing …
PaperReference directly at the root node like this.
Thx melo , this video is very helpful for me