cancel
Showing results for 
Search instead for 
Did you mean: 

Specify Any Type in Swagger Core

Highlighted
Occasional Visitor

Specify Any Type in Swagger Core

I would like to use the swagger core @Schema annotation to specify that a given part of an endpoint can be any valid type - number, boolean, object, etc... Currently, I have kindof implemented this using a composed schema with an anyOf value in a readerListener. When I try to modify the annotations directly to take in a different anyOf types, I get an NPE during the resolve step. This 'solution' is pretty ugly. Is there an alternative?

New Here?
Join us and watch the welcome video: