-
-
Notifications
You must be signed in to change notification settings - Fork 230
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make json schema output more compatible with Open AI structured outpu… (
- Loading branch information
Showing
5 changed files
with
548 additions
and
103 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- | ||
"@effect/schema": minor | ||
--- | ||
|
||
Make json schema output more compatible with Open AI structured output, closes #3432. | ||
|
||
JSONSchema | ||
|
||
- remove `oneOf` in favour of `anyOf` (e.g. in `JsonSchema7object`, `JsonSchema7empty`, `JsonSchema7Enums`) | ||
- remove `const` in favour of `enum` (e.g. in `JsonSchema7Enums`) | ||
- remove `JsonSchema7Const` type | ||
- remove `JsonSchema7OneOf` type | ||
|
||
AST | ||
|
||
- remove `identifier` annotation from `Schema.Null` | ||
- remove `identifier` annotation from `Schema.Object` |
Oops, something went wrong.