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

From Discord: Error in code after updating schema version

effect-bot opened this issue · comments

Repro

import * as S from '@effect/schema/Schema'

const schema = S.struct({ a: S.string }).pipe(
  S.extend(S.record(S.templateLiteral(S.string, S.literal('-'), S.number), S.string))
)

S.parseSync(schema)({ a: 'a' })

Discord thread

https://discord.com/channels/795981131316985866/1154312561303498834