An exception is thrown when attempting to generate an OpenAPI object in Pode that includes a oneOf property containing non-object elements.
Description:
When trying to create an OpenAPI object in Pode that includes a oneOf property with non-object elements, such as string and number, the Pode code results in an exception. The expected OpenAPI object should have a property with oneOf types and another property with an enum. However, the Pode code fails to generate this structure correctly and raises an exception.
Expected OpenAPI Object:
ComparableQueryParameter:
type: object
properties:
value:
description: The value to compare against
oneOf:
- type: string
format: date-time
- type: number
format: float
op:
type: string
enum:
- GT
- LT
- GE
- LE
- EQ
- NE
required:
- value
- op
Summary:
An exception is thrown when attempting to generate an OpenAPI object in Pode that includes a
oneOf
property containing non-object elements.Description:
When trying to create an OpenAPI object in Pode that includes a
oneOf
property with non-object elements, such asstring
andnumber
, the Pode code results in an exception. The expected OpenAPI object should have a property withoneOf
types and another property with an enum. However, the Pode code fails to generate this structure correctly and raises an exception.Expected OpenAPI Object:
Pode Code Used: