You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The spec below was cut and pasted from this issue: OAI/OpenAPI-Specification#298, but the Swagger editor doesn't like the "oneOf". I have a complex API composed using the Swagger editor back in February 2015, which worked fine at that time. In the current editor it is completely broken because it uses oneOf extensively. Was support for oneOf removed for some reason? If so, how can I adjust my spec to achieve the same effect?
swagger: '2.0'
info:
version: 1.0.0
title: Overloading example
paths:
/:
get:
responses:
200:
description: Bug?
oneOf:
- description: Returns a string
schema:
type: string
- description: Returns a number
schema:
type: integer
The text was updated successfully, but these errors were encountered:
OK... Then I apologize for raising this issue. However, I'm very confused, because when I started using Swagger, back in late February, I needed oneOf and used it, and it worked fine.
The spec below was cut and pasted from this issue: OAI/OpenAPI-Specification#298, but the Swagger editor doesn't like the "oneOf". I have a complex API composed using the Swagger editor back in February 2015, which worked fine at that time. In the current editor it is completely broken because it uses oneOf extensively. Was support for oneOf removed for some reason? If so, how can I adjust my spec to achieve the same effect?
The text was updated successfully, but these errors were encountered: