Skip to content

Commit f20a0b4

Browse files
committed
make output a string or an object
1 parent d37b61b commit f20a0b4

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

service-specs/guardrails-service-spec.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -413,9 +413,9 @@ components:
413413
output:
414414
type: string
415415
parsedOutput:
416-
type: object
417-
properties: {}
418-
additionalProperties: {}
416+
oneOf:
417+
- $ref: "#/components/schemas/AnyObject"
418+
- type: string
419419
prompt:
420420
type: object
421421
properties:
@@ -428,9 +428,9 @@ components:
428428
properties: {}
429429
additionalProperties: {}
430430
validatedOutput:
431-
type: object
432-
properties: {}
433-
additionalProperties: {}
431+
oneOf:
432+
- $ref: "#/components/schemas/AnyObject"
433+
- type: string
434434
additionalProperties: {}
435435
Reask:
436436
type: object

0 commit comments

Comments
 (0)