Skip to content

Commit a9ef869

Browse files
committed
fix: dont coerce enums to literals
1 parent c304aa1 commit a9ef869

File tree

3 files changed

+55
-6
lines changed

3 files changed

+55
-6
lines changed

fern/fern.config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"organization": "vapi",
3-
"version": "0.43.8"
3+
"version": "0.44.1"
44
}

fern/generators.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
11
api:
2-
path: ../openapi.json
3-
overrides: ../openapi-overrides.yml
4-
settings:
5-
use-title: false
6-
unions: v1
2+
specs:
3+
- openapi: ../openapi.json
4+
overrides: ../openapi-overrides.yml
5+
settings:
6+
title-as-schema-name: false
7+
coerce-enums-to-literals: false
78
groups:
89
python-sdk:
910
generators:
1011
- name: fernapi/fern-python-sdk
1112
version: 4.2.7
13+
api:
14+
settings:
15+
unions: v1
1216
output:
1317
location: pypi
1418
package-name: "Vapi"
@@ -27,6 +31,9 @@ groups:
2731
# token: ${NPM_TOKEN}
2832
github:
2933
repository: fern-demo/vapi-typescript-sdk
34+
api:
35+
settings:
36+
unions: v1
3037
config:
3138
namespaceExport: Vapi
3239
allowCustomFetcher: true

openapi-overrides.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -444,6 +444,48 @@ components:
444444
":":
445445
name: COLON
446446
description: ":"
447+
AzureVoice:
448+
properties:
449+
voiceId:
450+
x-fern-type-name: AzureVoiceId
451+
oneOf:
452+
- x-fern-type-name: AzureVoiceIdEnum
453+
DeepgramVoice:
454+
properties:
455+
voiceId:
456+
x-fern-type-name: DeepgramVoiceId
457+
oneOf:
458+
- x-fern-type-name: DeepgramVoiceIdEnum
459+
ElevenLabsVoice:
460+
properties:
461+
voiceId:
462+
x-fern-type-name: ElevenLabsVoiceId
463+
oneOf:
464+
- x-fern-type-name: ElevenLabsVoiceIdEnum
465+
LMNTVoice:
466+
properties:
467+
voiceId:
468+
x-fern-type-name: LMNTVoiceId
469+
oneOf:
470+
- x-fern-type-name: LMNTVoiceIdEnum
471+
NeetsVoice:
472+
properties:
473+
voiceId:
474+
x-fern-type-name: NeetsVoiceId
475+
oneOf:
476+
- x-fern-type-name: NeetsVoiceIdEnum
477+
OpenAIVoice:
478+
properties:
479+
voiceId:
480+
x-fern-type-name: OpenAIVoiceId
481+
oneOf:
482+
- x-fern-type-name: OpenAIVoiceIdEnum
483+
RimeAIVoice:
484+
properties:
485+
voiceId:
486+
x-fern-type-name: RimeAIVoiceId
487+
oneOf:
488+
- x-fern-type-name: RimeAIVoiceIdEnum
447489
securitySchemes:
448490
BearerAuth:
449491
type: http

0 commit comments

Comments
 (0)