Swagger Yaml with generalizaion class

Hi,

when I a yaml file with the API-Code Generator for Swagger I have this problem:

When I have this Class Diagram with a REST Service and a Class “ProductResponse”

image

ProductResponse is a generalization from BaseResponse. When I generate the yaml, the inherited attributes are missing:

paths:
/action:
get:
operationId: “product”
responses:
200:
description: “OK”
schema:
$ref: “#/definitions/ProductResponse”
definitions:
ProductResponse:
type: “object”
properties:
Color:
type: “string”

Is there a way to include them

Hi,

Thanks for your inquiry. We are currently investigating the issue and apologize for the inconvenience.

Hi Georg_Jennessen,

Our engineers had enhanced the software which support include the inherit attributes in generated yaml. Please update the software to latest patch build (20180515da or later) to this enhancement. Details about update to latest patch can be found at

  • Please make sure you have pressed the “Update to latest patch” button on the left hand side of the dialog right after launching the update program

Feel free to contact me if you require any further information.

Best regards,
Rain Wong

Great, now it works!

Thank you!