Skip to content

docs(form): Effect Schema also supports Standard Schema #1259

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Apr 2, 2025

Conversation

rehos
Copy link
Contributor

@rehos rehos commented Mar 9, 2025

Effect Schema also supports Standard Schema.

The StackBlitz example can also be modified with:

import { Schema as S } from 'effect';

const EffectSchema = S.standardSchemaV1(
  S.Struct({
    firstName: S.String.pipe(
      S.minLength(3),
      S.annotations({
        message: () => '[Effect/Schema] You must have a length of at least 3',
      })
    ),
    lastName: S.String.pipe(
      S.minLength(3),
      S.annotations({
        message: () => '[Effect/Schema] You must have a length of at least 3',
      })
    ),
  })
);

See it live

Effect Schema also supports Standard Schema
@rehos rehos changed the title Update validation.md Update validation.md - Effect Schema also supports Standard Schema Mar 9, 2025
@rehos rehos changed the title Update validation.md - Effect Schema also supports Standard Schema docs(form): Effect Schema also supports Standard Schema Mar 9, 2025
Copy link

nx-cloud bot commented Apr 2, 2025

View your CI Pipeline Execution ↗ for commit 58a1c49.

Command Status Duration Result
nx affected --targets=test:sherif,test:knip,tes... ✅ Succeeded 2m 24s View ↗
nx run-many --target=build --exclude=examples/** ✅ Succeeded 19s View ↗

☁️ Nx Cloud last updated this comment at 2025-04-02 19:10:03 UTC

Copy link
Member

@Balastrong Balastrong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

Copy link

pkg-pr-new bot commented Apr 2, 2025

More templates

@tanstack/angular-form

npm i https://pkg.pr.new/@tanstack/angular-form@1259

@tanstack/form-core

npm i https://pkg.pr.new/@tanstack/form-core@1259

@tanstack/lit-form

npm i https://pkg.pr.new/@tanstack/lit-form@1259

@tanstack/react-form

npm i https://pkg.pr.new/@tanstack/react-form@1259

@tanstack/solid-form

npm i https://pkg.pr.new/@tanstack/solid-form@1259

@tanstack/vue-form

npm i https://pkg.pr.new/@tanstack/vue-form@1259

commit: 58a1c49

@Balastrong Balastrong merged commit 835543c into TanStack:main Apr 2, 2025
4 checks passed
Copy link

codecov bot commented Apr 2, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.86%. Comparing base (4e15826) to head (58a1c49).
Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1259   +/-   ##
=======================================
  Coverage   88.86%   88.86%           
=======================================
  Files          28       28           
  Lines        1275     1275           
  Branches      332      333    +1     
=======================================
  Hits         1133     1133           
  Misses        126      126           
  Partials       16       16           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

juanvilladev pushed a commit to juanvilladev/form that referenced this pull request Apr 3, 2025
* Update validation.md

Effect Schema also supports Standard Schema

* Add validation by Effect/Schema to react example

* ci: apply automated fixes and generate docs
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