Contributions
Re: @ArraySchema with items inheriting from an abstract base class not generating properly
Hievp, What do you mean by "but without the unbound wildcard". Do you want both like this?: "foo": { "type": "array", "items": { "$ref": "#/components/schemas/AbstractType" } }, "bar": { "type": "array", "items": { "$ref": "#/components/schemas/AbstractType" } }, Which codegen version are you using? thanks297Views0likes0CommentsRe: No error in swagger-parser when $ref to nothing
Hi, I tested this with the following spec: openapi: 3.0.0 info: version: 1.0.0 title: Issue 1190 license: name: Apache-2.0 url: 'http://www.apache.org/licenses/LICENSE-2.0.html' paths: /example: get: operationId: example responses: '200': description: successful operation content: 'application/json': schema: $ref: "#/components/schemas/XomeObj" components: schemas: SomeObj1: type: object properties: lorem: type: array minItems: 1 additionalProperties: false items: type: object properties: firstName: type: string lastName: type: string And parser threw a warning: - attribute paths.'/example'(get).responses.200.content.'application/json'.schema.#/components/schemas/XomeObj is missing Please try updating to the latest parser version. And let us know if this fixes the issue, or if the case happening to you is different.687Views0likes0Comments