Closed Oracking closed 2 years ago
The 'requestBody' field in the generated swagger yaml has a $ref that has an incomplete reference.
Currently, this is the yaml that is generated:
paths: '/some/route': post: requestBody: $ref: 'name_of_function_request_body' # <-- Issue is here
But this is the valid swagger equivalent
paths: '/some/route': post: requestBody: $ref: '#/components/requestBodies/name_of_function_request_body' # <-- Valid Reference
This causes swagger UI to break when fed this yaml
I will start a hotfix branch for this issue
Picking up this issue
I will close this issue for now.
The 'requestBody' field in the generated swagger yaml has a $ref that has an incomplete reference.
Currently, this is the yaml that is generated:
But this is the valid swagger equivalent
This causes swagger UI to break when fed this yaml