Skip to content

Infer parameter outputs from Standard Schemas - #35

Merged
cowboyd merged 1 commit into
mainfrom
infer-standard-schema-output
Sep 23, 2026
Merged

cowboyd merged 1 commit into
mainfrom
infer-standard-schema-output

Conversation

@cowboyd

@cowboyd cowboyd commented Sep 23, 2026 •

Copy link
Copy Markdown
Collaborator

Motivation

Standard Schema validators may transform their input into a different output type. Configliere currently constrains schemas to identical input and output types, so parameter model inference cannot represent those transformations.

Approach

Allow Schema to carry distinct input and output types, and expose an OutputOf helper based on Standard Schema inference. Preserve the concrete schema type through the schema() pipeline element so the resulting parameter uses the validator's output type.

Also remove the unused Standard Schema import caught during verification.

@pkg-pr-new

pkg-pr-new Bot commented Sep 23, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/configliere@35

commit: 9e79ea5

@cowboyd
cowboyd requested a review from jbolda September 23, 2026 18:56
@cowboyd
cowboyd merged commit f55c09f into main Sep 23, 2026
4 checks passed
@jbolda
jbolda deleted the infer-standard-schema-output branch September 23, 2026 21:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants