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

oneOf, anyOf, allOf support? #219

Open
DenisNovac opened this issue Feb 28, 2020 · 1 comment
Open

oneOf, anyOf, allOf support? #219

DenisNovac opened this issue Feb 28, 2020 · 1 comment

Comments

@DenisNovac
Copy link

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.

@gaeljw
Copy link

gaeljw commented Aug 29, 2020

This is OpenApiSpec 3.0 which is not yet supported by this project.

Related to #159

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants