ring-swagger & compojure-api

using yada (which I think uses ring.swagger), it seems it is able to generate swagger definitions containing "oneOf", from a schema.core/if macro. However these are part of OpenAPI 3, and not swagger 2.0 as far as I can see (https://swagger.io/docs/specification/data-models/oneof-anyof-allof-not/ vs https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md), and therefore I get an error when validating using "ring.swagger.validator/validate"?

:keyword additionalProperties, :message object instance has properties which are not allowed by the schema: ["oneOf"], :unwanted [oneOf]}


although it seem that ring-swagger has some code for dealing with "oneOf" already - https://github.com/metosin/ring-swagger/search?utf8=%E2%9C%93&q=oneOf&type= - I may be doing something wrong