open-api icon indicating copy to clipboard operation
open-api copied to clipboard

$ref external yaml file does not work

Open zcb22000 opened this issue 9 years ago • 1 comments

I use the dist folder files in master, and use $ref to reference external yaml file, but it can't resolved. my yaml format is :

  parameters:
    -
      name: request
      in: body
      required: true
      schema:
        $ref: './deviceManageDF.yaml#/definitions/AddDeviceDTONA2Cloud'

even modified with full acess path as:

  parameters:
    -
      name: request
      in: body
      required: true
      schema:
        $ref: 'http://localhost:8080/swagger-ui/deviceManageDF.yaml#/definitions/AddDeviceDTONA2Cloud'

It displayed: http://localhost:8080/swagger-ui/deviceManageDF.yaml#/definitions/AddDeviceDTOCloud2NA is not defined!

zcb22000 avatar Feb 25 '17 08:02 zcb22000

@zcb22000 were you able to solve your issue?

jsdevel avatar Feb 27 '17 20:02 jsdevel