You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
greet --help lists only --json, with "procedure's schema couldn't be converted to CLI arguments: Failed to convert input to JSON Schema: Cannot read properties of undefined (reading 'make')". Effect 4 has no JSONSchema module. Its JSON Schema comes from Schema.toStandardJSONSchemaV1(schema)["~standard"].jsonSchema.input({ target: "draft-07" }). A schema wrapped in it fails the same way, since the Effect converter is tried before a schema's own ~standard.jsonSchema.
That alone is not enough, though. Effect 4 writes "additionalProperties": true on a struct, and handleMergedSchema refuses any truthy additionalProperties with "Inputs with additional properties are not currently supported". Since true is JSON Schema's default, it could be treated like an absent additionalProperties. With both changes, greet --help lists --name <string>, greet --name Ada prints "hi Ada", and leaving out --name is reported as a missing required option.
For now we pass an effect dependency whose JSONSchema.make does both. The README's Effect example also uses Schema.standardSchemaV1, which Effect 4 calls Schema.toStandardSchemaV1.
Activity
pullfrog commentedon Oct 24, 2026