-
-
Notifications
You must be signed in to change notification settings - Fork 269
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make json schema output more compatible with Open AI structured outpu… #3433
Merged
Conversation
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
…t (remove "oneOf" and "const"), closes #3432
🦋 Changeset detectedLatest commit: 7c93da3 The changes in this PR will be included in the next version bump. This PR includes changesets to release 25 packages
Not sure what this means? Click here to learn what changesets are. Click here if you"re a maintainer who wants to add another changeset to this PR |
github-actions
bot
requested review from
mikearnaldi,
tim-smart,
IMax153 and
mattiamanzati
as code owners
August 9, 2024 08:53
Merged
suddenlyGiovanni
added a commit
to suddenlyGiovanni/resume
that referenced
this pull request
Sep 3, 2024
## 0.71.1 ### Patch Changes - Updated dependencies [[`14a47a8`](Effect-TS/effect@14a47a8), [`0c09841`](Effect-TS/effect@0c09841)]: - [email protected] ## 0.71.0 ### Minor Changes - [#3433](Effect-TS/effect#3433) [`c1987e2`](Effect-TS/effect@c1987e2) - 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` ### Patch Changes - [#3448](Effect-TS/effect#3448) [`1ceed14`](Effect-TS/effect@1ceed14) - add Schema.ArrayEnsure & Schema.NonEmptyArrayEnsure These schemas can be used to ensure that a value is an array, from a value that may be an array or a single value. ```ts import { Schema } from "@effect/schema" const schema = Schema.ArrayEnsure(Schema.String) Schema.decodeUnknownSync(schema)("hello") // => ["hello"] Schema.decodeUnknownSync(schema)(["a", "b", "c"]) // => ["a", "b", "c"] ``` - [#3450](Effect-TS/effect#3450) [`0e42a8f`](Effect-TS/effect@0e42a8f) - update dependencies - Updated dependencies [[`8295281`](Effect-TS/effect@8295281), [`c940df6`](Effect-TS/effect@c940df6), [`00b6c6d`](Effect-TS/effect@00b6c6d), [`f8d95a6`](Effect-TS/effect@f8d95a6)]: - [email protected] Signed-off-by: Giovanni Ravalico <[email protected]>
suddenlyGiovanni
added a commit
to suddenlyGiovanni/resume
that referenced
this pull request
Sep 3, 2024
- Updated dependencies [[`14a47a8`](Effect-TS/effect@14a47a8), [`0c09841`](Effect-TS/effect@0c09841)]: - [email protected] - [#3433](Effect-TS/effect#3433) [`c1987e2`](Effect-TS/effect@c1987e2) - 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` - [#3448](Effect-TS/effect#3448) [`1ceed14`](Effect-TS/effect@1ceed14) - add Schema.ArrayEnsure & Schema.NonEmptyArrayEnsure These schemas can be used to ensure that a value is an array, from a value that may be an array or a single value. ```ts import { Schema } from "@effect/schema" const schema = Schema.ArrayEnsure(Schema.String) Schema.decodeUnknownSync(schema)("hello") // => ["hello"] Schema.decodeUnknownSync(schema)(["a", "b", "c"]) // => ["a", "b", "c"] ``` - [#3450](Effect-TS/effect#3450) [`0e42a8f`](Effect-TS/effect@0e42a8f) - update dependencies - Updated dependencies [[`8295281`](Effect-TS/effect@8295281), [`c940df6`](Effect-TS/effect@c940df6), [`00b6c6d`](Effect-TS/effect@00b6c6d), [`f8d95a6`](Effect-TS/effect@f8d95a6)]: - [email protected] Signed-off-by: Giovanni Ravalico <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
…t (remove "oneOf" and "const"), closes #3432