I created a problem on a grand scale, as the help provided by Arno, although it is a valid yaml, will give you NPE exceptions when trying to generate. You will need to provide an object similar to the following:
myDataItem: type: object description: A list of values required: - values properties: values: type: array items: type: string
And then refer to it (in your post, etc.):
schema: $ref: "#/definitions/myDataItem"
For reference: problem with github:
https://github.com/swagger-api/swagger-codegen/issues/6745
Note. The problem has been fixed in version 2.3.0 and higher, ideally you should upgrade to this version.
PeterS
source share