@@ -76,7 +76,9 @@ const formOptions: QuasarFormOptions = {
7676 },
7777};
7878
79- const formData = ref ({connectionConfig: {provider: ' aws' , connection: ' ' , region: ' ' }});
79+ const formData = ref ({
80+ connectionConfig: { provider: " aws" , connection: " " , region: " " },
81+ });
8082
8183const schema: JSONSchema = {
8284 type: " object" ,
@@ -90,7 +92,8 @@ const schema: JSONSchema = {
9092 fieldOrderingDemo: {
9193 type: " object" ,
9294 title: " Field Ordering Demo (x-field-order)" ,
93- description: " Fields sorted by numeric x-field-order: booleans (100), strings (200), numbers (300), enums (400), string arrays (500), object arrays (600), objects (700)" ,
95+ description:
96+ " Fields sorted by numeric x-field-order: booleans (100), strings (200), numbers (300), enums (400), string arrays (500), object arrays (600), objects (700)" ,
9497 properties: {
9598 // These fields are intentionally out of order in the schema,
9699 // but will render sorted by x-field-order
@@ -122,7 +125,11 @@ const schema: JSONSchema = {
122125 type: " object" ,
123126 properties: {
124127 name: { type: " string" , title: " Name" },
125- role: { type: " string" , title: " Role" , enum: [" Dev" , " QA" , " PM" ] },
128+ role: {
129+ type: " string" ,
130+ title: " Role" ,
131+ enum: [" Dev" , " QA" , " PM" ],
132+ },
126133 },
127134 },
128135 " x-item-label" : " {{name}} - {{role}}" ,
@@ -348,6 +355,23 @@ const schema: JSONSchema = {
348355 dense: false ,
349356 },
350357 },
358+ // === ENUM WITH DESCRIPTIONS ===
359+ outputDetail: {
360+ type: " string" ,
361+ enum: [" text" , " segments" , " full" ],
362+ title: " Output Detail" ,
363+ description: " Level of detail in output" ,
364+ " x-enum-labels" : {
365+ text: " Text" ,
366+ segments: " Segments" ,
367+ full: " Full" ,
368+ },
369+ " x-enum-descriptions" : {
370+ text: " Only return speech text." ,
371+ segments: " Speech segments with their start and end times." ,
372+ full: " Includes text, speech segments, and VTT file. Useful for getting back diarized response." ,
373+ },
374+ },
351375 tags: {
352376 type: " array" ,
353377 title: " Tags" ,
@@ -831,11 +855,13 @@ const schema: JSONSchema = {
831855 type: " array" ,
832856 title: " Report Objects" ,
833857 description: " Filter report results to specific objects" ,
834- " x-hint" : ' Include report objects to filter results. See <a href="https://example.com/docs">this article</a> for more information.' ,
858+ " x-hint" :
859+ ' Include report objects to filter results. See <a href="https://example.com/docs">this article</a> for more information.' ,
835860 items: {
836861 type: " object" ,
837862 title: " Report Object Criteria" ,
838- " x-hint" : " Each item defines filter criteria for a specific object type" ,
863+ " x-hint" :
864+ " Each item defines filter criteria for a specific object type" ,
839865 properties: {
840866 objectNames: {
841867 type: " array" ,
@@ -1010,7 +1036,7 @@ const schema: JSONSchema = {
10101036
10111037 // === ONEOF WITH DESCRIPTIONS AND DOCS URLS (Discriminated Union style) ===
10121038 dateOperation: {
1013- title: " " ,
1039+ title: " Date Operation " ,
10141040 description: " " ,
10151041 " x-oneof-style" : " dropdown" ,
10161042 " x-oneof-select-label" : " Operation" ,
@@ -1074,7 +1100,8 @@ const schema: JSONSchema = {
10741100 // Demonstrates x-oneof-docsUrls with tabs display and custom icon/tooltip
10751101 speechProvider: {
10761102 title: " Speech Provider (with Docs Links)" ,
1077- description: " Select a TTS provider - note the docs icon next to the description" ,
1103+ description:
1104+ " Select a TTS provider - note the docs icon next to the description" ,
10781105 " x-oneof-style" : " tabs" ,
10791106 " x-oneof-labels" : {
10801107 openai: " OpenAI" ,
@@ -1111,7 +1138,11 @@ const schema: JSONSchema = {
11111138 properties: {
11121139 provider: { type: " string" , const: " openai" },
11131140 apiKey: { type: " string" , title: " API Key" , format: " password" },
1114- voice: { type: " string" , title: " Voice" , enum: [" alloy" , " echo" , " fable" , " nova" , " onyx" , " shimmer" ] },
1141+ voice: {
1142+ type: " string" ,
1143+ title: " Voice" ,
1144+ enum: [" alloy" , " echo" , " fable" , " nova" , " onyx" , " shimmer" ],
1145+ },
11151146 },
11161147 required: [" provider" ],
11171148 },
@@ -1128,8 +1159,16 @@ const schema: JSONSchema = {
11281159 type: " object" ,
11291160 properties: {
11301161 provider: { type: " string" , const: " google-cloud" },
1131- credentials: { type: " string" , title: " Service Account JSON" , format: " textarea" },
1132- languageCode: { type: " string" , title: " Language" , default: " en-US" },
1162+ credentials: {
1163+ type: " string" ,
1164+ title: " Service Account JSON" ,
1165+ format: " textarea" ,
1166+ },
1167+ languageCode: {
1168+ type: " string" ,
1169+ title: " Language" ,
1170+ default: " en-US" ,
1171+ },
11331172 },
11341173 required: [" provider" ],
11351174 },
0 commit comments