effect@3.14.6
·
906 commits
to main
since this release
Patch Changes
-
#4674
47618c1Thanks @suddenlyGiovanni! - Improved TsDoc documentation forMutableHashSetmodule. -
#4699
6077882Thanks @gcanti! - Fix JSONSchema generation for record values that includeundefined, closes #4697.Before
import { JSONSchema, Schema } from "effect" const schema = Schema.partial( Schema.Struct( { foo: Schema.Number }, { key: Schema.String, value: Schema.Number } ) ) console.log(JSON.stringify(JSONSchema.make(schema), null, 2)) // throws
After
import { JSONSchema, Schema } from "effect" const schema = Schema.partial( Schema.Struct( { foo: Schema.Number }, { key: Schema.String, value: Schema.Number } ) ) console.log(JSON.stringify(JSONSchema.make(schema), null, 2)) /* Output: { "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", "required": [], "properties": { "foo": { "type": "number" } }, "additionalProperties": { "type": "number" } } */