ethan92429
5 years agoOccasional 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?