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

Swagger definition with a reference instead of a type

Open guisrx opened this issue 6 years ago • 1 comments

https://github.com/kogosoftwarellc/open-api/blob/6463d50555e6faf4875771839d3edbfe1232214b/packages/openapi-types/index.ts#L545

If you have a swagger definition like this:

"PagesRef": {
    "type": "array",
    "items": {
      "$ref": "#/definitions/PagesMemberRef"
    }
}

You can't use OpenAPIV2.Document as type is a mandatory attribute.

guisrx avatar Feb 20 '19 12:02 guisrx

@guisrx please submit a PR

jsdevel avatar Feb 20 '19 16:02 jsdevel