yonaskolb / SwagGen

OpenAPI/Swagger 3.0 Parser and Swift code generator
MIT License
626 stars 146 forks source link

Inline groups of "allOf" leads to unknown types #218

Closed Cy-4AH closed 4 years ago

Cy-4AH commented 4 years ago

https://github.com/yonaskolb/SwagGen/blob/97ee617a6315c7f5a704766181e1e5697547944a/Sources/SwagGenKit/SwaggerExtensions.swift#L162

Should return here self instead of nil

Example:

    Event:
      type: object
      properties:
        location:
          allOf:
            - $ref: '#/components/schemas/AddressModel'
          nullable: true