diff --git a/.changeset/shy-eggs-march.md b/.changeset/shy-eggs-march.md new file mode 100644 index 000000000..c01ea44a0 --- /dev/null +++ b/.changeset/shy-eggs-march.md @@ -0,0 +1,12 @@ +--- +"@effect/schema": patch +--- + +improve JSON Schema output: + +- rename `dependencies` to `$defs` +- remove `"type"` from const schemas +- use `"oneOf"` for enums and add `"title"`s +- add support for `record(pattern, number)` +- add `"$id"` and `"$comment"` properties +- literals should be converted to `enum` instead of `anyOf`, closes #579 diff --git a/docs/modules/JSONSchema.ts.md b/docs/modules/JSONSchema.ts.md index c5c13d9ef..be648e345 100644 --- a/docs/modules/JSONSchema.ts.md +++ b/docs/modules/JSONSchema.ts.md @@ -12,13 +12,13 @@ Added in v1.0.0