ring-swagger

ring-swagger & compojure-api
2017-10-22T23:59:11.000008Z

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]}

2017-10-22T23:59:30.000121Z

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