Forum Discussion

nmrao's avatar
nmrao
Champion Level 3
6 years ago

Swagger definition 2.0.0 - Property Choice

In SOAP, xsd supports Choice element and one of the element is mandatory.

It seems that the same can be achieved in OAS 3.0 as per documentation

The problem to use OAS 3.0 is lack of tooling support including SOAPUI.

However, how can the above be achieved in Swagger definition in 2.0.0?

 

 

 

 

  • Hi Rao,

     

    'anyOf', 'oneOf' and 'not' were added in OAS3 and did not exist in previous versions. If you need to need to use them, then the only option is to stay with OAS3.

    • nmrao's avatar
      nmrao
      Champion Level 3
      RonRatovsky,

      Thank for you the reply, was away and could not reply earlier.

      Understand that part.

      But like I mentioned, there is no tooling support to use OAS3 which is main concern.
    • nmrao's avatar
      nmrao
      Champion Level 3

      RonRatovsky 

       

      Any time lines for OAS 3 support in SoapUI Open Source editon?

      • Unfortunately, I don't know. I lead the Swagger projects, but not quite involved in SoapUI. Perhaps it'd be better to ask for more information in their forums.