Component
SDKs
Priority
P1 - High (Strongly needed)
SDK Language(s)
No response
Feature Description
Feature Request: OpenAPI Allows for the definition of enums to occur inline with an attribute. The feature request here is to extend the Fern Definition to allow for this but to only resolve the definition when a language natively supports enums. In the case when a language does not natively support enums, the value would be resolved to the enum type specified. The reason for this feature request is that it would move the Fern Definition to be more inline with the capabilities of an OpenAPI definition, while staying as a more human readable and human friendly alternative.
An example for the proposed fern definition would look like this:
types:
my_object:
properties:
name: string
my_inline_enum:
type: integer
enum:
- 1
- 2
In this example, if a language does not support enums the type would be resolved to a integer and in the case that it does support enums, the enum would be resolved.
Any alternatives?
No response
Are you interested in contributing this feature?
No
Component
SDKs
Priority
P1 - High (Strongly needed)
SDK Language(s)
No response
Feature Description
Feature Request: OpenAPI Allows for the definition of enums to occur inline with an attribute. The feature request here is to extend the Fern Definition to allow for this but to only resolve the definition when a language natively supports enums. In the case when a language does not natively support enums, the value would be resolved to the enum type specified. The reason for this feature request is that it would move the Fern Definition to be more inline with the capabilities of an OpenAPI definition, while staying as a more human readable and human friendly alternative.
An example for the proposed fern definition would look like this:
In this example, if a language does not support enums the type would be resolved to a integer and in the case that it does support enums, the enum would be resolved.
Any alternatives?
No response
Are you interested in contributing this feature?
No