swagger-ui icon indicating copy to clipboard operation
swagger-ui copied to clipboard

allOf support problem

Open zcb22000 opened this issue 9 years ago • 2 comments

When reporting a bug, please provide the following details:

  • swagger-ui version : master
  • a swagger file reproducing the issue In my definition, i used allOf to support extend class. My yaml is : QueryDeviceDataHistoryDTOCloud2NA: required:
    • devices allOf:
    • $ref: './commonDF.yaml#/definitions/PageDTO'
    • properties: devices: type: array items: $ref: '#/definitions/DeviceDataHistoryDTO'

But it does not resovled in html of DeviceDataHistoryDTO, it display as follow: QueryDeviceDataHistoryDTOCloud2NA { devices (Array[http://localhost:8090/swagger-ui/yaml/./definitions/deviceManageDF.yaml#/definitions/DeviceDataHistoryDTO]), totalCount (integer, optional): totalCount , pageNo (integer, optional): pageNo , pageSize (integer, optional): pageSize } http://localhost:8090/swagger-ui/yaml/./definitions/deviceManageDF.yaml#/definitions/DeviceDataHistoryDTO {}

And it can accessed fine of http://localhost:8090/swagger-ui/yaml/./definitions/deviceManageDF.yaml.

Is there any error?

zcb22000 avatar Feb 27 '17 09:02 zcb22000

Does it not supported parent class where using allOf in swagger ui with java ?

zcb22000 avatar Feb 27 '17 10:02 zcb22000

Should be resolved in 3.X.

webron avatar Mar 25 '17 03:03 webron