porta
porta copied to clipboard
THREESCALE-10883: Fix OAS document order
When the "components" section of a Swagger document is placed before the "paths", the rendering of schemas with $ref fails to display.
This patch just make sure to move "components" to latest element in hash if they exist, fixing the issue.
fixes #THREESCALE-10883