yaade icon indicating copy to clipboard operation
yaade copied to clipboard

Feature Request: OpenApi import: support $ref remote reference

Open rzorzorzo opened this issue 2 years ago • 1 comments

example: https://gitlab.ow2.org/bonita/bonita-openapi/-/tree/master currently there is no way of importing this openapi spec into yajsw.

import of the entry point openapi/openapi.yaml causes the following error:

java.lang.RuntimeException: Unable to load RELATIVE ref: ./paths/loginservice.yaml path: /tmp

Suggestion: allow import of a .zip file with input of relative path to the entry point file.

This also raises the general question of support for http uris. I think that supporting http uris could lead to security issues or require authentication.

reference: https://swagger.io/docs/specification/using-ref/

rzorzorzo avatar Dec 22 '22 10:12 rzorzorzo

Will look into it. Since resolving HTTP could lead to security issues, we probably just start with the .zip file approach.

jonrosner avatar Dec 24 '22 21:12 jonrosner