Effect-TS / schema

Modeling the schema of data structures as first-class values

Home Page:https://effect.website

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`jsonSchema` annotation for `Number.between` uses `max` for both `min` and `max` fields

ahrjarrett opened this issue Β· comments

This package is shaping up really nicely. The abstractions feel clean and have been simple to use and understand. Here's a small issue I bumped into.

πŸ› Bug report

Current Behavior

Looks like a recent addition to the Number module included a typo (min field shows max instead).

Expected behavior

Expected the min field to reflect the user-provided min value

Reproducible example

N/A

Suggested solution(s)

I'm opening a PR with a fix, raising this issue first per the instructions in the PR template.

Additional context

N/A

Your environment

N/A

Software Version(s)
@fp-ts/schema 0.3.0
TypeScript N/A