Skip to content
This repository was archived by the owner on Sep 14, 2022. It is now read-only.
This repository was archived by the owner on Sep 14, 2022. It is now read-only.

oneOf, anyOf, allOf support? #219

@DenisNovac

Description

@DenisNovac

Is there an oneOf, anyOf, etc support (https://swagger.io/docs/specification/data-models/oneof-anyof-allof-not/) in ApiResponses annotation? For example, i want to return one of two schemas with the same code:

@ApiResponses(Array (
  new ApiResponse(code = 200, message = "O", response = classOf[MyClass]),
  new ApiResponse(code = 200, message = "", response = classOf[MySecondClass])
))

This code makes swager.yml with only last response model.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions